Page 1 of 2
unable to monitor switch SNMP error
Posted: Thu Apr 28, 2016 10:36 am
by azam101
Hi,
We are trying to setup monitoring for a switch, nagios can ping the switch fine , firewall rules have been setup to allow.
SNMP is enabled on the switch but looks like nagios is having problems retrieving information from the SNMP for details of ports.
see attached errors
Re: unable to monitor switch SNMP error
Posted: Thu Apr 28, 2016 1:07 pm
by gormank
Try doing an snmpwalk on the switch.
snmpwalk -t 300 -v 2c -Cc -On -c <cstring> <host>
Re: unable to monitor switch SNMP error
Posted: Thu Apr 28, 2016 1:35 pm
by tgriep
Some of the common things to look for that cause the inability to monitor a device using SNMP are an incorrect community string, the wrong SNMP version selected when polling the device.
Also, some devices you have to enable the IP address of the Nagios server to poll it's SNMP information. Check that to see if that is true.
Re: unable to monitor switch SNMP error
Posted: Wed May 04, 2016 10:04 am
by azam101
SNMP is enabled and has the correct version on the switch the firewall open to the SNMP.
firewall on Nagios server has been disabled
Ran nmap on the switch ip address
Re: unable to monitor switch SNMP error
Posted: Wed May 04, 2016 12:08 pm
by tgriep
SNMP uses port 161 UDP for monitoring so this is how you need to run the nmap command to scan that port.
Post the output please.
Can you login to the Nagios server and run a snmpwalk against the device?
Re: unable to monitor switch SNMP error
Posted: Thu May 05, 2016 4:26 am
by azam101
See attached
Re: unable to monitor switch SNMP error
Posted: Thu May 05, 2016 10:14 am
by tgriep
It looks like the port is open. Lets try and run a snmpwalk against the device and see if we get any response from it.
Login to the XI server and run the following snmpwalk command.
Code: Select all
snmpwalk xxx.xxx.xxx.xxx -v2c -c community
Replace xxx.xxx.xxx.xxx with the IP address of your device and change the community string to the value you are using.
What is the make and model number of the device you are trying to monitor?
Re: unable to monitor switch SNMP error
Posted: Fri May 06, 2016 5:05 am
by azam101
Getting a timeout: No response message
SNMP read only is enabled on the switch
Re: unable to monitor switch SNMP error
Posted: Fri May 06, 2016 9:08 am
by tgriep
What is the make and model number of the device you are trying to monitor?
Are there any errors on the device?
What snmp version is enabled on the device?
Re: unable to monitor switch SNMP error
Posted: Fri May 06, 2016 9:28 am
by azam101
cisco switch 2960
snmp v 2C
No errors on switch