Problem with check_cpu plugin.
Posted: Thu Jun 25, 2015 8:39 am
Hi all,
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:
2) When one tries to check this on other machine it works:
3) When I try to call particular plugin directly from app02 machine it returns proper values:
As it does on the other one:
From the first (and second
point of view nagios configuration is the same at all six servers, there are over 80 services being monitored
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
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:10Code: 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:10Code: 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:10Code: 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:10and 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