Hello!
I configured linux case that check CPU load with NRPE in Nagiosxi.
All manual object files configure in /usr/local/nagios/etc/static.
But cpu load servicegraph is not precent.(PNP)
The XML error:" Invalid character at line 82 in /usr/local/nagios/share/perfdata/HOSTNAME/CPU_Load.xml"
Line 82 in CPU_Load.xml:
<NAGIOS_LONGSERVICEOUTPUT>ç^Bi</NAGIOS_LONGSERVICEOUTPUT>
The CPU_Load.XML error in PNP4Nagiosxi
Re: The CPU_Load.XML error in PNP4Nagiosxi
If you run the command manually from the command line of the Nagios server, what does it output? Is the remote machine set as a different language?
Re: The CPU_Load.XML error in PNP4Nagiosxi
Hi,
The error message is in browser.It would not cause about language.
The error message is in browser.It would not cause about language.
You do not have the required permissions to view the files attached to this post.
Re: The CPU_Load.XML error in PNP4Nagiosxi
Can you please post the output of running the command from the CLI?ssax wrote:If you run the command manually from the command line of the Nagios server, what does it output? Is the remote machine set as a different language?
Former Nagios Employee
Re: The CPU_Load.XML error in PNP4Nagiosxi
Hi,
I run check_load with nrpe, view the CPU_Load.xml file, and print env Language.
[root@localhost libexec]# ./check_nrpe -H 10.1.192.204 -c check_load
OK - load average: 0.30, 0.15, 0.08|load1=0.300;15.000;30.000;0; load5=0.150;10.000;25.000;0; load15=0.080;5.000;20.000;0;
çi
[root@localhost libexec]#
[root@localhost 192-AP01-1]# vi CPU_Load.xml
<NAGIOS_HOSTNAME>192-AP01-1</NAGIOS_HOSTNAME>
<NAGIOS_HOSTSTATE>UP</NAGIOS_HOSTSTATE>
<NAGIOS_HOSTSTATETYPE>HARD</NAGIOS_HOSTSTATETYPE>
<NAGIOS_LONGSERVICEOUTPUT>ç^Bi</NAGIOS_LONGSERVICEOUTPUT>
<NAGIOS_MULTI_PARENT></NAGIOS_MULTI_PARENT>
<NAGIOS_PERFDATA>load1=0.410;15.000;30.000;0; load5=0.220;10.000;25.000;0; load15=0.110;5.000;20.000;0; </NAGIOS_PERFDATA>
<NAGIOS_RRDFILE>/usr/local/nagios/share/perfdata/192-AP01-1/CPU_Load.rrd</NAGIOS_RRDFILE>
<NAGIOS_SERVICECHECKCOMMAND>check_nrpe!check_load</NAGIOS_SERVICECHECKCOMMAND>
<NAGIOS_SERVICEDESC>CPU_Load</NAGIOS_SERVICEDESC>
<NAGIOS_SERVICEOUTPUT>OK - load average: 0.41, 0.22, 0.11</NAGIOS_SERVICEOUTPUT>
<NAGIOS_SERVICEPERFDATA>load1=0.410;15.000;30.000;0; load5=0.220;10.000;25.000;0; load15=0.110;5.000;20.000;0;</NAGIOS_SERVICEPERFDATA>
<NAGIOS_SERVICESTATE>OK</NAGIOS_SERVICESTATE>
<NAGIOS_SERVICESTATETYPE>HARD</NAGIOS_SERVICESTATETYPE>
<NAGIOS_TIMET>1451524163</NAGIOS_TIMET>
<NAGIOS_XMLFILE>/usr/local/nagios/share/perfdata/192-AP01-1/CPU_Load.xml</NAGIOS_XMLFILE>
<XML>
<VERSION>4</VERSION>
</XML>
</NAGIOS>
[root@localhost /]# env |grep LANG
LANG=en_US.UTF-8
I run check_load with nrpe, view the CPU_Load.xml file, and print env Language.
[root@localhost libexec]# ./check_nrpe -H 10.1.192.204 -c check_load
OK - load average: 0.30, 0.15, 0.08|load1=0.300;15.000;30.000;0; load5=0.150;10.000;25.000;0; load15=0.080;5.000;20.000;0;
çi
[root@localhost libexec]#
[root@localhost 192-AP01-1]# vi CPU_Load.xml
<NAGIOS_HOSTNAME>192-AP01-1</NAGIOS_HOSTNAME>
<NAGIOS_HOSTSTATE>UP</NAGIOS_HOSTSTATE>
<NAGIOS_HOSTSTATETYPE>HARD</NAGIOS_HOSTSTATETYPE>
<NAGIOS_LONGSERVICEOUTPUT>ç^Bi</NAGIOS_LONGSERVICEOUTPUT>
<NAGIOS_MULTI_PARENT></NAGIOS_MULTI_PARENT>
<NAGIOS_PERFDATA>load1=0.410;15.000;30.000;0; load5=0.220;10.000;25.000;0; load15=0.110;5.000;20.000;0; </NAGIOS_PERFDATA>
<NAGIOS_RRDFILE>/usr/local/nagios/share/perfdata/192-AP01-1/CPU_Load.rrd</NAGIOS_RRDFILE>
<NAGIOS_SERVICECHECKCOMMAND>check_nrpe!check_load</NAGIOS_SERVICECHECKCOMMAND>
<NAGIOS_SERVICEDESC>CPU_Load</NAGIOS_SERVICEDESC>
<NAGIOS_SERVICEOUTPUT>OK - load average: 0.41, 0.22, 0.11</NAGIOS_SERVICEOUTPUT>
<NAGIOS_SERVICEPERFDATA>load1=0.410;15.000;30.000;0; load5=0.220;10.000;25.000;0; load15=0.110;5.000;20.000;0;</NAGIOS_SERVICEPERFDATA>
<NAGIOS_SERVICESTATE>OK</NAGIOS_SERVICESTATE>
<NAGIOS_SERVICESTATETYPE>HARD</NAGIOS_SERVICESTATETYPE>
<NAGIOS_TIMET>1451524163</NAGIOS_TIMET>
<NAGIOS_XMLFILE>/usr/local/nagios/share/perfdata/192-AP01-1/CPU_Load.xml</NAGIOS_XMLFILE>
<XML>
<VERSION>4</VERSION>
</XML>
</NAGIOS>
[root@localhost /]# env |grep LANG
LANG=en_US.UTF-8
Re: The CPU_Load.XML error in PNP4Nagiosxi
I see the characters çi added, when you run the command is that part of the output? Can you run check_nrpe from the CLI again and post the output? I'd like to see if this happens every time, and if the characters are changing or not.lancewang wrote: [root@localhost libexec]# ./check_nrpe -H 10.1.192.204 -c check_load
OK - load average: 0.30, 0.15, 0.08|load1=0.300;15.000;30.000;0; load5=0.150;10.000;25.000;0; load15=0.080;5.000;20.000;0;
çi
Former Nagios Employee
Re: The CPU_Load.XML error in PNP4Nagiosxi
Hello,
I just check_load with nrpe. But only check_load had a invalid characters every times. Other commands not.
[root@localhost libexec]# ./check_nrpe -H 10.1.192.204 -c check_users
USERS OK - 0 users currently logged in |users=0;5;10;0
[root@localhost libexec]# ./check_nrpe -H 10.1.192.204 -c check_load
OK - load average: 0.13, 0.10, 0.12|load1=0.130;15.000;30.000;0; load5=0.100;10.000;25.000;0; load15=0.120;5.000;20.000;0;
çi
[root@localhost libexec]# ./check_nrpe -H 10.1.192.204 -c check_load
OK - load average: 0.12, 0.10, 0.12|load1=0.120;15.000;30.000;0; load5=0.100;10.000;25.000;0; load15=0.120;5.000;20.000;0;
çi
I just check_load with nrpe. But only check_load had a invalid characters every times. Other commands not.
[root@localhost libexec]# ./check_nrpe -H 10.1.192.204 -c check_users
USERS OK - 0 users currently logged in |users=0;5;10;0
[root@localhost libexec]# ./check_nrpe -H 10.1.192.204 -c check_load
OK - load average: 0.13, 0.10, 0.12|load1=0.130;15.000;30.000;0; load5=0.100;10.000;25.000;0; load15=0.120;5.000;20.000;0;
çi
[root@localhost libexec]# ./check_nrpe -H 10.1.192.204 -c check_load
OK - load average: 0.12, 0.10, 0.12|load1=0.120;15.000;30.000;0; load5=0.100;10.000;25.000;0; load15=0.120;5.000;20.000;0;
çi
Re: The CPU_Load.XML error in PNP4Nagiosxi
Hello,
I found this case solved. But how can I fix any configuration to fix my problem?
Thanks a lot.
https://groups.google.com/forum/#!topic ... oee39b8g-4
I found this case solved. But how can I fix any configuration to fix my problem?
Thanks a lot.
https://groups.google.com/forum/#!topic ... oee39b8g-4
Re: The CPU_Load.XML error in PNP4Nagiosxi
Can you run ./check_nrpe -H 10.1.192.204 and paste the output? I'd like to check your version of NRPE.
I found this link - https://bugs.debian.org/cgi-bin/bugrepo ... bug=498749 - which says it should have been fixed in 2.12.
I found this link - https://bugs.debian.org/cgi-bin/bugrepo ... bug=498749 - which says it should have been fixed in 2.12.
Found in version nagios-nrpe/2.8.1-1.1
Fixed in version nagios-nrpe/2.12-1
Former Nagios Employee
Re: The CPU_Load.XML error in PNP4Nagiosxi
Dear rkennedy:
I upgrade nrpe v 2.9 to v2.15. The problem solved.
Thanks.
I monitor a Windows Host with NSClient++. The Nagios xi show message 'NSClient - ERROR: Invalid password'. But another Nagios core is not.
I configured nsc.ini ,but it still is.
How can I check windows without check_nt password?
Best Regards,
I upgrade nrpe v 2.9 to v2.15. The problem solved.
Thanks.
I monitor a Windows Host with NSClient++. The Nagios xi show message 'NSClient - ERROR: Invalid password'. But another Nagios core is not.
I configured nsc.ini ,but it still is.
How can I check windows without check_nt password?
Best Regards,