Page 1 of 1

passwords with #, pound symbol, hash

Posted: Fri Mar 28, 2014 1:46 am
by Be.Sure
It dose not properly escape them. Treating the reset of the line as a comment.
Tried using /usr/local/nagios/etc/resource.cfg
$USER9$=secr#et

Editing in the CCM it escapes the $. $USER9$ to \$USER9\$

How do i use a password with a #, pound symbol, hash?

Nagios XI 2012R2.3

Re: passwords with #, pound symbol, hash

Posted: Fri Mar 28, 2014 8:04 am
by scottwilkerson
I believe this should work

Code: Select all

$USER9$='secr#et'
One thing I will mention, if you are using the "Test Command" in the CCM it will not work as it does not import the $USERn$ vars, you will actually have to save the host/service and let the check run.

Re: passwords with #, pound symbol, hash

Posted: Sun Mar 30, 2014 8:33 pm
by Be.Sure
Thanks.

Yep was trying the "Test Command".

After editing /usr/local/nagios/etc/resource.cfg do I need to restart anything for it to load the new/edited variables?

Ended up making a new Command (CCM > Commands > Command) with the password in it.