On 18 Jan 2010, at 14:28, Peter Plate wrote:

Attached are 2 files from our query_host commands.
 
when I look at the file from within the monitoring server this is what is displayed :
<data>
  <host sysContact="[email protected]" sysDescr="Hardware: x86 Family 6 Model 15 Stepping 2 AT/AT COMPATIBLE - Software: Windows Version 5.2 (Build 3790 Multiprocessor Free)" sysLocation="Schiedam">
    <interface id="1" ifAlias="4294967295" ifDescr="MS TCP Loopback interface^@" ifLink="up" ifSpeed="10Mbit/s" ifStatus="up" />
    <interface id="65539" ifAlias="4294967295" ifDescr="Broadcom NetXtreme Gigabit Ethernet #2^@" ifLink="up" ifSpeed="1000Mbit/s" ifStatus="up" />
    <interface id="65540" ifAlias="4294967295" ifDescr="Broadcom NetXtreme Gigabit Ethernet^@" ifLink="up" ifSpeed="1000Mbit/s" ifStatus="up" />
  </host>
</data>
This "^@" is not shown in the xml when I open it with notepad or frontpage on windows. This seems to be place where whe query host cmd from the webinterface is stopping :
SNMP Interfaces: query_host returned invalid XML: <data> <host sysContact="[email protected]" sysDescr="Hardware: x86 Family 6 Model 15 Stepping 2 AT/AT COMPATIBLE - Software: Windows Version 5.2 (Build 3790 Multiprocessor Free)" sysLocation="Schiedam"> <interface id="1" ifAlias="4294967295" ifDescr="MS TCP Loopback interface
Peter

Thanks to you and Matt for the debug information.

I've attached a newer version of query_host. Can you replace the existing version in /usr/local/nagios/bin/query_host with this one and then try again at the web interface to query the host and see if you get the error?

My guess is that the \0 character (which is displayed in FF as ^@) is causing all the trouble.

Ton

Attachment: query_host
Description: Binary data

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to