Page 3 of 3
Re: Port status not showing on Cisco switch using SNMPv3
Posted: Thu Sep 25, 2014 12:44 pm
by lmiltchev
Are you sure that your credentials are correct? Can you run snmpwalk using same credentials?
Code: Select all
snmpwalk -v 3 -u snmprouser -l authNoPriv -a MD5 -A snmpgdi 123 192.168.13.20
Re: Port status not showing on Cisco switch using SNMPv3
Posted: Fri Sep 26, 2014 8:40 am
by riyasbasheer
I finally have a breakthrough:
The above command you asked me to try didn't work:
snmpwalk -v 3 -u snmprouser -l authNoPriv -a MD5 -A snmpgdi 123 192.168.13.20
But the following worked:
snmpwalk -v3 -u snmprouser -l AuthPriv -a md5 -A snmpgdi123 -x des -X snmpgdi123 192.168.13.20
..and then I tried the plugin and that worked as well!:
/usr/local/nagios/libexec/check_ifoperstatnag 10101 -v 3 -u snmprouser -A snmpgdi123 -x DES -X snmpgdi123 -a MD5 -l AuthPriv 192.168.13.20
OK - Interface 10101 is up.
I guess that solves my issue for now, but I will try to investigate why the wizard wasn't generating the right command and will post here.
Re: Port status not showing on Cisco switch using SNMPv3
Posted: Fri Sep 26, 2014 10:52 am
by lmiltchev
I am glad you issue has been resolved!
I will try to investigate why the wizard wasn't generating the right command and will post here.
Try rerunning the wizard (set up a different host name) to see if your checks will be configured properly and let us know.
Re: Port status not showing on Cisco switch using SNMPv3
Posted: Tue Oct 14, 2014 12:09 pm
by riyasbasheer
We tried with different switches and they are all working now!
I was not able to figure out why they weren't working before.
Thanks anyway!
Re: Port status not showing on Cisco switch using SNMPv3
Posted: Tue Oct 14, 2014 2:19 pm
by tmcdonald
Are we all set to close the thread?
Re: Port status not showing on Cisco switch using SNMPv3
Posted: Thu Jan 19, 2017 12:31 pm
by stilpete
I know that this thread is quite old, but I ran into this same issue. It turns out that my passwords were too short.
Passwords as per RFC 2574
https://www.ietf.org/rfc/rfc2574.txt
Page 70
11.2 Defining Users
Paragraph 2
Requires that all SNMPv3 passwords be at least 8 characters long.
I made my two passwords longer than 8 characters and it fixed my problem.
Maybe someone else can find this useful.
Re: Port status not showing on Cisco switch using SNMPv3
Posted: Thu Jan 19, 2017 1:47 pm
by tgriep
Thanks stilpete for the tip, it should help out other users with similar issues.
