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$" +}