Few weeks ago I was asked to administer another Nagios system, and observed some strange behaviour of check_cpu_perf plugin.
Problem:
1) When I try to call check_cpu via nrpe on app02 machine I got response but without values:
Code: Select all
[root@nagios /]# /usr/lib64/nagios/plugins/check_nrpe -H app02 -c check_cpu -a 30 50
OK: CPU Idle = % | CpuUser=; CpuNice=; CpuSystem=; CpuIowait=; CpuSteal=; CpuIdle=:20:10
Code: Select all
[root@nagios /]# /usr/lib64/nagios/plugins/check_nrpe -H app01 -c check_cpu -a 30 50
OK: CPU Idle = 98.91% | CpuUser=0.91; CpuNice=0.00; CpuSystem=0.18; CpuIowait=0.00; CpuSteal=0.00; CpuIdle=98.91:20:10
Code: Select all
[root@app02 ~]# /usr/lib64/nagios/plugins/check_cpu_perf.sh 50 30
OK: CPU Idle = 98.70% | CpuUser=1.10; CpuNice=0.00; CpuSystem=0.20; CpuIowait=0.00; CpuSteal=0.00; CpuIdle=98.70:20:10
Code: Select all
[root@app01 ~]# /usr/lib64/nagios/plugins/check_cpu_perf.sh 50 30
OK: CPU Idle = 99.10% | CpuUser=0.73; CpuNice=0.00; CpuSystem=0.17; CpuIowait=0.00; CpuSteal=0.00; CpuIdle=99.10:20:10
and only this one check_cpu behaves in such strange manner..
I have googled a lot during last days, checked also debug from Nagios server, which gave me nothing more than those empty values from point 1.
Thanks in advance for any support in this case - I have been stucked
Regards,
John