Port status not showing on Cisco switch using SNMPv3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Port status not showing on Cisco switch using SNMPv3

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
riyasbasheer
Posts: 15
Joined: Thu Jun 12, 2014 12:59 am

Re: Port status not showing on Cisco switch using SNMPv3

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Port status not showing on Cisco switch using SNMPv3

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
riyasbasheer
Posts: 15
Joined: Thu Jun 12, 2014 12:59 am

Re: Port status not showing on Cisco switch using SNMPv3

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Port status not showing on Cisco switch using SNMPv3

Post by tmcdonald »

Are we all set to close the thread?
Former Nagios employee
stilpete
Posts: 1
Joined: Tue Jan 03, 2017 1:25 pm

Re: Port status not showing on Cisco switch using SNMPv3

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Port status not showing on Cisco switch using SNMPv3

Post by tgriep »

Thanks stilpete for the tip, it should help out other users with similar issues. ;)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked