XML, JSON, Webservice or something new ?

Max perldork at webwizarddesign.com
Tue Aug 18 04:08:47 CEST 2009


Hi Derrick,

On Mon, Aug 17, 2009 at 8:32 PM, local.coder<code at novageeks.org> wrote:
> I am back to writing some code for a new project involving Nagios. As
> part of this I need light weight data access to status.cgi data.
> Initially I was planning on modding ministatus.cgi which I know is not
> part of the contrib anymore but it is a good starting place. At the same
> time I looked into the status of something more standardized. I would
> prefer to code to a standard that we can all get behind. The Nagios2Json
> looks nice in that JSON is a basic format and gives me what I need,
> however the current project is not Version 3+ compliant. I also found
> the NXE addon for XML output but that has not been updated in some time.

The only problem with the current nagios2json is that you cannot do
discrete queries of hosts/services etc, so not quite ready for AJAX
UIs.

> Before using one of these and making them work I would like to see a
> standardized model for the XML or JSON data structure. I have seen
> several items on the wishlist for a webservice interface and that would
> also work really well but again a standard API would need to be created.
>
> What are others doing for small format host and service data and is
> anyone deeply interested in coming up with some standardized XML or JSON
> data templates ?

I vote JSON :), works well with all sorts of web frameworks and for
high volumes of data much less verbose than XML, we are needing this
as well and I have been speaking with a teammate of mine on enhancing
Nagios2JSON as we will be exposing a RESTful interface within our
organization that lets people GET data out of Nagios with HTTP and
will let them change our Nagios configuration as well to perform CRUD
on our configs through web services.   Nagios2JSON is Nagios 3
compatible (just have to use the VCS rev), maybe we could work
together on it to enhance Yann's existing code?

- Max

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july




More information about the Developers mailing list