Rép. : Re: All hosts template trick not working

Marc Powell marc at ena.com
Fri Nov 17 21:52:38 CET 2006



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Serveur-Faucon Surveillance
> Sent: Friday, November 17, 2006 12:58 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Rép. : Re: All hosts template trick not working
> 
> 
> 
> ---------------------------------------------------
> Alexandre Racine - Gardien Virtuel - Sécurité Informatique
> www.gardienvirtuel.com
> Montréal, Québec, Canada
> 
> >>> "Marc Powell" <marc at ena.com> 2006-11-16 14:24:10 >>>
> <You must enable regular expression matching for this to work.
> <http://nagios.sourceforge.net/docs/2_0/configmain.html#use_regexp_matchin
> g
> 
> 
> And they are, but since it is regular expression, I changed the "*" for
> ".*" witch is way much more a regular expression. So the final result is
> this :
> 
> 
> define hostgroup{
>        hostgroup_name          TOUTESLESMACHINES
>        alias                   TOUTESLESMACHINES
>        members                 .*
>        }

That's what nagios calls use_true_regexp_matching (as opposed to use_regexp_matching) in nagios.cfg.

--
Marc

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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