mirror of https://github.com/zulip/zulip.git
22 lines
1.0 KiB
INI
22 lines
1.0 KiB
INI
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/zulip/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/zulip/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --service="$SERVICEDESC$" --state="$SERVICESTATE$" --output="$SERVICEOUTPUT$" --long-output="$LONGSERVICEOUTPUT$"
|
|
}
|