|
From: | Rizal Muttaqin |
Subject: | Ignore Monit's First Alert |
Date: | Tue, 19 Sep 2017 13:41:31 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
Use case: Send alert after
particular port down 5 times within 5 cycles, otherwise just
ignore
it. In other word, if particular port down less than 5 times
within 5
cycles, don’t send any email. Question: How to ignore first alert? Should email reminder set on
1 cycles or 5 cycles? Monit version 5.14 from e17 epel repository set daemon 300 # 5 minutes per cycle start program = "/opt/monit/scripts/somehostcheckport.sh start" stop program = "/opt/monit/scripts/somehostport.sh stop" if failed port 80 then restart if 5 restart within 5 cycles then alert alert address@hidden with reminder on 5 cycles |
[Prev in Thread] | Current Thread | [Next in Thread] |