Nagios2JSON

Thomas Guyot-Sionnest dermoth at aei.ca
Fri Jun 20 05:09:04 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 15/06/08 12:52 PM, Thomas Guyot-Sionnest wrote:
> On 14/06/08 11:16 PM, Yann JOUANIN wrote:
>> I finished coding the XSDJSON backend for Nagios, it works on Nagios 2 (I'm
>> finishing the Nagios3 version).
>> Now by enabling USE_XSDJSON, the file status.dat is formatted in JSON format
>> and the CGI are reading status from this format.
> 
>> For the ones who want to test it, file are available on : 
> 
>> http://nagios2json.svn.sourceforge.net/viewvc/nagios2json/XSDJSON/trunk/NAGI
>> OS2/
> 
> Awesome work!
> 
> I made it as a single patch for 2.x-cvs which also includes configure.in
> modifications.
> 
> After applying the patch, be sure to run "autoconf" then you can
> configure Nagios with JSON routines with:
> 
> ./configure --enable-xsdjson
> 
> Configure will print the following near the end:
> We'll use JSON routines (in xdata/xsdjson.*) for status data I/O...
> 
> Then usual make and make install to get everything installed.
> 
> I haven't tested it yet (lack of time) but it does build successfully
> with JSON routines.
> 
> Enjoy :)

As Yann pointed to in private my patch does not set USE_XSDJSON 1 in
config.h. Being used to have autoheader to write config.h.in for me I
forgot to update this one, and didn't realized the define was missing
(the code was built but not used).

This new patch fix this and should work properly. I also verified the
proper function are present in the object files (still no time to test,
unfortunately).

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIWx9Q6dZ+Kt5BchYRAp7yAJ4qN0mgr20zrh74f4MZYDRQnhQvNgCg4Nmi
Jxea0hpbrGIhHxsNPe6ME2o=
=dSlN
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios2.JSON_Status-beta1-2.patch
Type: text/x-diff
Size: 45398 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080619/137880ab/attachment.patch>
-------------- next part --------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-------------- 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