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
Post
by CUTM » Mon Nov 02, 2015 5:28 pm
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.
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Mon Nov 02, 2015 6:07 pm
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
Post
by CUTM » Tue Nov 03, 2015 9:56 am
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
Post
by rkennedy » Tue Nov 03, 2015 4:44 pm
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
Post
by CUTM » Tue Nov 03, 2015 5:10 pm
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"
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Tue Nov 03, 2015 5:12 pm
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
Post
by CUTM » Tue Nov 03, 2015 5:27 pm
We have it monitoring other devices successfully... so I believe so.
CUTM
Posts: 10 Joined: Fri Oct 09, 2015 9:45 am
Post
by CUTM » Tue Nov 03, 2015 5:27 pm
We have it monitoring other devices successfully... so I believe so.
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Tue Nov 03, 2015 9:30 pm
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
Post
by CUTM » Wed Nov 04, 2015 10:41 am
That command results in :
Timeout : No Response from XXX.XXX.XXX.XXX