nagios returns bad XML

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cklayus
Posts: 62
Joined: Tue May 27, 2014 8:42 am

nagios returns bad XML

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagios returns bad XML

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cklayus
Posts: 62
Joined: Tue May 27, 2014 8:42 am

Re: nagios returns bad XML

Post 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
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagios returns bad XML

Post 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.
Former Nagios employee
cklayus
Posts: 62
Joined: Tue May 27, 2014 8:42 am

Re: nagios returns bad XML

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagios returns bad XML

Post 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?
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.
cklayus
Posts: 62
Joined: Tue May 27, 2014 8:42 am

Re: nagios returns bad XML

Post 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
Locked