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.
nagios returns bad XML
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nagios returns bad XML
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
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
and also added the only xml file i've got in nagios. but i dont think its related
You do not have the required permissions to view the files attached to this post.
Re: nagios returns bad XML
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.
Former Nagios employee
Re: nagios returns bad XML
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?
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
The debug log includes the xml returned in checks. What is the hostname and service name of one of the non-working checks?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: nagios returns bad XML
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