monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get monit exit status from the command line


From: Dominic Harkness
Subject: Get monit exit status from the command line
Date: Tue, 10 May 2016 12:30:47 +0000

Hi all,

 

My team is interested in a feature that would allow a script to call some command from the CLI that would test the last exit status for one, some, or all of the monitored services. The response would be a Boolean that would tell you “All tests passed” or “Not all tests passed.”

 

“monit status/summary” gives you a text representation of this data, but a script would have to parse the text output to determine if all of the tests passed. “monit validate” gives you its exit status, but you have to actually run monit. We feel it would be useful to ask monit if some test(s) passed from within a script and get a true or false response without running validate().

 

Please let me know what you think of this and if you have any suggestions. I would like to get started on this feature as soon as possible.

 

Thanks

Dominic Harkness

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]