escalations question

Divan Santana divan at s-tainment.co.za
Wed Mar 14 19:52:35 CET 2012


Hi All,

I'm wondering if one can do this with Nagios. One can do similar things with 
check_mk unfortunately check_mk doesn't support anyway to define escalations so 
this needs to be done in nagios core.

Challenge 1
=========
With this set in nagios.cfg
use_regexp_matching=1
use_true_regexp_matching=0

define serviceescalation{
        hostgroup_name          hostgroup
        service_description     !fs_/app.*,.*
        first_notification      3
        last_notification       0
        notification_interval   15
        contact_groups          tsdmidrangelinux-admins-escalate
        }
results in this error:
Error: Could not find a service matching host name 'example1.blah.com' and 
description '!fs_/app.*' (config file '/etc/nagios/objects/escalations.cfg', 
starting on line 41)

Challenge 2
=========
With this set in nagios.cfg
use_regexp_matching=1
use_true_regexp_matching=0

define serviceescalation{
        hostgroup_name          hostgroup
        service_description     ExampleService
        first_notification      3
        last_notification       0
        notification_interval   15
        contact_groups          tsdmidrangelinux-admins-escalate
        }
results in this error:
Error: Could not find a service matching host name 'example1.blah.com' and 
description 'ExampleService' (config file '/etc/nagios/objects/escalations.cfg', 
starting on line 41)

This ExampleService would exist on another example2.blah.com . It would be 
nice if one could achieve this in Nagios.
-- 
Divan Santana

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
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