cdienger wrote:My initial thought is two checks - one that sends out warning notifications and the other that sends out critical/recover notifications.
I am not sending any warning notifications. However I still receive Recovery notifications.
I noticed this because I am getting Recovery notifications with out ever getting a Problem notification.
Here is a service definition from one of my hosts:
define service {
host_name HOST1
service_description Memory Usage
check_command check_ncpa!-t '#########' -P 12489 -M memory/virtual -w 78 -c 98 -u Gi
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 5
notification_period 24x7
notification_options u,c,r
contacts nagiosadmin,pagerduty
register 1
}
Here is from my notifications or contacts config file:
define contact {
name notification-contact ; The name of this contact template
service_notification_period 24x7 ; service notifications can be sent anytime
host_notification_period 24x7 ; host notifications can be sent anytime
# service_notification_options c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events
host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events
service_notification_commands notify-service-by-email ; send service notifications via email
host_notification_commands notify-host-by-email ; send host notifications via email
register 0 ; DON'T REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
}
define contact {
contact_name nagiosadmin ; Short name of user
use notification-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user
email
[email protected] ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
service_notification_options u,c,r,f,s
}