Hi Everyone, we are trying to create an icinga config, which allows the following: * User-Mail gets notification (notification_options w,c,r) * User-Pager gets notification (notification_options c,r)
In the current config User-Mail gets an Mail, if the service switches to warning state. The Pager is not notified. After the services switches to Okay again, both Users are notified. Our current Configuration: <pre> define contact{ contact_name user-mail use generic-contact email m...@example.com can_submit_commands 1 } define contactgroup { contactgroup_name group-mail members user-mail } define contact{ contact_name user-pager use generic-contact email pa...@example.com can_submit_commands 1 } define contactgroup { contactgroup_name group-pager members user-pager } define service { service_description serviceescalations hostgroup_name test-escalations-hostgroup check_command dummy-test-escalation contact_groups group-mail notification_period 24x7 initial_state o check_interval 3.000000 retry_interval 1.000000 max_check_attempts 2 is_volatile 0 parallelize_check 1 active_checks_enabled 0 passive_checks_enabled 1 obsess_over_service 1 event_handler_enabled 1 low_flap_threshold 0.000000 high_flap_threshold 0.000000 flap_detection_enabled 0 flap_detection_options o,w,u,c freshness_threshold 900 check_freshness 1 notification_options u,w,c,r notifications_enabled 1 notification_interval 1 first_notification_delay 0.000000 stalking_options n process_perf_data 1 failure_prediction_enabled 1 retain_status_information 1 retain_nonstatus_information 1 } define serviceescalation { hostgroup_name test-escalations-hostgroup service_description serviceescalations contact_groups group-pager first_notification 1 last_notification 99 escalation_options c,r,u } define serviceescalation { hostgroup_name test-escalations-hostgroup service_description serviceescalations contact_groups group-mail first_notification 1 last_notification 99 escalation_options w,u,c,r } define host { host_name testserver address 127.0.0.1 check_period 24x7 check_command check-host-alive contact_groups group-mail notification_period 24x7 initial_state o check_interval 1.000000 retry_interval 1.000000 max_check_attempts 2 active_checks_enabled 1 passive_checks_enabled 1 obsess_over_host 1 event_handler_enabled 1 low_flap_threshold 0.000000 high_flap_threshold 0.000000 flap_detection_enabled 0 flap_detection_options o,d,u freshness_threshold 0 check_freshness 0 notification_options d,u,r notifications_enabled 1 notification_interval 1.000000 first_notification_delay 0.000000 stalking_options n process_perf_data 1 failure_prediction_enabled 1 retain_status_information 1 retain_nonstatus_information 1 __SWAPLIMIT 40,80 __MEMLIMIT 95,100 hostgroups test-escalations-hostgroup } define hostgroup { hostgroup_name test-escalations-hostgroup } define command { command_name dummy-test-escalation command_line /usr/lib/nagios/plugins/check_escalation.sh } </pre> LOG: <pre> [1392988339] SERVICE NOTIFICATION: user-mail;testserver;serviceescalations;WARNING;notify-service-by-email;WARNING [1392988899] SERVICE NOTIFICATION: user-pager;testserver;serviceescalations;OK;notify-service-by-email;OK [1392988899] SERVICE NOTIFICATION: user-mail;testserver;serviceescalations;OK;notify-service-by-email;OK </pre> We would like to achieve: * If User-Pager gets a Warning notification for a Service, he gets also the recovery. * If the User-Pager does not get a Warning Notification for a Service, he schould not get the Recovery. * User-Mail should always get everything. Thanks in Advance Thomas
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users