Re: [Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-10 Thread Liu Lantao
status.dat is easy to parse, which make it a good choice to share between nagios and other programs/systems. I see this(thin version of statusXML.php: http://svn.jasonantman.com/nagios-xml/statusXML-krzywanski.php), and this(c version of nagios-xml:

Re: [Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-07 Thread Mike Guthrie
As a side note it looks like there is already an addon that's been written that produces the status data in XML format. http://exchange.nagios.org/directory/Addons/APIs/XML/Status-XML-Generator/details Although they won't be making it into the 3.4 release, we'll be looking at incorporating

Re: [Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-07 Thread Wenhua Zhang
Hi Mike, Thanks for your information. If the new version support the API's for XML and JSON, I think it will be very useful for many people. I am looking forward to the new revision. Best Wishes, Wenhua 2012/5/7 Mike Guthrie mguth...@nagios.com: As a side note it looks like there is already an

Re: [Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-06 Thread Wenhua Zhang
Hi Robert, Thanks for your advice, it is a good idea. As till now, status-txt just returns status.dat as plain text. When we wrote this program, we have thought about many formats, such as JSON, XML, plain text and so on. We use plain text because it is simple, but now I found it may be not

Re: [Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-05 Thread Wenhua Zhang
Thanks for your reply! I hope it will be useful to you. It is the first version and we will add more functions. If you have some advice, please feel free to let me know. Thanks, Best Wishes, Wenhua 2012/5/5 Alex Griffin agrif...@nagios.com: Thanks for posting this, it looks pretty useful!

Re: [Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-05 Thread Robert Arends
Sounds great. Does it output in XML ? Would be good to support that as an option. It would be good to have a search option - as in , return all hosts/services/downtime etc matching .. If it could do regex on the match would be nice. I've just written a rough php program to return

Re: [Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-04 Thread Paul Dubuc
LivestatusSlave works makes MKLivestatus a web service which provides the status information in JSON syntax. http://nagios.larsmichelsen.com/livestatusslave/ Wenhua Zhang wrote: Hi,� Thanks for your reply. As we know,�MKLivestatus is a Nagios Event Broker (NEB) Module which can be used to

Re: [Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-04 Thread Alex Griffin
Thanks for posting this, it looks pretty useful! Alex Griffin --- Tech Team agrif...@nagios.com On 05/02/2012 10:57 PM, Wenhua Zhang wrote: Hi all, Recently, we need a API or application to get the nagios data as other easily readable format such as XML, JSON or plain text instead of the

Re: [Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-03 Thread MAD
Hi, You could also use the mk_livestatus broker (available here http://mathias-kettner.de/checkmk_livestatus.html) which can be used to fetch information from Nagios in JSON format by forging your own requests. Best regards, Marc-André On 05/03/2012 05:57 AM, Wenhua Zhang wrote: Hi all,

Re: [Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-03 Thread Wenhua Zhang
Hi, Thanks for your reply. As we know, MKLivestatus is a Nagios Event Broker (NEB) Module which can be used to extend the core of Nagios. This module can provide access to the live status information kept in the running Nagios process. It serves a unix socket for data exchange with external

[Nagios-users] status-txt: easier for other applications/services to use Nagios data

2012-05-02 Thread Wenhua Zhang
Hi all, Recently, we need a API or application to get the nagios data as other easily readable format such as XML, JSON or plain text instead of the default HTML. status-txt is implemented to duplicate the output of status.cgi in plain text to achieve this goal, making it easier for other