From 318ba3a50e2785e95c1d3e3379cb8660224d2ae1 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 7 Aug 2013 12:16:52 -0400 Subject: [PATCH] Rename Humbug-based variables/paths in Nagios plugin. (imported from commit fe8e33241215ea880f7351c3c86b0fb546faf8d3) --- integrations/nagios/humbug_nagios.cfg | 21 ------------------- ...gios-notify-humbug => nagios-notify-zulip} | 0 integrations/nagios/zulip_nagios.cfg | 21 +++++++++++++++++++ 3 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 integrations/nagios/humbug_nagios.cfg rename integrations/nagios/{nagios-notify-humbug => nagios-notify-zulip} (100%) create mode 100644 integrations/nagios/zulip_nagios.cfg diff --git a/integrations/nagios/humbug_nagios.cfg b/integrations/nagios/humbug_nagios.cfg deleted file mode 100644 index 3d35034..0000000 --- a/integrations/nagios/humbug_nagios.cfg +++ /dev/null @@ -1,21 +0,0 @@ -define contact{ - contact_name humbug - alias humbug - 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-humbug - host_notification_commands notify-host-by-humbug - } - -# Zulip commands -define command { - command_name notify-host-by-humbug - command_line /usr/local/share/humbug/integrations/nagios/nagios-notify-humbug --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --state="$HOSTSTATE$" --output="$HOSTOUTPUT$" --long-output="$LONGHOSTOUTPUT$" -} - -define command { - command_name notify-service-by-humbug - command_line /usr/local/share/humbug/integrations/nagios/nagios-notify-humbug --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --service="$SERVICEDESC$" --state="$SERVICESTATE$" --output="$SERVICEOUTPUT$" --long-output="$LONGSERVICEOUTPUT$" -} diff --git a/integrations/nagios/nagios-notify-humbug b/integrations/nagios/nagios-notify-zulip similarity index 100% rename from integrations/nagios/nagios-notify-humbug rename to integrations/nagios/nagios-notify-zulip diff --git a/integrations/nagios/zulip_nagios.cfg b/integrations/nagios/zulip_nagios.cfg new file mode 100644 index 0000000..7fc51bb --- /dev/null +++ b/integrations/nagios/zulip_nagios.cfg @@ -0,0 +1,21 @@ +define contact{ + contact_name zulip + alias zulip + 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-zulip + host_notification_commands notify-host-by-zulip + } + +# Zulip commands +define command { + command_name notify-host-by-zulip + command_line /usr/local/share/humbug/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --state="$HOSTSTATE$" --output="$HOSTOUTPUT$" --long-output="$LONGHOSTOUTPUT$" +} + +define command { + command_name notify-service-by-zulip + command_line /usr/local/share/humbug/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --service="$SERVICEDESC$" --state="$SERVICESTATE$" --output="$SERVICEOUTPUT$" --long-output="$LONGSERVICEOUTPUT$" +}