Page 1 of 1

Re: [Nagios-devel] XML Output

Posted: Thu Nov 14, 2002 10:36 pm
by Guest
I would also recommend not reinveting the wheel and checking out Apache's XML
libraries for generation (and if you need it, parsing).

http://xml.apache.org/

Ethan, if you know HTML, you know XML! :) It's really nothing special, just
another data format! ;-)

I'd be very happy to help out on this part, and I'm fairly familiar with XML.
I'm not not very familiar with C or C++. I can give it a whack if you want.

I guess I could do a quick example which parses the status.log? Converting
that to an XML in perl would be /really/ easy for me as well..

If there were one entry, you could do something like:

[1037341558]
SERVICE;stcalldb1;PING;OK;1/3;HARD;1037341411;1037341711;ACTIVE;1;1;1;1037338125
;0;OK;575;0;0;0;0;0;1;0;4;1;0;0.00;0;1;1;1;PING OK - Packet loss = 0%, RTA =
1.10 ms



stcalldb1
PING
...etc...



Nothing really that hard honestly.

--
-bk


Quoting Subhendu Ghosh :

> Might want to take a quick look at how Ganglia.sf.net does XML -
> relatively simple setup using XML to multicast host state information for
> a cluster.
>
> I'll try and write up a draft of the XML structure for discussion - It
> might also be handy for for a few other things in v2/v3 :)
>
> -sg
>
> On Wed, 13 Nov 2002, Ethan Galstad wrote:
>
> > It has been mentioned by several people in the past that it would be
> > helpful if there was a way of getting status information in XML
> > format. NTray is one program that would benefit from this.
> >
> > The easiest solution at the moment would be to write a CGI that does
> > this. However, I know very little about XML at the moment, so I need
> > assistance from people in the know. Specifically, what should the
> > output look like to make it easy to interpret?
> >
> > There are 3 types of entities that have status data:
> >
> > - Process status (1 entry)
> > - Host status (Multiple entries)
> > - Service status (Multiple entries)
> >
> > I suppose it would be nice to be able to get access to comment and
> > downtime data in XML format as well, although that is less of a
> > priority that status data.
> >
> > Comments? Suggestions?
> >
> >
> >
> > Ethan Galstad,
> > Nagios Developer
> > ---
> > Email: [email protected]
> > Website: http://www.nagios.org
> >
>
> --
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing
> your web site with SSL, click here to get a FREE TRIAL of a Thawte
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>
>







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]