Nagios plug-in check_snmp receives NO SNMP data from a CISCO Router

Posted by Shehryar on Server Fault See other posts from Server Fault or by Shehryar
Published on 2011-11-17T00:08:07Z Indexed on 2011/11/17 1:54 UTC
Read the original article Hit count: 563

I have tried setting up Nagios on Ubuntu 10.10, successfully installed and can login to web interface, I am however stuck on configuring snmp or I am doing something wrong here, i have followed various sites / nagios wiki to setup configuration (cfg) files.

When I check on the web interface, it gives the following error on one of my cisco router:

 Current Status:
   UNKNOWN  
  (for 0d 2h 55m 56s)
 Status Information:

SNMP problem - No data received from host CMD: /usr/bin/snmpget -t 1 -r 5 -m RFC1213-MIB -v 1 [authpriv] 192.168.1.1:161
ifOperStatus.1

On the command-line itself, when I type the following, it just sits there waiting and waiting :

sudo /usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -C Routers -o sysUpTime.0

When I type the following command : I get an OK

/usr/bin/snmpget -v1 192.168.1.1:161 1.3.6.1.2.1.1.5.0 -c "Routers"

I have configured SNMP properly on our cisco device as we can collect SNMP Data via two other monitoring tool (SolarWinds and Manage Engine), we are tempted towards Nagios as its opensource.

Will be grateful if someone could assist in rectifying this situation and guide me with setting up nagios to monitor Cisco Routers, Switches and a Few Servers.

We want to monitor Bandwidth, cpu utilization, uptime and other necessary counters.

Will be grateful for your assistance Thanks for reading Shehryar

© Server Fault or respective owner

Related posts about cisco

Related posts about nagios