monit配置文件

set daemon  30orm

set log /data/monit/monit.logserver


set idfile /var/monit.id
set eventqueue
     basedir /var/monit
     slots 100ip

set mailserver smtp.163.com port 25
    username sunsmile2018@163.com password "linjin200"
    using TLSV1 with timeout 30 secondsit

set mail-format {
     from: sunsmile2018@163.com
     subject: monit alert
     message:
#    subject: monit alert --  $EVENT $SERVICE
#    message: $EVENT Service $SERVICE
#                Date:        $DATE
#                Action:      $ACTION
#                Host:        $HOST
#                Description: $DESCRIPTION
#    Your faithful employee,
#    Monit
 }
 io

set alert linjin200@163.comevent


set httpd port 2812 and
    use address 192.168.1.225  # only accept connection from localhost
 #   allow localhost
    allow 0.0.0.0/0.0.0.0        # allow localhost to connect to the server and
    allow admin:monit     form

include /etc/monit.d/*
 sed

相關文章
相關標籤/搜索