Re: Notification script in check program

2018-07-01 Thread Lutz Mader
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

Re: Notification script in check program

2018-06-22 Thread Lutz Mader
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

Re: Notification script in check program

2018-06-21 Thread mart...@tildeslash.com
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

Notification script in check program

2018-06-21 Thread Lutz Mader
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