How to check the result of a script with monit?

Posted by matnagel on Server Fault See other posts from Server Fault or by matnagel
Published on 2010-03-11T19:21:55Z Indexed on 2010/03/11 19:24 UTC
Read the original article Hit count: 226

Filed under:
|

Is there a way to check the result of a script with monit?

For example if a script returns 0 it is ok, but 1 means failed.

My workaround is to call the script with cron and write the result to a file and check the file with monit.

But I am sure monit can do it more elegantly?

© Server Fault or respective owner

Related posts about monitoring

Related posts about monit