diff options
author | Micah Anderson <micah@leap.se> | 2014-12-02 11:26:35 -0500 |
---|---|---|
committer | Micah Anderson <micah@leap.se> | 2014-12-02 22:58:13 -0500 |
commit | a84272aa77715a4029ebd06b38b7a5ad05e6acd0 (patch) | |
tree | cd4d4c165ced4ec283fbeab0071daaf735c2be51 /puppet/modules/site_nagios/manifests/server/add_contacts.pp | |
parent | a3af7019efe6f5ff3daeeff474a8c31b1b3318c8 (diff) |
Change nagios mail To: Header to contain the actual platform environment's contact email (Bug #6466)
Change-Id: Ib86ae771e0ac3b6f329a517a8a31c9ec54d33a05
Diffstat (limited to 'puppet/modules/site_nagios/manifests/server/add_contacts.pp')
-rw-r--r-- | puppet/modules/site_nagios/manifests/server/add_contacts.pp | 16 |
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, ', ') + } +} |