Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm just wondering whether monit has an API, which we could poll-regularly (perhaps something that is http-based) ?

It would be very useful to create an integrated monitoring solution across multiple servers. Or perhaps there is no other option other than m/monit?

share|improve this question
    
What is your final purpose? How about this mmonit.com/wiki/MMonit/HTTP-API? –  quanta Sep 26 '12 at 7:20
    
I'm looking for open-source alternatives other than m/monit.. –  giosakti Sep 26 '12 at 10:43
    
You really need to give a bit more detail about what exactly you want to monitor and how, since there are a LOT of server monitoring tools out there besides Monit. If you have looked over a few of these and none of them meet your needs then you must be doing something unusual, and need to say so. –  dunxd Oct 5 '12 at 23:20

1 Answer 1

This is old, I know, but monit has a basic API, found at

"http:SERVER_IP:2812/_status?format=xml"

There also appears to be a JSON format as well (change format to json from XML). You can parse the XML for everything you need (I've done it in python easily). However, I can't seem to find any documentation on this, so you have to discover what you can.

Some of the m/monit documentation details some of the monit codes, so you should get some help from there.

You can also check out monittr https://github.com/karmi/monittr.

That is a ruby implementation of monitoring multiple monit instances.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.