Wildcard Escalations
    Duncan Berriman 
    duncan at dcl.co.uk
       
    Wed Oct 20 16:09:16 CEST 2010
    
    
  
Hi,
 
There seems to be some issues with Service Escalations and wildcards.
 
If you use wildcards on hosts every host has to have a service associated
with it otherwise the configuration does not validate.
 
Example
 
define serviceescalation{
        host_name               .*
        service_description     .*
        first_notification      1
        last_notification       99
        notification_interval   60
        contact_groups          admins
        escalation_period       24x7
        escalation_options      w,u,c,r
        }
 
Causes 
 
Error: Could not find a service matching host name 'pix' and description
'.*'
 
I got round that by creating a dummy service for items like firewalls and
routers which have no service as below.
 
define service{
    use generic-service
    # Hostname of remote system
    host_name pix
    service_description dummy
    is_volatile 0
    check_period 24x7
    max_check_attempts 1
    normal_check_interval 5
    retry_check_interval 1
    check_command check-dummy
}
 
Now I am trying to use wildcards on the service names within the
escalations, the validation fails on any host that does not have a service
that matches the wildcard.
 
define serviceescalation{
        host_name               .*
        service_description     .*Bandwidth.*
        first_notification      2
        last_notification       2
        notification_interval   60
        contact_groups          support
        escalation_period       24x7
        escalation_options      w,u,c,r
        }
 
Causes
 
Error: Could not find a service matching host name 'pix' and description
'.*Bandwidth.*
 
Why when a wildcard is in use should every host have to have a service and
every host have to have a service matching the wildcard? It makes no sense
(to me at least).
Is this a bug or is it designed to work this way? 
 
Is there any way to turn off these checks as they appear to me at least
incorrect and pointless?
 
Thanks
Duncan
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101020/8ed6ee09/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
-------------- next part --------------
_______________________________________________
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