regular expression matching.

John R. Daily jdaily at apparatus.net
Fri Aug 18 22:35:24 CEST 2006


"*" is not a valid regular expression (the docs are wrong, IIRC).

You want ".*", like:

>>         host_name                       .*


-John

On Aug 18, 2006, at 4:05 PM, Christian Hedegaard wrote:

>
>> define serviceescalation{
>>         host_name                       *
>>         service_description             *
>>         first_notification              3
>>         last_notification               0
>>         contact_groups
>> on-duty-pagers,off-duty-pagers,operations-email
>>         notification_interval           30
>>         }
>
>
> Well, the above example DOES NOT WORK. I'm trying very hard to
> understand why. Here are the error(s) that nagios gives:
>
> Error: Could not find any host matching '*'
> Error: Could not expand hostgroups and/or hosts specified in service
> escalation
>
> I have plenty of hosts defined, so why wouldn't the regular expression
> "*" match them?
>
> Thanks.
>
> --  
> Christian Hedegaard-Schou
> Sr. Systems Administrator
> TrustCommerce
> 2 Park Plaza, Suite 350
> Irvine, CA 92614
> (949) 387 - 3747
> christian.hedegaard at trustcommerce.com
> http://www.trustcommerce.com/
>
> ---------------------------------------------------------------------- 
> ---
> 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