Email notification - changing operation time
Posted: Sun Dec 23, 2012 2:24 pm
I have the following service definition:
The generic-host is the default template:
I have configured my system to send a notification and right now (if I got this correctly) is sending a notification if the service is alerting for 10 minutes, until the alert is gone. I am looking on tweaking a bit the notification time to have the first notification sent after 3 minutes and the next one after 10 minutes (and so on), until the alert is gone. Can someone advice how I can accomplish this?
That has the following host definition associated:define service{
use custom
name custom
is_volatile 0
check_period 24x7
max_check_attempts 10
normal_check_interval 10
retry_check_interval 1
contact_groups MyNotifications
notification_interval 10
notification_period 24x7
notification_options c,r,u,w
register 0
}
Code: Select all
define host{
use generic-host ; Name of host template to use
host_name name
alias name
address 8.4.4.4
check_command check-host-alive
max_check_attempts 10
notification_interval 60
notification_period 24x7
notification_options d,u,r
}Code: Select all
define host{
name generic-host ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
notification_period 24x7 ; Send host notifications at any time
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}