监视切换规则

时间:2015-06-15 23:52:11

标签: toggle alert monit

我想创建监视警报规则,其行为类似于toggler。

示例:当主机(icmp)无法访问时提醒我一次,然后在主机在线时再次提醒我一次。并且直到monit守护进程活着为止。

check host tv with address tv.local
if failed icmp type echo count 5 with timeout 5 seconds
    then alert
else if passed
    then alert

该样本每次处理一个条件,然后停止。

提前致谢。

0 个答案:

没有答案
相关问题