Page 1 of 1

hostgroup member wildcard mystery

Posted: Mon Aug 29, 2011 10:05 am
by gpion
Hello everybody,

Here's my problem,

I've number of hosts named "es<some string>.<mydomain>"

I'm trying to create a hostgroup using wildcards, like this:

Code: Select all

define hostgroup {
	hostgroup_name	es-hosts
	members es*
}
This doesn't work, and I receive the following error:

Code: Select all

Error: Could not find any host matching 'es*' 
Error: Could not expand members specified in hostgroup
Strangely, when having activated option "use_regexp_matching=1" in config file, I'm able to define the hostgroup without any error using the following code:

Code: Select all

define hostgroup {
	hostgroup_name	es-hosts
	members ^es.*
}
I'm able to check that the hostgroup is correctly populated with the web interface.
(but I would prefer not use regexps)


Anybody having clue on what's happening ?

(tested with nagios versions 3.3.1 and 3.2.2)