Yuvipanda has submitted this change and it was merged.
Change subject: shinken: Fix email commands to work properly
......................................................................
shinken: Fix email commands to work properly
Also use templates for contacts
Change-Id: I517ada22351305f43352a632c628ec529cb566c7
---
M modules/shinken/files/contacts.cfg
M modules/shinken/files/templates.cfg
2 files changed, 16 insertions(+), 56 deletions(-)
Approvals:
Yuvipanda: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/shinken/files/contacts.cfg
b/modules/shinken/files/contacts.cfg
index f39b287..ab63ff6 100644
--- a/modules/shinken/files/contacts.cfg
+++ b/modules/shinken/files/contacts.cfg
@@ -12,7 +12,7 @@
host_notification_period none
service_notification_period none
service_notification_commands notify-by-email
- host_notification_commands notify-by-email
+ host_notification_commands host-notify-by-email
host_notification_options d,u,r
service_notification_options w,u,r,c
password guest
@@ -22,82 +22,40 @@
contact_name yuvipanda
alias Yuvi Panda
email [email protected]
- host_notifications_enabled 1
- service_notifications_enabled 1
- host_notification_period 24x7
- service_notification_period 24x7
- service_notification_commands notify-by-email
- host_notification_commands notify-by-email
- host_notification_options d,u,r
- service_notification_options w,u,r,c
+ use generic-contact
}
define contact {
contact_name legoktm
alias Lego KTM
email [email protected]
- host_notifications_enabled 1
- service_notifications_enabled 1
- host_notification_period 24x7
- service_notification_period 24x7
- service_notification_commands notify-by-email
- host_notification_commands notify-by-email
- host_notification_options d,u,r
- service_notification_options w,u,r,c
+ use generic-contact
}
define contact {
contact_name milimetric
alias Dan Andreescu
email [email protected]
- host_notifications_enabled 1
- service_notifications_enabled 1
- host_notification_period 24x7
- service_notification_period 24x7
- service_notification_commands notify-by-email
- host_notification_commands notify-by-email
- host_notification_options d,u,r
- service_notification_options w,u,r,c
+ use generic-contact
}
define contact {
contact_name greg_g
alias Greg G
email [email protected]
- host_notifications_enabled 1
- service_notifications_enabled 1
- host_notification_period 24x7
- service_notification_period 24x7
- service_notification_commands notify-by-email
- host_notification_commands notify-by-email
- host_notification_options d,u,r
- service_notification_options w,u,r,c
+ use generic-contact
}
define contact {
contact_name cmcmahon
alias Chris McMahon
email [email protected]
- host_notifications_enabled 1
- service_notifications_enabled 1
- host_notification_period 24x7
- service_notification_period 24x7
- service_notification_commands notify-by-email
- host_notification_commands notify-by-email
- host_notification_options d,u,r
- service_notification_options w,u,r,c
+ use generic-contact
}
define contact {
contact_name amusso
alias Antoine Musso
email [email protected]
- host_notifications_enabled 1
- service_notifications_enabled 1
- host_notification_period 24x7
- service_notification_period 24x7
- service_notification_commands notify-by-email
- host_notification_commands notify-by-email
- host_notification_options d,u,r
- service_notification_options w,u,r,c
+ use generic-contact
}
diff --git a/modules/shinken/files/templates.cfg
b/modules/shinken/files/templates.cfg
index 422e94e..4f944c6 100644
--- a/modules/shinken/files/templates.cfg
+++ b/modules/shinken/files/templates.cfg
@@ -114,11 +114,13 @@
# This is how emails are sent, 24x7 way.
define notificationway{
- notificationway_name email
- service_notification_period 24x7
- host_notification_period 24x7
- service_notification_options c,w,r
- host_notification_options d,u,r,f,s
- service_notification_commands notify-by-email ; send service
notifications via email
- host_notification_commands notify-by-email ; send host
notifications via email
+ notificationway_name email
+ service_notification_period 24x7
+ host_notification_period 24x7
+ service_notification_options c,w,r
+ host_notification_options d,u,r,f,s
+ host_notifications_enabled 1
+ service_notifications_enabled 1
+ service_notification_commands notify-by-email ; send service
notifications via email
+ host_notification_commands host-notify-by-email ; send host
notifications via email
}
--
To view, visit https://gerrit.wikimedia.org/r/174946
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I517ada22351305f43352a632c628ec529cb566c7
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits