Page 1 of 1

help with wildcard

Posted: Thu Sep 08, 2011 7:33 am
by broonu
I'm monitoring some subnetworks of with mask /16 on my main network, and need some help with wildcards.

in my hostgroup.conf, i have entries like this:

Code: Select all

# NETWORK 10.6.0.0/16
define hostgroup {
        hostgroup_name   radios_10.6.0.0
        alias            radios_10.6.0.0
        members          radio_10.6.*
}

# NETWORK 10.64.0.0/16
define hostgroup {
        hostgroup_name   radios_10.64.0.0
        alias            radios_10.64.0.0
        members          radio_10.64.*
}

# NETWORK 10.65.0.0/16
define hostgroup {
        hostgroup_name   radios_10.65.0.0
        alias            radios_10.65.0.0
        members          radio_10.65.*
}
but with this config, all radios with ip 10.64.0.0/16 and 10.65.0.0/16 is listing in the hostgroup 10.6.0.0/16.

Re: help with wildcard

Posted: Thu Sep 08, 2011 12:19 pm
by crfriend
If regexps are turned on, try backslash-escaping the dots -- those are single-character wildcards in REs, and the .* notion is a wildcard for any number of characters.

Re: help with wildcard

Posted: Thu Sep 08, 2011 12:54 pm
by broonu
crfriend wrote:If regexps are turned on, try backslash-escaping the dots -- those are single-character wildcards in REs, and the .* notion is a wildcard for any number of characters.

thank you for replying crfriend, but i've already tried this.
i'm using use_regexp_matching=1 and use_true_regexp_matching.
also i tried to change this settings and the backslash didn't works.