Hello Martin,
FYI, I fixed my "check program" notification problem by using multiple
status checks to do something and one check to notify the "status
failed" and "status succeeded" only.
check program script.sh with path
/Users/lutz/Aufheben/monit/scripts/script.sh
if status = 1 then exec
Hello Martin,
you are right, multiple status checks are useable.
> check program myprogram with path "/usr/local/bin/helloworld"
>if status = 0 then exec "/usr/local/bin/script_no_1"
>if status > 0 then exec "/usr/local/bin/script_no_2"
The problem, all this checks are report
Hi Lutz,
you can use multiple status tests within the 'check program' - if the status
differs on program success, the second status check should catch it, something
like this:
check program myprogram with path "/usr/local/bin/helloworld"
if status = 0 then exec
Hello Tildeslash,
I use "CHECK PROGRAM" to do some additional application checks.
Based on the return code and an appropriate "IF STATUS" rule I send
alert/mail notifications from Monit.
This works well in the past, but I try to use a script to send SMS
notifications now. I get the "Status