help with wildcard

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
broonu
Posts: 3
Joined: Thu Sep 08, 2011 7:17 am

help with wildcard

Post 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.
crfriend
Posts: 61
Joined: Thu Sep 01, 2011 7:53 am
Location: Central New England (USA)
Contact:

Re: help with wildcard

Post 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.
broonu
Posts: 3
Joined: Thu Sep 08, 2011 7:17 am

Re: help with wildcard

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