Page 1 of 1

Help Require-Monitoring CPU process through Nagios Core

Posted: Fri Sep 05, 2014 1:10 am
by vijaydonde
Hi Friends,

I have installed Nagios Core 4.0.1 on Centos 6 OS. I want to monitor Cisco router ( Cisco 3925 ) through check_snmp plugin .
I am getting below error after configuring command & service in nagios.
********************************************************************************************************************************
Checking objects...
Error: Service check command 'check_snmp -H 192.168.0.121 -c public -o 1.3.6.1.4.1.9.2.1.57.0 -w 0-60 -c 0-80' specified in service 'CPU Utilization Router' for host '121.MUM.HUB.TCL.RTR.3925' not defined anywhere!
*************************************************************************************************************************************
Below is the configuration for your ref.

define command {
command_name CPU Utilization Router
command_line $USR1$/check_snmp -H $HOSTADDRESS$ -C public -o 1.3.6.1.4.1.9.2.1.57.0 -w 0-60 -c 0-80
}

define service {
use generic-service
host_name 121.MUM.HUB.TCL.RTR.3925
service_description CPU Utilization Router
check_interval 5
check_command check_snmp -H 192.168.0.121 -c public -o 1.3.6.1.4.1.9.2.1.57.0 -w 0-60 -c 0-80
}

Please guide me if anything is wrong in above configuration.


Regards,
Vijay D.

Re: Help Require-Monitoring CPU process through Nagios Core

Posted: Fri Sep 05, 2014 10:03 am
by tmcdonald
Change your command_name entry from "CPU Utilization Router" to "cpu_utilization_router" and your check_command entry from "check_snmp -H 192.168.0.121 -c public -o 1.3.6.1.4.1.9.2.1.57.0 -w 0-60 -c 0-80" to "cpu_utilization_router".

Whatever you have after check_command needs to be a valid command_name entry.