unable to monitor switch SNMP error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

unable to monitor switch SNMP error

Post 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
You do not have the required permissions to view the files attached to this post.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: unable to monitor switch SNMP error

Post by gormank »

Try doing an snmpwalk on the switch.

snmpwalk -t 300 -v 2c -Cc -On -c <cstring> <host>
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: unable to monitor switch SNMP error

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

Re: unable to monitor switch SNMP error

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: unable to monitor switch SNMP error

Post by tgriep »

SNMP uses port 161 UDP for monitoring so this is how you need to run the nmap command to scan that port.

Code: Select all

nmap xxx.xxx.xxx.xxx -sU -p 161
Post the output please.

Can you login to the Nagios server and run a snmpwalk against the device?
Be sure to check out our Knowledgebase for helpful articles and solutions!
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

Re: unable to monitor switch SNMP error

Post by azam101 »

See attached
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: unable to monitor switch SNMP error

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

Re: unable to monitor switch SNMP error

Post by azam101 »

Getting a timeout: No response message

SNMP read only is enabled on the switch
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: unable to monitor switch SNMP error

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

Re: unable to monitor switch SNMP error

Post by azam101 »

cisco switch 2960
snmp v 2C

No errors on switch
You do not have the required permissions to view the files attached to this post.
Locked