Protecting white space

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
GrumpyNana
Posts: 3
Joined: Wed May 23, 2018 6:10 am

Protecting white space

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Protecting white space

Post 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.
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Protecting white space

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
GrumpyNana
Posts: 3
Joined: Wed May 23, 2018 6:10 am

Re: Protecting white space

Post by GrumpyNana »

Hi

We are using 3.5.1

We will try is as-is and revert

Thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Protecting white space

Post by tmcdonald »

We'll keep this open for you.
Former Nagios employee
Locked