From 3a24cbc295c38175cc504d1c340ebb4c9f026aa5 Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Mon, 21 May 2018 22:28:48 +0000 Subject: [PATCH] Get notifications a sane way instead of through email filters Signed-off-by: Ricky Elrod --- .../files/nagios/contacts/codeblock.cfg | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/roles/nagios_server/files/nagios/contacts/codeblock.cfg b/roles/nagios_server/files/nagios/contacts/codeblock.cfg index 3e6b003f7c..aac7d6dbe6 100644 --- a/roles/nagios_server/files/nagios/contacts/codeblock.cfg +++ b/roles/nagios_server/files/nagios/contacts/codeblock.cfg @@ -1,6 +1,7 @@ +# Already get emails from sysadmin-noc, so disable these, but define the user. define contact{ contact_name codeblock - alias Ricky Elrod + alias Rick Elrod service_notification_period never host_notification_period never service_notification_options w,u,c,r @@ -9,3 +10,27 @@ define contact{ host_notification_commands host-notify-by-email email codeblock@elrod.me } + +define contact{ + contact_name codeblock-emergency + alias Rick Elrod + service_notification_period 24x7 + host_notification_period 24x7 + service_notification_options w,u,c,r + host_notification_options d,u,r + service_notification_commands notify-by-epager + host_notification_commands host-notify-by-epager + pager codeblock+urgent@elrod.me +} + +define contact{ + contact_name codeblockp + alias Rick Elrod + service_notification_period 16x7 + host_notification_period 16x7 + service_notification_options w,u,c,r + host_notification_options d,u,r + service_notification_commands notify-by-epager + host_notification_commands host-notify-by-epager + pager codeblock+urgent@elrod.me +}