<br><font size=2 face="sans-serif">I am also interested in hearing more
about this... I had no luck trying to use forward assertions in order to
omit a few select hosts from a service definition.</font>
<br>
<br><font size=2 face="sans-serif">Thank you, Christian.</font>
<br><font size=2 face="sans-serif"><br>
---<br>
Steve Miller <smiller@co.slo.ca.us><br>
Network Engineer<br>
Information Technology Department<br>
County of San Luis Obispo<br>
805-781-5097<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Christian Hedegaard <christian.hedegaard@trustcommerce.com></b>
</font>
<br><font size=1 face="sans-serif">Sent by: nagios-users-bounces@lists.sourceforge.net</font>
<p><font size=1 face="sans-serif">08/18/2006 11:44 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">nagios-users@lists.sourceforge.net</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[Nagios-users] regular expression matching.</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt><br>
The Nagios documentation relating to the "regular expression"
matching<br>
seems very thin to me. And not quite clear.<br>
<br>
It appears, by example, that the only regular expressions you can use<br>
are "*" and "?", which I would just consider wildcard
matching and not<br>
regular expressions.<br>
<br>
Regardless, can anything else be used as far as these "regular<br>
expressions" are concerned?<br>
<br>
The documentation uses the examples of "host *", and I am assuming
that<br>
I can do something like "host *-edu" or "host tc-??-00".<br>
<br>
And can these regular expressions be used everywhere in the configs? For<br>
instance, we have an 110K escalations config file that could in theory<br>
be reduced to just:<br>
<br>
define serviceescalation{<br>
        host_name          
            *<br>
        service_description        
    *<br>
        first_notification        
     3<br>
        last_notification        
      0<br>
        contact_groups<br>
on-duty-pagers,off-duty-pagers,operations-email<br>
        notification_interval      
    30<br>
        }<br>
<br>
Right now we have one unique entry for every service_description on<br>
every host_name.<br>
<br>
So is the above correct? would that work? can anything at all be used<br>
besides "*" and "?" for matching?<br>
<br>
Thanks!<br>
<br>
P.S. Are there any plans to clarify the documentation in this regards?<br>
<br>
<br>
-- <br>
Christian Hedegaard-Schou<br>
Sr. Systems Administrator<br>
TrustCommerce<br>
2 Park Plaza, Suite 350<br>
Irvine, CA 92614<br>
(949) 387 - 3747<br>
christian.hedegaard@trustcommerce.com<br>
http://www.trustcommerce.com/<br>
<br>
-------------------------------------------------------------------------<br>
Using Tomcat but need to do more? Need to support web services, security?<br>
Get stuff done quickly with pre-integrated technology to make your job
easier<br>
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<br>
_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
https://lists.sourceforge.net/lists/listinfo/nagios-users<br>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. <br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</tt></font>
<br>