Sure, I use it to put the hosts in different host groups and so forth... the problem is just when I want to use the exclamation mark to exclude hosts AND use regular expressions to match the hosts. If I write the full hostnames there is no problem.
Best regards, Oscar Elfving On Wed, Oct 8, 2008 at 3:00 PM, Christian Schneemann <[EMAIL PROTECTED]> wrote: > On Wednesday October 8 2008 02:23:45 pm Oscar Elfving wrote: >> Hello everyone, >> I'm currently trying to exclude a range of hosts that do not share >> certain hardware with the rest of the cluster, and I want to exclude >> them by using regular expressions. >> Whenever I try to use the exclamation mark with the star, nagios tells >> me it can't find any matching hosts. > Hi, > did you set "use_regexp_matching" in your nagios.cfg to 1? You have to > activate this to use regex in your matching (as the name says ;) > > > Greetings, > Christian >> >> I'm obviously missing something here, how can I do this in a good way? >> >> >> define service { >> hostgroup_name mailgw-servers >> # Exceptions >> host_name !mailgwb* >> service_description AACRAID controller status >> check_command >> check_nrpe_1arg!check_aacraid_config use >> generic-service >> notification_interval 0 >> } >> >> Also, thank you for a great Nordic Nagios meet in Stockholm in June! >> >> Best regards, >> Oscar Elfving >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge Build the coolest Linux based applications with Moblin SDK & win >> great prizes Grand prize is a trip for two to an Open Source event anywhere >> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> ::: Please include Nagios version, plugin version (-v) and OS when >> ::: reporting any issue. Messages without supporting info will risk being >> ::: sent to /dev/null > > > > -- > Christian Schneemann > > ------------------------------------- > SUSE LINUX Products GmbH, > Maxfeldstr. 5, D - 90409 Nürnberg > > Phone: +49 (0)911 - 740 53 0 > e-mail: [EMAIL PROTECTED] > ------------------------------------- > SUSE LINUX Products GmbH, GF: Markus Rex > HRB 16746 (AG Nürnberg) > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null