Page 1 of 1
Protecting white space
Posted: Wed May 23, 2018 6:18 am
by GrumpyNana
define host{
use hosted generic
host_name Zambia
alias ZM
address xxxxxxx.com
_WEBUSER sbg1 zambia
_WEBPASSWORD .............
}
In the example above there is a space in _WEBUSER how do I protect that space
For example in html it would be %20
I have tried "sbg1 zambia" it did not work
Regards
Re: Protecting white space
Posted: Thu May 24, 2018 11:12 am
by mcapra
Which version of Nagios Core are you using? Per the official documentation, what you've done should "just work":
https://assets.nagios.com/downloads/nag ... tvars.html
If this is indeed a bug of some sort, it would also be useful to know exactly how you're using this custom variable to fully qualify the bug.
Re: Protecting white space
Posted: Thu May 24, 2018 2:28 pm
by cdienger
@GrumpyNana, did the link @mcapra supply help answer your question? As he mentioned, it should "just work" without any need for %20 or quotes around the string. Please provide details on exactly what you're trying to do if you're still having issues.
Re: Protecting white space
Posted: Mon May 28, 2018 7:35 am
by GrumpyNana
Hi
We are using 3.5.1
We will try is as-is and revert
Thanks
Re: Protecting white space
Posted: Tue May 29, 2018 1:18 pm
by tmcdonald
We'll keep this open for you.