有没有办法停止接收有关重新加载“monit”服务的电子邮件通知?
这是位于/etc/monit.d/config中的当前配置(mydomain.com是我的机器):
*
这是位于/etc/monit.d/config中的当前配置(mydomain.com是我的机器):
*
check system mydomain.com
check process script_name with pidfile /home/user/scripts/script-pid
start program = "/etc/init.d/script_name start" with timeout 60 seconds
stop program = "/etc/init.d/script_name stop"
set alert my_email@domain.com
set mail-format { from: monit@mydomain.com }
set mailserver smtp.mydomain.com,localhost
set mail-format {
from: monit@mydomain.com
subject: [ $SERVICE ] $EVENT - $DATE
message: This is $ACTION: $DESCRIPTION [$SERVICE], mydomain.com }
set httpd port 2812 and
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
但是由于我每小时都有日志轮换,会重新加载服务,因此Monit每小时都会发送电子邮件:
开始:Monit重新加载[system_localhost.localdomain],mydomain.com
停止:Monit停止[mydomain.com],mydomain.com
如何停止接收关于Monit的这些电子邮件(我不想接收)?
提前致谢!