On my nagios core host I get the following error with these general checks check_load, check_users, check_total_procs, check_zombie_procs
[root@nagiossvr var]# /usr/local/nagios/libexec/check_nrpe -H nclient
NRPE v2.15
[root@nagiossvr var]# /usr/lib64/nagios/plugins/check_nrpe -H nclient -c check_root
DISK OK - free space: / 14747 MB (54% inode=99%);| /=12343MB;21672;24381;0;27090
[root@nagiossvr var]# /usr/lib64/nagios/plugins/check_nrpe -H nclient -c check_load
NRPE: Unable to read output
I use the exact same check via macro with other hosts and there is no problem.
on my Nagios nrpe client host all the checks works fine.
[nagios@nclient ~]$ id
uid=1001(nagios) gid=1002(nagios) groups=1002(nagios),1003(nagcmd)
[nagios@nclient ~]$ /usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
OK - load average: 0.00, 0.01, 0.05|load1=0.000;15.000;30.000;0; load5=0.010;10.000;25.000;0; load15=0.050;5.000;20.000;0;
[nagios@nclient ~]$ echo $?
0
NRPE: Unable to read output
Re: NRPE: Unable to read output
Can you show us how the "check_load" command is defined on the remote machine ("nclient")?
How did you install nrpe on the nagios server? It is strange you are using two different paths when running check_nrpe on the nagios server ("nagiossvr")...
How did you install nrpe on the nagios server? It is strange you are using two different paths when running check_nrpe on the nagios server ("nagiossvr")...
[root@nagiossvr var]# /usr/local/nagios/libexec/check_nrpe -H nclient
[root@nagiossvr var]# /usr/lib64/nagios/plugins/check_nrpe -H nclient -c check_root
Be sure to check out our Knowledgebase for helpful articles and solutions!