hostgroup member wildcard mystery
Posted: Mon Aug 29, 2011 10:05 am
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:
This doesn't work, and I receive the following error:
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:
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)
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*
}
Code: Select all
Error: Could not find any host matching 'es*'
Error: Could not expand members specified in hostgroupCode: Select all
define hostgroup {
hostgroup_name es-hosts
members ^es.*
}
(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)