Page 1 of 1

Use special character "@" in nsclient?

Posted: Sun Sep 03, 2017 12:00 pm
by dimsum
Hi Support,

I got message when I adding server windows monitoring "Password contains invalid characters." in agent password field. How can I use a "@" character? it's possible to skip this check? because my client they use a "@". and they have Nagios core isn't a problem with more 100 nodes by Nagios core. Now I have a poc Nagios XI and they won't happy to change an old password.

Please advise.

Thank you.

Re: Use special character "@" in nsclient?

Posted: Tue Sep 05, 2017 7:28 am
by tacolover101
you may need to encapsulate the variable in single quotes, such as 'p@ssword'. if it's working in Core fine, I assume it's just manipulation somewhere.

the other option is placing it in the resources file - https://assets.nagios.com/downloads/nag ... Macros.pdf

Re: Use special character "@" in nsclient?

Posted: Tue Sep 05, 2017 1:03 pm
by tgriep
Thanks @tacolover101 for the help.
I took a look at the wizard and it considers the @ as a special character and you would have to create a user macro and use that when running the wizard that the document @tacolover101 posted.
Once that is done, you should be able to run the wizard.

Re: Use special character "@" in nsclient?

Posted: Tue Sep 05, 2017 11:01 pm
by dimsum
Thanks all, You're my heroes.

I did configured user macro and it's worked fine.

Thanks again.

Re: Use special character "@" in nsclient?

Posted: Wed Sep 06, 2017 7:32 am
by tacolover101
dimsum wrote:Thanks all, You're my heroes.

I did configured user macro and it's worked fine.

Thanks again.
no problemo. :ugeek: