Got it:
works perfect with the following configuration:
define a template: for the service HTTP
define service{
name test-linux-service ; The name of
this service template
use generic-service ; Inherit
default values from the generic-service definition
notification_options r,w,c,u,f
contact_groups linux-admins, all-admins
notification_interval 1
notification_period 24x7
max_check_attempts 1 ; Re-check the
service up to 4 times in order to determine its final (hard) state
normal_check_interval 1 ; Check the
service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the
service every minute until a hard state can be determined
register 0 ; DONT REGISTER
THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}
And use these escalations:
define serviceescalation{
host_name client_linux
service_description HTTP
first_notification 1
last_notification 3
notification_interval 1
escalation_options u,c,w
contact_groups linux-admins
}
define serviceescalation{
host_name client_linux
service_description HTTP
first_notification 4
last_notification 0
notification_interval 1
escalation_options u,c,w
contact_groups all-admins
}
The linux-admins gets 3 times a mail and the all-admins gets the 4th and
further emails.
If the service is recoverd (OK) both groups get a OK - mail (see the template).
Regards,
Fritjof
Von: Fritjof Bornebusch - Skyfillers [mailto:[email protected]]
Gesendet: Dienstag, 1. Februar 2011 14:18
An: [email protected]
Betreff: [icinga-users] service escalations and recovery
Hi,
if I have a service escalation like this one:
define serviceescalation{
host_name client_linux
service_description HTTP
first_notification 1
last_notification 3
notification_interval 1
escalation_options r,u,c,w
contact_groups linux-admins
}
define serviceescalation{
host_name client_linux
service_description HTTP
first_notification 4
last_notification 0
notification_interval 1
escalation_options r,u,c,w
contact_groups all-admins
}
to send a recovery (Warning / Critical to OK) to both all-admins and
linux-admins.
Regards,
Fritjof
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users