Monitoring new routers

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.
CUTM
Posts: 10
Joined: Fri Oct 09, 2015 9:45 am

Monitoring new routers

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Monitoring new routers

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
CUTM
Posts: 10
Joined: Fri Oct 09, 2015 9:45 am

Re: Monitoring new routers

Post by CUTM »

Thanks for the reply. I made the suggested modification but received the same result :

"SNMP problem - No data received from host"
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitoring new routers

Post by rkennedy »

If you run the command from CLI at /usr/local/nagios/libexec/ - what is the output?
Former Nagios Employee
CUTM
Posts: 10
Joined: Fri Oct 09, 2015 9:45 am

Re: Monitoring new routers

Post 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"
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Monitoring new routers

Post by hsmith »

Are you allowing SNMP through your firewall on the Nagios server?
Former Nagios Employee.
me.
CUTM
Posts: 10
Joined: Fri Oct 09, 2015 9:45 am

Re: Monitoring new routers

Post by CUTM »

We have it monitoring other devices successfully... so I believe so.
CUTM
Posts: 10
Joined: Fri Oct 09, 2015 9:45 am

Re: Monitoring new routers

Post by CUTM »

We have it monitoring other devices successfully... so I believe so.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Monitoring new routers

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
CUTM
Posts: 10
Joined: Fri Oct 09, 2015 9:45 am

Re: Monitoring new routers

Post by CUTM »

That command results in :

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