problem running checks from nagios server for cpu
Posted: Fri Oct 11, 2013 3:05 pm
Team
We are getting issue while checking cpu utilization on client from nagios. Getting "NRPE: Command 'check_CPU_utilization2' not defined" .
It is working fine on one server but giving error on other server
bash-3.2$ ./check_nrpe -n -t 60 -H usa0300lv605.epn.useastgw.xerox.com -c check_CPU_utilization
CPU OK : user=1% system=1% iowait=0% idle=98% | cpu_user=1%;55;60; cpu_sys=1%;55;60; cpu_iowait=0%;55;60; cpu_idle=98%;
-bash-3.2$ ./check_nrpe -n -t 60 -H usa0300ux321.apps.mc.xerox.com -c check_CPU_utilization2
NRPE: Command 'check_CPU_utilization2' not defined
These are defined on remote client in nrpe.cfg file
command[check_CPU_utilization1]=/usr/local/nagios/libexec/check_cpu.sh -w 55 -c 60
command[check_CPU_utilization2]=/usr/local/nagios/libexec/check_solaris_cpu_usage.sh -w 55 -c 60
checks are working fine on client
tmproot@usa0300ux321>/usr/local/nagios/libexec/check_cpu.sh -w 55 -c 60
CPU OK : user=0% system=1% iowait=0% idle=98% | cpu_user=0%;55;60; cpu_sys=1%;55;60; cpu_iowait=0%;55;60; cpu_idle=98%;
tmproot@usa0300ux321>/usr/local/nagios/libexec/check_solaris_cpu_usage.sh -w 55 -c 60
CPU USAGE CRITICAL - 2% (usr=1 sys=1 idle=98)|usage=2 usr=1 sys=1 idle=98
We are getting issue while checking cpu utilization on client from nagios. Getting "NRPE: Command 'check_CPU_utilization2' not defined" .
It is working fine on one server but giving error on other server
bash-3.2$ ./check_nrpe -n -t 60 -H usa0300lv605.epn.useastgw.xerox.com -c check_CPU_utilization
CPU OK : user=1% system=1% iowait=0% idle=98% | cpu_user=1%;55;60; cpu_sys=1%;55;60; cpu_iowait=0%;55;60; cpu_idle=98%;
-bash-3.2$ ./check_nrpe -n -t 60 -H usa0300ux321.apps.mc.xerox.com -c check_CPU_utilization2
NRPE: Command 'check_CPU_utilization2' not defined
These are defined on remote client in nrpe.cfg file
command[check_CPU_utilization1]=/usr/local/nagios/libexec/check_cpu.sh -w 55 -c 60
command[check_CPU_utilization2]=/usr/local/nagios/libexec/check_solaris_cpu_usage.sh -w 55 -c 60
checks are working fine on client
tmproot@usa0300ux321>/usr/local/nagios/libexec/check_cpu.sh -w 55 -c 60
CPU OK : user=0% system=1% iowait=0% idle=98% | cpu_user=0%;55;60; cpu_sys=1%;55;60; cpu_iowait=0%;55;60; cpu_idle=98%;
tmproot@usa0300ux321>/usr/local/nagios/libexec/check_solaris_cpu_usage.sh -w 55 -c 60
CPU USAGE CRITICAL - 2% (usr=1 sys=1 idle=98)|usage=2 usr=1 sys=1 idle=98