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

Re: Getting SNMP error for Nexus Switches

Post by mlk0506 »

@tgriep - yes, it is open.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Getting SNMP error for Nexus Switches

Post by tgriep »

/usr/local/nagios/libexec/check_cisco_nexus_hardware.pl -H xxx.xxx.xxx.xxx -C <Communityname> -v 2
snmpwalk xxx.xxx.xxx.xxx -c <Communityname> -v2c

Replace the xxx.xxx.xxx.xxx with the IP address of the switch and the actual community name for <Communityname> and post the output of the commands.
If you receive No Response from the device, then it could be that the community name you are using is incorrect or the SNMP version.
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 »

2016_04_04_14_59_46_10.155.11.186_vSphere_Client.png
I double checked the spelling and that is what my network admin gave me. Which must be correct because that is what is currently being used by the switch that the plugin is working on.
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: Getting SNMP error for Nexus Switches

Post by tgriep »

Nagios XI user the ! as a delimiter for it's commands and I noticed you have an ! in the Community string and this will cause you issues.
You can try and put single quotes around the community string but that may not work as well.
Can you edit the Switches and remove the ! from the community string?

BTW, these are 2 separate commands. Put in the first line and press enter then type in the second line and press enter to run it.

Code: Select all

/usr/local/nagios/libexec/check_cisco_nexus_hardware.pl -H xxx.xxx.xxx.xxx -C <Communityname> -v 2
snmpwalk xxx.xxx.xxx.xxx -c <Communityname> -v2c
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 »

unfortunately changing the string is beyond me, our network admin has to do that, but adding the quotes did work. I ran both scripts again, separately this time and it got no response from that IP for both. At this point, i'm not thinking its the plugin anymore, i think it is the switches problem, so i'm going to ask our network admin about it.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Getting SNMP error for Nexus Switches

Post by bwallace »

Thanks for the update, we'll leave this thread open and let us know what you find out.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked