每次测试失败时,如何阻止 monit 运行 exec 语句?我的 monitrc 中的声明是:
check filesystem tmpfs with path /var
if space > 90% then exec "/usr/bin/logger -p daemon.crit 'MAJOR: space test'"
Run Code Online (Sandbox Code Playgroud)
这看起来很奇怪,因为其他人问了一个问题,他在做一个警报,它有我想要的行为。我已准备好开始扼杀 linux 盒子。
编辑:这是相反的情况重复监控警报
是因为他使用的是 alert 而不是 exec 吗?