summaryrefslogtreecommitdiff
path: root/puppet/modules/site_nagios/manifests/server/add_contacts.pp
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2014-12-04 17:30:07 +0800
committerGerrit Code Review <gerrit2@review.leap.se>2014-12-04 17:30:07 +0800
commit60bd76583d46fe1c9f39804c7fd892fa9c1745d0 (patch)
treee938e8bc993104715c79595af313f9d8485f5125 /puppet/modules/site_nagios/manifests/server/add_contacts.pp
parentacd6dd2848f38ba1b728f263f297bc6d2ad9e4bb (diff)
parenta84272aa77715a4029ebd06b38b7a5ad05e6acd0 (diff)
Merge "Change nagios mail To: Header to contain the actual platform environment's contact email (Bug #6466)" into develop
Diffstat (limited to 'puppet/modules/site_nagios/manifests/server/add_contacts.pp')
-rw-r--r--puppet/modules/site_nagios/manifests/server/add_contacts.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/puppet/modules/site_nagios/manifests/server/add_contacts.pp b/puppet/modules/site_nagios/manifests/server/add_contacts.pp
new file mode 100644
index 00000000..db507abf
--- /dev/null
+++ b/puppet/modules/site_nagios/manifests/server/add_contacts.pp
@@ -0,0 +1,16 @@
+define site_nagios::server::add_contacts ($contact_emails) {
+
+ $environment = $name
+
+ nagios_contact {
+ $environment:
+ alias => $environment,
+ service_notification_period => '24x7',
+ host_notification_period => '24x7',
+ service_notification_options => 'w,u,c,r',
+ host_notification_options => 'd,r',
+ service_notification_commands => 'notify-service-by-email',
+ host_notification_commands => 'notify-host-by-email',
+ email => join($contact_emails, ', ')
+ }
+}