Nagios2JSON

One of my current projects is the Nagios enhancement in order to send status of hosts, services etc.. using JSON format. This will be provided by a new CGI script.

 


Sourceforge project  : http://www.sourceforge.net/projects/nagios2json

Submit a bug

Submit a feature request

 


Update 21th june 2008 :

PHP Class to use JSON format sent by Nagios2JSON CGI is now online :

https://nagios2json.svn.sourceforge.net/svnroot/nagios2json/PHP/

 


 

Update 19th june 2008 :

I see there is a lot visitor coming on this website.

Please don't hesitate to contact me if you need help for installing my script.

 

Update 15th june 2008 :

I coded a XSD Backend which write directly the file status.dat in JSON

It works for the moment with Nagios2 (I am finalizing the version for Nagios3).

 


 

 

This enhancement will allow easy and fast developpment of Web User Interfaces.

Another project is the developement of a JSON backend for NagVis to use with the Nagios JSON format export.

You can download the sources of Nagios2JSON CGI.

 


Installation on Nagios 2 : 

Extract nag2-statusjson.tar.gz in the cgi directory of you nagios sources folder.

Run  :

patch -p1 < cgi-makefilein.patch

../configure

make

make install

 


Nagios2JSON SVN : 

https://nagios2json.svn.sourceforge.net/svnroot/nagios2json/ Please send me your feedbacks, this is really important to improve Nagios2JSON.

Changelog

  • TODO (in less that 2 weeks) :
  • Finalizing the Nagios2JSON PHP Class
  • Finalizing BackEnd for NagVis
  • Packaging file for Nagios 2/3
  • Writing a event broker to use JSON-RPC for realtime update to frontend server
  • Writing an aggregator for JSON flows

 

 


 

 

 

 

 

 

Why JSON ?

JSON is a easy to parse format which parser is implemented in PHP (from 5.2 : json_decode) as an example. You can find more information on www.json.org

Fichier attachéTaille
statusjson.zip - Compilled CGI for Nagios v2 - x86 32bits115.88 Ko
statusjson.c7.02 Ko
nag2-statusjson.tar_.gz3.06 Ko
Patch for NAGIOS2-CVS / ADD JSON STATUS DAT BACKEND45.51 Ko