Special character in SNMP v3 authentication

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brudnick
Posts: 37
Joined: Mon Feb 17, 2014 3:17 pm

Special character in SNMP v3 authentication

Post by brudnick »

I am using the Network Switch Wizard ver. 2.1.7

We have an authentication password that starts with an exclamation point (!). It works in capturing the ports but when it creates the services, the ! makes it think it is on to the next argument and throws off the status check. The Bandwidth check work just fine (see image).
snmpv3.PNG
In CCM I can add back the ! and it works with the Test Check Command button, but it won't let me save. When I do, it removes the ! and adds anything after that to the $ARG3$ section. is there a way to get this fixed on the wizard or on CCM? I have a whole bunch of switches I need to add soon and will not want to have to edit every one by hand in CCM after I run the wizard.
You do not have the required permissions to view the files attached to this post.
brudnick
Posts: 37
Joined: Mon Feb 17, 2014 3:17 pm

Re: Special character in SNMP v3 authentication

Post by brudnick »

I am on XI version 2014R2.7
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Special character in SNMP v3 authentication

Post by abrist »

As "!" is an illegal character in the nagios core configs, you will need to use a custom $USERn$ macro. See the following doc for more details:
http://assets.nagios.com/downloads/nagi ... Macros.pdf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
brudnick
Posts: 37
Joined: Mon Feb 17, 2014 3:17 pm

Re: Special character in SNMP v3 authentication

Post by brudnick »

Thank you abrist!!! You have been very helpful.

Creating a macro out of the pw worked for us in the wizard and service check.

You may close this thread.

-Brian
Locked