nagios: Send all notifications by email, only critical by prowl/pushover

This commit is contained in:
Ossi Salmi 2013-05-27 02:27:51 +03:00
parent 8ec18712b6
commit d1ef78e338

View file

@ -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,