-
Notifications
You must be signed in to change notification settings - Fork 1
/
ilert_nagios.cfg
31 lines (26 loc) · 1.55 KB
/
ilert_nagios.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
############################################################################################
# NOTE: use this file if you're using Nagios or Icinga 1.x. If you're using Icinga 2.x, #
# use ilert_icinga2.conf instead. #
############################################################################################
define contact {
contact_name ilert
alias iLert
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-ilert
host_notification_commands notify-ilert
pager <YOUR API KEY>
}
define command {
command_name notify-ilert
command_line python3 /usr/local/bin/ilert_nagios.py -m save
}
#
# Use the following command definition if the configuration option enable_environment_macros is set to 0.
#
#define command {
# command_name notify-ilert
# command_line python3 /usr/local/bin/ilert_nagios.py -m save CONTACTPAGER="$CONTACTPAGER$" NOTIFICATIONTYPE="$NOTIFICATIONTYPE$" LONGDATETIME="$LONGDATETIME$" HOSTADDRESS="$HOSTADDRESS$" HOSTNAME="$HOSTNAME$" HOSTSTATE="$HOSTSTATE$" HOSTOUTPUT="$HOSTOUTPUT$" HOSTALIAS="$HOSTALIAS$" SERVICEDESC="$SERVICEDESC$" SERVICESTATE="$SERVICESTATE$" SERVICEOUTPUT="$SERVICEOUTPUT$"
#}