set daemon 30
set log /data/monit/monit.log
set idfile /var/monit.id set eventqueue basedir /var/monit slots 100
set mailserver smtp.163.com port 25 username sunsmile2018@163.com password "linjin200" using TLSV1 with timeout 30 seconds
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 }
set alert linjin200@163.com
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
include /etc/monit.d/*
(adsbygoogle = window.adsbygoogle || []).push({});