HostEscalation Issue
Posted: Fri Dec 14, 2012 4:23 pm
I am trying to use hostescalation to limit the number of emails that I receive.
When I define hostescalation with the below, I get an email every min. If I comment the notification out
in the service-templete definition I get no emails.
I have a file called host_notification_escalation.cfg which contains
define hostescalation{
host_name hostname
first_notification 1
last_notification 2
notification_interval 1
contact_groups admin
}
Then I have the host defined in a conf file call windows.cfg
define host{
use template
host_name hostname
alias hostname
address ipaddress
parents a, b
icon_image
vrml_image
statusmap_image
}
define service{
use service-template
host_name hostname
service_description description
check_command check_wmi_mem!10%!20% ## Lowered these numbers to invoke nagios to send critical emails
}
define service{
name service-template ;
active_checks_enabled 1 ;
passive_checks_enabled 1 ;
parallelize_check 1 ;
obsess_over_service 1 ;
check_freshness 0 ;
notifications_enabled 1 ;
event_handler_enabled 1 ;
flap_detection_enabled 1 ;
failure_prediction_enabled 1 ;
process_perf_data 1 ;
retain_status_information 1 ;
retain_nonstatus_information 1 ;
is_volatile 0 ;
check_period 24x7 ;
max_check_attempts 4 ;
normal_check_interval 1 ;
retry_check_interval 1 ;
contact_groups admins ;
notification_options u,c,r ;
notification_period no-nights ;
register 0 ;
}
When I define hostescalation with the below, I get an email every min. If I comment the notification out
in the service-templete definition I get no emails.
I have a file called host_notification_escalation.cfg which contains
define hostescalation{
host_name hostname
first_notification 1
last_notification 2
notification_interval 1
contact_groups admin
}
Then I have the host defined in a conf file call windows.cfg
define host{
use template
host_name hostname
alias hostname
address ipaddress
parents a, b
icon_image
vrml_image
statusmap_image
}
define service{
use service-template
host_name hostname
service_description description
check_command check_wmi_mem!10%!20% ## Lowered these numbers to invoke nagios to send critical emails
}
define service{
name service-template ;
active_checks_enabled 1 ;
passive_checks_enabled 1 ;
parallelize_check 1 ;
obsess_over_service 1 ;
check_freshness 0 ;
notifications_enabled 1 ;
event_handler_enabled 1 ;
flap_detection_enabled 1 ;
failure_prediction_enabled 1 ;
process_perf_data 1 ;
retain_status_information 1 ;
retain_nonstatus_information 1 ;
is_volatile 0 ;
check_period 24x7 ;
max_check_attempts 4 ;
normal_check_interval 1 ;
retry_check_interval 1 ;
contact_groups admins ;
notification_options u,c,r ;
notification_period no-nights ;
register 0 ;
}