我在linux上安装了monit工具,它已经监视apache和整个系统几个月了。apache配置文件是:
check process apache with pidfile /var/run/httpd/httpd.pid
start "/etc/init.d/httpd start"
stop "/etc/init.d/httpd stop"
if memory usage > 70% for 2 cycles then alert
if memory usage > 90% for 5 cycles then restart
if cpu > 70% for 2 cycles then alert
if failed port 80 protocol apache-status
loglimit > 75%
then restart今天早上,我收到了一封由monit发送的警告邮件,但是消息描述看起来像我以前从未见过的东西,我想知道在哪里可以找到monit发送这样的警报时使用的默认文本。我收到的警告短信是:
Data access succeeded Service apache
Date: Mon, 10 Oct 2022 12:54:20
Action: alert
Host: <hostname>
Description: zombie check succeeded知道我能在哪里找到并修改上面的“描述”文本吗?
发布于 2022-10-11 21:10:58
一个简单的邮件模板是在监视器配置文件中配置的(通常称为monitor in )。
请参阅“设置邮件格式”一节。但是描述或操作文本不能更改,您可以重新排列监视器使用的一些数据。
还可以获得一些其他信息,请参阅https://mmonit.com/monit/documentation/monit.html#Message-format
并列出了一些使用过的文本片段,请参阅https://mmonit.com/monit/documentation/monit.html#Setting-an-event-filter
https://serverfault.com/questions/1112768
复制相似问题