2013-08-07 18:16:52 +02:00
|
|
|
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
|
2013-08-07 18:32:51 +02:00
|
|
|
command_line /usr/local/share/zulip/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --state="$HOSTSTATE$" --output="$HOSTOUTPUT$" --long-output="$LONGHOSTOUTPUT$"
|
2013-08-07 18:16:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
define command {
|
|
|
|
command_name notify-service-by-zulip
|
2013-08-07 18:32:51 +02:00
|
|
|
command_line /usr/local/share/zulip/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --service="$SERVICEDESC$" --state="$SERVICESTATE$" --output="$SERVICEOUTPUT$" --long-output="$LONGSERVICEOUTPUT$"
|
2013-08-07 18:16:52 +02:00
|
|
|
}
|