From d1ef78e33894181f8264c575101d596e78422570 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Mon, 27 May 2013 02:27:51 +0300 Subject: [PATCH] nagios: Send all notifications by email, only critical by prowl/pushover --- nagios/manifests/init.pp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nagios/manifests/init.pp b/nagios/manifests/init.pp index 107179e..7df220e 100644 --- a/nagios/manifests/init.pp +++ b/nagios/manifests/init.pp @@ -216,7 +216,7 @@ class nagios::server::manual inherits nagios::common { max_check_attempts => "5", notification_interval => "0", notification_period => "24x7", - notification_options => "d,u,r", + notification_options => "d,u,r,f,s", contact_groups => "all", notify => Service["nagios"], } @@ -236,7 +236,7 @@ class nagios::server::manual inherits nagios::common { passive_checks_enabled => "1", parallelize_check => "1", obsess_over_service => "1", - check_freshness => "0", + check_freshness => "1", notifications_enabled => "1", event_handler_enabled => "1", flap_detection_enabled => "1", @@ -251,7 +251,7 @@ class nagios::server::manual inherits nagios::common { retry_check_interval => "1", max_check_attempts => "2", notification_period => "24x7", - notification_options => "w,u,c,r", + notification_options => "w,u,c,r,f,s", contact_groups => "all", notify => Service["nagios"], } @@ -322,10 +322,10 @@ define nagios::contact::email($group=["all"], target => "${confdir}/contact_${name}.cfg", contactgroups => $contactgroups, host_notification_commands => "notify-host-by-email", - host_notification_options => "d,r", + host_notification_options => "d,u,r,f,s", host_notification_period => "24x7", service_notification_commands => "notify-service-by-email", - service_notification_options => "w,u,c,r", + service_notification_options => "w,u,c,r,f,s", service_notification_period => "24x7", email => $name, notify => Service["nagios"], @@ -360,10 +360,10 @@ define nagios::contact::prowl($group=["all"], target => "${confdir}/contact_prowl_${name}.cfg", contactgroups => $contactgroups, host_notification_commands => "notify-host-by-prowl", - host_notification_options => "d,r", + host_notification_options => "d,u", host_notification_period => "24x7", service_notification_commands => "notify-service-by-prowl", - service_notification_options => "w,u,c,r", + service_notification_options => "c", service_notification_period => "24x7", address1 => $name, notify => Service["nagios"], @@ -400,10 +400,10 @@ define nagios::contact::pushover($token, $group=["all"], target => "${confdir}/contact_pushover_${name}.cfg", contactgroups => $contactgroups, host_notification_commands => "notify-host-by-pushover", - host_notification_options => "d,r", + host_notification_options => "d,u", host_notification_period => "24x7", service_notification_commands => "notify-service-by-pushover", - service_notification_options => "w,u,c,r", + service_notification_options => "c", service_notification_period => "24x7", address1 => $name, address2 => $token,