Page 1 of 1

Re: [Nagios-devel] XML Output

Posted: Fri Nov 15, 2002 12:13 am
by Guest
Part of the XML request is to be able to provide a raw XML feed to
programs like NTtray. The closest thing I can think of is SOAP - but a
simple of dump of the XML stream on a TCP connection should work just as
well and be a lot simpler.

The current definition I proposed allows for zero or more host/service
records to be sent - possibly allowing some form of filtering before
transmission. Might be useful if someone wanted to develop a gui and only
request objects that a user was authorized for.

expat and Perl's XML::Parser based on expat seemed to be the smallest
pieces of code that would do the job.

-sg


On Thu, 14 Nov 2002, Brandon Knitter wrote:

> 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.
>
>

--







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