Excluding host in hostgroups.cfg

D.J. Bolderman d.bolderman at gmail.com
Fri Aug 25 13:19:12 CEST 2006


Hi all,

I cannot exclude certain hosts from my hostgroups.cfg. My nagios.cfg shows:

use_regexp_matching=1
use_true_regexp_matching=1

define hostgroup {
        hostgroup_name  ping-servers
        alias           Pingable servers
        members         s_sv.*,s_ups.*,s_fw.*,s_rt.*
        }

The hostgroup above works, however when I change it into this:

define hostgroup {
        hostgroup_name  ping-servers
        alias           Pingable servers
        members         s_sv.*,s_ups.*,s_fw.*,s_rt.*,!s_sv_mail
        }

It shows : Error: Could not find any host matching '!s_sv_mail'

Host s_sv_mail exists, so it has something to do with the exclamation mark ?

Thanks,
Dick

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list