Article 6N7PS Send monit alert only if a condition is met for more than 10 times

Send monit alert only if a condition is met for more than 10 times

by
Brief-Wishbone9091
from LinuxQuestions.org on (#6N7PS)
There's something called cycles in monit that helps with it as per my research, but I am not aware of the exact syntax for it.\

Currently, THis is my requirement

check program myscript with path /root/check_db.sh
if status != 0 then then exec "send-alert.sh"

I want to send alert only if status !=0 for more than 10 times.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments