Xml status cgi for nagios3

Matthias Haider matthiashaider at mac.com
Fri Mar 21 19:36:37 CET 2008


Hi everybody,

I wrote a modified version of the nagios core cgi status.c to produce  
XML output,
to feed this to Ajax websites like Google Maps, where status  
informations get displayed.


The attached code (statusXML.patch) will, when used on a nagios3.0  
source , create a new cgi,
called statusXML.c and change the corresponging entry in the Makefile...


I think it could be put into the nagios3 package, as it's a core cgi  
that uses the same functions
as the other statusXYZ.c and nees to get compiled with the same  
options anyhow.

Please test it,  feedback is very welcome.

Attached are the source patch and an example xml output..

br,
Matthias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: statusXML.patch
Type: application/octet-stream
Size: 54447 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080321/a292317b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: statusXML-sampleoutput.xml
Type: text/xml
Size: 4691 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080321/a292317b/attachment.xml>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list