[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: JSON support for monit's http interface
From: |
Callum Macdonald |
Subject: |
Re: JSON support for monit's http interface |
Date: |
Thu, 26 Jan 2012 10:03:52 +0100 |
Somebody else might know better, I've never looked at the monit source,
but I found the XML interface and it's format from looking at a couple
of open source monit aggregator / graphing tools, there's a few around:
https://code.google.com/p/monit-graph/
https://github.com/mattfawcett/monit-aggregator
https://github.com/karmi/monittr
As far as I can tell, the big advantage of M/Monit is that the
individual monit instances *push* updates to the M/Monit server. While
using the XML file it's necessary to poll.
I dare say the monit -> M/Monit format is probably some kind of XML and
could probably be unpacked, but that's not what you're trying to do. :-)
Cheers - Callum.
On Thu, 2012-01-26 at 09:57 +0100, Jens Braeuer wrote:
> Hi Callum,
>
> thanks a lot, this is what I looked for!
>
> Is there some documentation what the different type's and status' mean? Eg.
>
> <service type="3">
> ...
> <status>0</status>
> </service>
>
> Is it defined in some central place in the source?
>
> Cheers,
> Jens
>
> On 26.01.2012 09:51, Callum Macdonald wrote:
> > Hi Jens,
> >
> > In case you weren't aware, you can get data from monit in XML format:
> > http://localhost:2812/_status?format=xml
> >
> > Love & joy - Callum.
> >
> > On Thu, 2012-01-26 at 09:38 +0100, Jens Braeuer wrote:
> >> Hi everyone,
> >>
> >> first of all I want to thank you Tildeslash for Monit! I run Monit for
> >> ~8 month now and it works great!
> >>
> >> My current setup is configured in a way, that monit makes sure, the
> >> local services run. On top of this, I use Icinga (a Nagios fork) to
> >> ensure Monit runs on all hosts.
> >>
> >> To make the Icinga check more detailed, I would like to get JSON out of
> >> Monit's webinterface.
> >>
> >> So, is there currently support for JSON status pages in Monit? (Could
> >> not find anything in the docs). Is there a chance you guys could add it?
> >>
> >> Cheers,
> >> Jens
> >>
> >>
> >>
> >> --
> >> To unsubscribe:
> >> https://lists.nongnu.org/mailman/listinfo/monit-general
> >
> >
> > --
> > To unsubscribe:
> > https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general