Difficulty with wildcards in serviceescalation

Andrew Laden Andrew.Laden at tudor.com
Tue Feb 21 14:32:15 CET 2006


There is a documentation error. You have to use real regex. A naked * by
itself is not a valid regex.

Try .*

-Andrew 

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf 
> Of Ivan Fetch
> Sent: Monday, February 20, 2006 5:25 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Difficulty with wildcards in serviceescalation
> 
> Hello,
> 
> 
>     I'm having difficulties with wildcards in a 
> serviceescalation, running nagios 2.0-stable.  It seems like 
> the documentation discusses doing exactly this, so perhaps my 
> trying to get this to work last minute is causing me to 
> overlook something...  Any ideas?
> 
> 
> # Limit notifications to a max of 5, the last one notifying everyone.
> define serviceescalation{
> host_name       *
> service_description *
> first_notification 5
> last_notification 0
> notification_interval 0
> contact_groups everyone
> }
> 
> 
> 
>     When verifying the config I get:
> 
> "Reading configuration data...
> 
> Error: Could not find any host matching '*'
> Error: Could not expand hostgroups and/or hosts specified in 
> service escalation (config file 
> '/usr/local/nagios/etc/du/services.cfg', starting on line 154)"
> 
> 
> 
>     I have this set in /usr/local/nagios/etc/nagios.cfg:
> use_regexp_matching=1
> use_true_regexp_matching=0
> # ... at the end of the file ...
> cfg_dir=/usr/local/nagios/etc/du
> # (which is where the services.cfg is read, which is where the 
> #    serviceescalation is defined)
> 
> 
> 
> Thanks,
> 
> Ivan Fetch.
> '
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files for problems?  Stop!  Download the new AJAX 
> search engine that makes searching your log files as easy as 
> surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&
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
> 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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