hostgroup member wildcard mystery

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
gpion
Posts: 1
Joined: Mon Aug 29, 2011 9:33 am

hostgroup member wildcard mystery

Post 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)
Locked