Wildcard not working in service escalations ?
Hugo van der Kooij
hvdkooij at vanderkooij.org
Thu Jul 26 07:29:31 CEST 2007
On Wed, 25 Jul 2007, Mihai Tanasescu wrote:
> define serviceescalation{
> host_name *
> service_description Host-UP
> first_notification 3
> last_notification 0
> notification_interval 30
> contact_groups admins,managers
> }
>
> But when I try to start nagios it says:
>
> Error: Could not find any host matching '*'
> Error: Could not expand hostgroups and/or hosts specified in service
> escalation (config file '/usr/local/etc/nagios/escalations.cfg',
> starting on line 2)
>
> If instead of host_name * I specify a certain host out of the ones I'm
> monitoring, everything works alright.
>
> The nagios I'm running is 2.9.1 and after googling a bit I saw that it
> should support wildcards here.
>
> I have use_regexp_matching=1 enabled in nagios.cfg (and regexps work for
> everything except the escalations).
If you insist on using regex in the config I tink you should use them.
The character * all by itself is not valid as regex. So you need to change
it to .* instead to be a proper regex.
Hugo.
--
hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.
Some men see computers as they are and say "Windows"
I use computers with Linux and say "Why Windows?"
(Thanks JFK, for the insight.)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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