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.
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.