Getting SNMP error for Nexus Switches
Re: Getting SNMP error for Nexus Switches
@tgriep - yes, it is open.
Re: Getting SNMP error for Nexus Switches
/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.
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!
Re: Getting SNMP error for Nexus Switches
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.
Re: Getting SNMP error for Nexus Switches
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.
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> -v2cBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Getting SNMP error for Nexus Switches
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.
Re: Getting SNMP error for Nexus Switches
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!