I'm currently working on a Monit config that alerts when a certain status reached the threshold.
check program check_something with path "/root/scripts/check_something.sh"
if status > 10 then alert
The above config works well and I would like to add a recurring alert everyday if the status is still more than the threshold.
I've managed to solve the issue by adding timeout
of 86400 seconds which is equivalent to 1 day.
check program check_something with path "/root/scripts/check_something.sh"
if status > 10 then alert
if status > 10 with timeout 86400 seconds then alert