Getting SNMP error for Nexus Switches

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mlk0506
Posts: 28
Joined: Thu Oct 03, 2013 2:40 pm

Getting SNMP error for Nexus Switches

Post by mlk0506 »

I have been tasked with setting up nagios to monitor 4 nexus switches. After a few road blocks i managed to successfully get one of them configured and is now being monitored. I found 2 plugins from the nagios exchange for the nexus switches. Anyways, the 2nd one i'm trying to configure gets this error " UNKNOWN: SNMP get_request : No response from remote host '10.155.9.121'" when i try to add the service i made for it to check the hardware and memory usage to the 2nd nexus switch. I added the 2nd switch and it is configure exactly like the 1st one except ip address of course, but it has the same SNMP as the 1st one. I'm very new to nagios in general and to using linux commands/codes. I've probably missed a step or two and i don't know where to look. I guess a better question is, what kind of info do you all need to be able to help me? or is it maybe that i can't use the same check commands( services) twice for 2 different hosts?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Getting SNMP error for Nexus Switches

Post by hsmith »

Are you able to communicate with port 161 for that IP? You can attempt to check this by using telnet.
Former Nagios Employee.
me.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Getting SNMP error for Nexus Switches

Post by bwallace »

From Nagios XI server, try doing an snmpwalk against the non-working Nexus switch:
snmpwalk -v2c -c <community> <IP ADDRESS OF HOST>

or snmpget
snmpget -v2c -c <community> <IP ADDRESS OF HOST>

Was the walk successful? Please post the output and the nagios exchange link to the plugin you're using so we can check that out as well - thanks -
Be sure to check out the Knowledgebase for helpful articles and solutions!
mlk0506
Posts: 28
Joined: Thu Oct 03, 2013 2:40 pm

Re: Getting SNMP error for Nexus Switches

Post by mlk0506 »

@ hsmith - Our network admin doesn't have it setup with a port, he said he uses SSH connection. the Nexus switches are able to be pinged, they are up and the 1st one is using the plugin services just fine. the 2nd has a status of up and can be pinged, the plugin services just come back unknown.


@bwallace
https://exchange.nagios.org/directory/P ... re/details
https://exchange.nagios.org/directory/P ... em/details

those are the two plugins.

the output of snmpwalk is: No response from 10.155.9.121

the output of snmpget just gives me a table of options?
i'm sorry i'm not sure how to give you a screenshot or copy and paste. when it comes to linux, i am truly a beginner.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Getting SNMP error for Nexus Switches

Post by bwallace »

Thanks for the info. The table of OIDs is correct = that's a good sign. To get us a copy, from the XI machine run:

snmpget -v2c -c <community> <IP ADDRESS OF HOST> -w snmpgetTest.txt

(it will write the file to the directory you issue the command from)

Then use WinScp to retrieve the file
https://winscp.net/eng/download.php
Be sure to check out the Knowledgebase for helpful articles and solutions!
mlk0506
Posts: 28
Joined: Thu Oct 03, 2013 2:40 pm

Re: Getting SNMP error for Nexus Switches

Post by mlk0506 »

so i ran that script, and then i downloaded the winscp from the link you gave me, but i cannot for the life of me figure out how to use it.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Getting SNMP error for Nexus Switches

Post by hsmith »

What issue in particular are you running into with WinSCP?
Former Nagios Employee.
me.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Getting SNMP error for Nexus Switches

Post by tgriep »

Take a look at the WinSCP guide at this link for any help on downloading files from the XI server.
https://winscp.net/eng/docs/guides
Be sure to check out our Knowledgebase for helpful articles and solutions!
mlk0506
Posts: 28
Joined: Thu Oct 03, 2013 2:40 pm

Re: Getting SNMP error for Nexus Switches

Post by mlk0506 »

Ok, thank you i got it now, sorry...
However, i just realized that when the script is ran it says " snmpget: invalid option --'w'
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Getting SNMP error for Nexus Switches

Post by tgriep »

Actually, there isn't a -w option for the snmpget command, must be a typo.
Can you run the following command to see if the port 161 UDP is open on your switch?

Code: Select all

nmap -sU -p 161 xxx.xxx.xxx.xxx
Replace the xxx.xxx.xxx.xxx with the IP address of the switch and post the output of the command.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked