Hi Andrew,

it THINK this is not possible yet, since the "check program" routine has
been added in 5.3 and i couldn't find any clue according analyzing the
stdout in the changelogs since 5.3.
I might be wrong, but i think, that you still have to use the exit stati
of your script.

Greetings
Socke


On 18 Sep 2012, at 10:10, Andrew Holt wrote:
>> [...]
>>
>> It would be more useful if I could do something like:
>>
>> check program testscript with path "/root/Scripts/tst.sh" with
>> timeout 100 seconds
>>     if atoi(stdout) < 0 then alert
>>     if stdout) > 22 then exec '/usr/local/bin/hot.sh'
>>     if stdout < 17 then exec '/usr/local/bin/cold.sh'
>>
>> Of course you may have a better way . . . .


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to