Page 1 of 2

Monitoring new routers

Posted: Mon Nov 02, 2015 5:28 pm
by CUTM
Hello... we just added four new CISCO routers to our infrastructure that I'm attempting to configure for monitoring (rather poorly it seems). I have the check_ping monitoring set up without issues but when I try to add any check_snmp I'm not getting any responses : SNMP problem - No data received from host. I'm fairly new to Nagios so I'm not versed in the syntax well but I tried to reuse the commands for firewalls/switches :

Code: Select all

define service {
use                     generic-service
host_name                   Host Name
service_description     e0/0 Status
check_command           check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
}
Is there something obvious I'm missing?

Thanks.

Re: Monitoring new routers

Posted: Mon Nov 02, 2015 6:07 pm
by Box293
I would start with SNMP v2:

-P 2c

-C public -P 2c -o ifOperStatus.1 -r 1 -m RFC1213-MIB

Let us know if that helps.

Re: Monitoring new routers

Posted: Tue Nov 03, 2015 9:56 am
by CUTM
Thanks for the reply. I made the suggested modification but received the same result :

"SNMP problem - No data received from host"

Re: Monitoring new routers

Posted: Tue Nov 03, 2015 4:44 pm
by rkennedy
If you run the command from CLI at /usr/local/nagios/libexec/ - what is the output?

Re: Monitoring new routers

Posted: Tue Nov 03, 2015 5:10 pm
by CUTM
Response from CLI :

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

Re: Monitoring new routers

Posted: Tue Nov 03, 2015 5:12 pm
by hsmith
Are you allowing SNMP through your firewall on the Nagios server?

Re: Monitoring new routers

Posted: Tue Nov 03, 2015 5:27 pm
by CUTM
We have it monitoring other devices successfully... so I believe so.

Re: Monitoring new routers

Posted: Tue Nov 03, 2015 5:27 pm
by CUTM
We have it monitoring other devices successfully... so I believe so.

Re: Monitoring new routers

Posted: Tue Nov 03, 2015 9:30 pm
by Box293
Are you able to SNMP walk the device?

Code: Select all

snmpwalk -v 2c -c public xxx.xxx.xxx.xxx -m all 1.3.6.1.4.1

Re: Monitoring new routers

Posted: Wed Nov 04, 2015 10:41 am
by CUTM
That command results in :

Timeout : No Response from XXX.XXX.XXX.XXX