Thanks Ton, I've checked already 5 servers , all report ok on the Query Host command from the web interface. I'm now checking the other hosts. Will this also fix the mrtg graphs once I run the rebuild commands ? Peter ________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of Ton Voon Sent: maandag 18 januari 2010 15:50 To: Opsview Users Subject: Re: [opsview-users] SNMP & MRTG broken 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: <http://docs.opsview.org/doku.php?id=opsview-community:host#snmp_interfa ces> 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
_______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
