Rename Humbug-based variables/paths in Nagios plugin.
(imported from commit fe8e33241215ea880f7351c3c86b0fb546faf8d3)
This commit is contained in:
parent
0c3eba5331
commit
318ba3a50e
|
@ -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$"
|
|
||||||
}
|
|
21
integrations/nagios/zulip_nagios.cfg
Normal file
21
integrations/nagios/zulip_nagios.cfg
Normal file
|
@ -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$"
|
||||||
|
}
|
Loading…
Reference in a new issue