Page 1 of 1
Warn of ! in password during wizards
Posted: Wed Mar 30, 2016 12:23 pm
by pentiumone133
I've noticed that if you modify an existing service an include a ! in the command, you are warned that ! is a special character.
You don't receive the same warning when you specify a password with ! character when adding a service using the wizards. In my case it was specifically the MSSQL Database wizard.
This one took me awhile to figure out, very new to nagios.
Re: Warn of ! in password during wizards
Posted: Wed Mar 30, 2016 12:38 pm
by tmcdonald
What NagiosXI and wizard versions are you using? XI version is in the lower-left of the interface, and wizard can be found under Admin -> Manage Config Wizards
Re: Warn of ! in password during wizards
Posted: Wed Mar 30, 2016 1:37 pm
by pentiumone133
tmcdonald wrote:What NagiosXI and wizard versions are you using? XI version is in the lower-left of the interface, and wizard can be found under Admin -> Manage Config Wizards
Nagios is 5.2.5, the plugin is "MSSQL Database" Version 1.5.6.
Re: Warn of ! in password during wizards
Posted: Wed Mar 30, 2016 3:39 pm
by hsmith
Did the check still function as expected? Would you like to see the warning pop up on passwords as well?
Re: Warn of ! in password during wizards
Posted: Thu Mar 31, 2016 11:25 am
by pentiumone133
hsmith wrote:Did the check still function as expected? Would you like to see the warning pop up on passwords as well?
No the check failed with an authentication error. It makes sense now that I've seen that error message when I started working with the command manually, but it had me stumped since I knew I used the wrong password. Like I said, I'm very new to XI and I'll never make the mistake again, just might be helpful to be warned of inappropriate characters during the wizard.
Re: Warn of ! in password during wizards
Posted: Thu Mar 31, 2016 12:38 pm
by hsmith
Can you try to escape out the ! in the password? For instance in your check, have it look something like \!goodpassword instead of !goodpassword. Otherwise, you can save the password in /usr/local/nagios/etc/resource.cfg as something like this:
$USER6$=!goodpassword
and then call $USER6$ for the password instead of the actual password. Does that make sense?