Page 1 of 1
nagios returns bad XML
Posted: Thu May 29, 2014 8:34 am
by cklayus
I am using a custom plugin to monitor automatic services on windows servers. i use passive checks.
the plugin works fine in most cases, but some servers stop transmitting data after using the plugin i checked their specific log an notices that when thei transmit all of the checks the get a "bad xml" reply from the nagios server.
Re: nagios returns bad XML
Posted: Thu May 29, 2014 11:52 am
by scottwilkerson
Is it possible for you to show the content of the XML you are sending to NRDP from the remote system? it could be that the output may contain chars that need to be escaped for XML
Re: nagios returns bad XML
Posted: Sun Jun 01, 2014 5:38 am
by cklayus
I have added the log file where you can see the error message
and also added the only xml file i've got in nagios. but i dont think its related
Re: nagios returns bad XML
Posted: Mon Jun 02, 2014 11:16 am
by tmcdonald
I think Scott was asking for the XML data that you are sending in your NRDP message. Looking at your log it does appear that some messages are making it just fine, which makes me think it is your plugin output.
Re: nagios returns bad XML
Posted: Tue Jun 10, 2014 3:55 am
by cklayus
Ok how to i see the xml content of what is sent to the nagios?
what could be wrong with the out put of the plugin? it does work on some servers. maybe the length?
Re: nagios returns bad XML
Posted: Tue Jun 10, 2014 2:07 pm
by abrist
The debug log includes the xml returned in checks. What is the hostname and service name of one of the non-working checks?
Re: nagios returns bad XML
Posted: Tue Jun 17, 2014 3:11 am
by cklayus
I have found that the nagios doesnt like some chars like & and other languages like hebrew, the issue is resolved for now. i am opening another about the language thing