Help Require-Monitoring CPU process through Nagios Core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vijaydonde
Posts: 6
Joined: Fri Sep 05, 2014 12:52 am

Help Require-Monitoring CPU process through Nagios Core

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Help Require-Monitoring CPU process through Nagios Core

Post 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.
Former Nagios employee
Locked