Host group members and regex
Posted: Wed Mar 29, 2017 6:02 am
I'm trying to populate a hostgroup using wild cards but having a bit of difficulty.
My nagios.cfg has this set:
use_regexp_matching=1
use_true_regexp_matching=0
Hostgroup template:
define hostgroup {
hostgroup_name Regex testing
alias Regex testing
hostgroup_members ^Reg ExTest.*Environments
}
define hostgroup {
hostgroup_name Reg ExTest ABC Environments
alias Reg ExTest ABC Environments
}
And the results of this is that the hostgroup Regex testing has one hostgroup member that is "^Reg ExTest.*Environments" and a disabled hostgroup named "^Reg ExTest.*Environments" is created.
What is it that I'm doing wrong?
My nagios.cfg has this set:
use_regexp_matching=1
use_true_regexp_matching=0
Hostgroup template:
define hostgroup {
hostgroup_name Regex testing
alias Regex testing
hostgroup_members ^Reg ExTest.*Environments
}
define hostgroup {
hostgroup_name Reg ExTest ABC Environments
alias Reg ExTest ABC Environments
}
And the results of this is that the hostgroup Regex testing has one hostgroup member that is "^Reg ExTest.*Environments" and a disabled hostgroup named "^Reg ExTest.*Environments" is created.
What is it that I'm doing wrong?