Two identical services with different email behaviour
Posted: Tue Apr 22, 2014 4:44 am
Hello,
I was kind of surprised today that when submitting a passive OK result to a service state today, our on duty phone received an email whil the service wasn't configured to send emails to this on duty contact. After some research I still don't understand why this service is sending out emails to this contact.
In fact the service belongs to a cluster node and the exact same service on another node with exact the same config is not sending emails to this on duty contact when it's state changes... When I retried submitting critcal results, it aagin sent an email to a contact that is not defined in the service nor service template.
Config of the service and service template:
Service that does not send an email to on duty contact:
Service that does send an email to on duty contact, while not defined!:
As you can see, only nagiosadmin should be notified. And the config is the same for clusternode01 and clusternode02. So why does our onduty contact receive emails when the state of CLU_Cluster_Services_Events on clusternode01 changes?
I'm probably missing something?
Grtz
Willem
I was kind of surprised today that when submitting a passive OK result to a service state today, our on duty phone received an email whil the service wasn't configured to send emails to this on duty contact. After some research I still don't understand why this service is sending out emails to this contact.
In fact the service belongs to a cluster node and the exact same service on another node with exact the same config is not sending emails to this on duty contact when it's state changes... When I retried submitting critcal results, it aagin sent an email to a contact that is not defined in the service nor service template.
Config of the service and service template:
Service that does not send an email to on duty contact:
Code: Select all
define service {
host_name clusternode02
service_description CLU_Cluster_Services_Events
use dig-windows-eventlog-cluster-prio1
servicegroups +all_svc_dummy_servicegroup
check_period xi_timeperiod_24x7
notification_period xi_timeperiod_24x7
contacts +nagiosadmin
contact_groups +xi_dig_dummy_contact_group
icon_image windowseventlog.png
_xiwizard windowseventlog
register 1
}
Code: Select all
define service {
host_name clusternode01
service_description CLU_Cluster_Services_Events
use dig-windows-eventlog-cluster-prio1
servicegroups +all_svc_dummy_servicegroup
check_period xi_timeperiod_24x7
notification_period xi_timeperiod_24x7
contacts +nagiosadmin
contact_groups +xi_dig_dummy_contact_group
icon_image windowseventlog.png
_xiwizard windowseventlog
register 1
}Code: Select all
define service {
name dig-windows-eventlog-cluster-prio1
service_description CLU_Cluster_Services_Events
display_name CLU_Cluster_Services_Events
servicegroups +all_crit_svc_win_cluster,all_svc_win_evt_cluster
check_command check_dummy!0!'Dummy check passed'!!!!!!
is_volatile 0
initial_state o
max_check_attempts 3
check_interval 1440
retry_interval 10
active_checks_enabled 0
passive_checks_enabled 1
check_period xi_timeperiod_24x7
obsess_over_service 0
check_freshness 0
event_handler_enabled 0
flap_detection_enabled 1
process_perf_data 0
retain_status_information 1
retain_nonstatus_information 1
notification_interval 1440
first_notification_delay 0
notification_period xi_timeperiod_24x7
notifications_enabled 1
stalking_options o,w,c,u,
register 0
}
I'm probably missing something?
Grtz
Willem