Excluding host in hostgroups.cfg

Derek Olsen derek.olsen at qsent.com
Fri Aug 25 18:22:08 CEST 2006


   DJ.
  I dont know the underlying details but if you change

use_true_regexp_matching=1
 to
use_true_regexp_matching=0

  And try it again you'll find it works.    To use the wildcard notation 
you show in your examples

members         s_sv.*,s_ups.*,s_fw.*,s_rt.*

 you dont need to have use_true_regexp_matching enabled.    Anyhoo hope 
this helps out.
  Deet.

D.J. Bolderman wrote:

>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
>  
>


-------------------------------------------------------------------------
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