monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XML parsing issues with -1


From: Callum Macdonald
Subject: XML parsing issues with -1
Date: Sun, 28 Dec 2014 01:48:22 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

I'm seeing an error from my parsing of monit's XML status output because I'm trying to parse a minus 1 (or negative one for Google's benefit) into an unsigned integer. However, I can't figure out which value is -1. It happens when a service is fails the HTTP protocol test. One of the XML fields returns -1, but I'm not sure which. Can anyone tell me which field it is?

I tried grabbing the XML just now as I saw the error come in, but I was a half second too late! I could set up a script to grab the XML every minute from cron or whatever, but I figured I'd ask here first, and see if anyone knows.

Thanks in advance if you can save me a few hours of debugging.

Cheers - Callum.

--
Callum Macdonald

DE: +49 1573 245 1224
UK: +44 7968 378 810
US: +1 815 246 2207
www.callum-macdonald.com

For avoidance of doubt: This email does not constitute permission to add me to 
your mailing list.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]