Page 1 of 1

SNMPv3 port status not working

Posted: Thu Nov 05, 2015 2:09 am
by paltel
Hello ,

I used network switch/router to add cisco 2811 device , all services with port status return "UNKNOWN - No info is being retrieved." ,, bandwidth services are ok .
I tried to update the wizards and did not work also .

lets take fastethernet 0/0 as example :

Bandwidth command generated by wizard :

$USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$
$ARG1$ : 172.17.3.166_1.rrd
$ARG2$ : 50.00,50.00
$ARG3$ : 80.00,80.00
$ARG4$ : M




for port status ( which is not working ) :

$USER1$/check_ifoperstatnag $ARG1$ $ARG2$ $HOSTADDRESS$
$ARG1$ : 1
$ARG2$ : -v3 -u Nagios-USER -A "***HIDDEN****" -x AES -X "***HIDDEN****" -a SHA -l authPriv

attached screenshot of device status .

appreciate to help me because I was not able to add any cisco device to nagios yet .

Thanks

Re: SNMPv3 port status not working

Posted: Thu Nov 05, 2015 2:46 pm
by ssax
Do those passwords contain any special characters? If they do, try surrounding them in single quotes instead of double quotes and let us know the result.

Thank you

Re: SNMPv3 port status not working

Posted: Sun Nov 08, 2015 1:53 am
by paltel
Hello ,

Thanks for reply , and yes it worked after changing to single quotes as passwords contain special characters .

if this is a bug , please raise it to dev team to fix in next patch . for now I will use passwords without special characters to overcome this issue .

Thanks again

Re: SNMPv3 port status not working

Posted: Mon Nov 09, 2015 10:23 am
by hsmith
paltel wrote:yes it worked after changing to single quote
paltel wrote:for now I will use passwords without special characters to overcome this issue

Couldn't you just keep using the same passwords, but using single quotes instead? I don't really think this is a bug as much as it is just how single quotes vs double quotes works.

This Stack Overflow post expands on what I am talking about above a bit.

Are we all right to close this one since you have it working?

Re: SNMPv3 port status not working

Posted: Mon Nov 09, 2015 11:07 am
by paltel
The wizard generated double quotes and it's difficult to edit each service manually as I will run the same wizard hundreds of times .

For now you can close this case

Re: SNMPv3 port status not working

Posted: Mon Nov 09, 2015 1:28 pm
by hsmith
Thanks for the clarification. I'll consult the developers and see what they have to say regarding this.