]> arthur.barton.de Git - netdata.git/blob - conf.d/health_alarm_notify.conf
alarm notifications support different severity per recipient
[netdata.git] / conf.d / health_alarm_notify.conf
1 # Configuration for alarm notifications
2 #
3 # this configuration is used by: alarm-notify.sh
4 # changes take effect immendiately (the next alarm will use them).
5 #
6 # alarm-notify.sh can send:
7 # - e-mails,
8 # - push notifications to your mobile phone,
9 # - messages to your slack team
10 #
11 # the recipient given in netdata alarms defines a role, so that different
12 # people can be notified for each role.
13 #
14 # This file is a BASH script itself.
15
16
17 ###############################################################################
18 # proxy configuration
19
20 # if you need to send curl based notifications (pushover, slack) via a proxy
21 # set these:
22 #export http_proxy="http://10.0.0.1:3128/"
23 #export https_proxy="http://10.0.0.1:3128/"
24
25
26 ###############################################################################
27 # external commands needed
28
29 # The full path to the sendmail command.
30 # If empty, the system $PATH will be searched for it.
31 # If not found, email notifications will be disabled.
32 sendmail=""
33
34 # The full path of the curl command.
35 # If empty, the system $PATH will be searched for it.
36 # If not found, pushover and slack notifications will be disabled.
37 curl=""
38
39
40 ###############################################################################
41 # RECIPIENT ATTRIBUTES
42
43 # When you define recipients (all types):
44 #
45 #  - emails addresses
46 #  - pushover user tokens
47 #  - slack channels
48 #
49 # You can append |critical to limit the notifications to be sent.
50 #
51 # In these examples, the first recipient receives all the alarms
52 # while the second one receives only the critical ones:
53 #  email   : "user1@example.com user2@example.com|critical"
54 #  pushover: "2987343...9437837 8756278...2362736|critical"
55 #  slack   : "alarms disasters|critical"
56
57
58 ###############################################################################
59 # sending emails
60
61 # note: multiple recipients can be given like this:
62 #              "admin1@example.com admin2@example.com ..."
63
64 # enable/disable sending emails
65 SEND_EMAIL="YES"
66
67 # if a role recipient is not configured, an email will be send to:
68 DEFAULT_RECIPIENT_EMAIL="root"
69 # to recieve only critical alarms, set it to "root|critical"
70
71
72 ###############################################################################
73 # sending pushover notifications (pushover.net)
74
75 # note: multiple recipients can be given like this:
76 #                  "USERTOKEN1 USERTOKEN2 ..."
77
78 # enable/disable sending pushover notifications
79 SEND_PUSHOVER="YES"
80
81 # Login to pushover.net to get your pushover app token
82 # You need only one for all your netdata servers.
83 # Without it, netdata cannot send pushover notifications.
84 PUSHOVER_APP_TOKEN=""
85
86 # if a role's recipients are not configured, a notification will be send to
87 # this pushover user token:
88 DEFAULT_RECIPIENT_PUSHOVER=""
89
90
91 ###############################################################################
92 # sending slack notifications
93
94 # note: multiple recipients can be given like this:
95 #                  "CHANNEL1 CHANNEL2 ..."
96
97 # enable/disable sending pushover notifications
98 SEND_SLACK="YES"
99
100 # Login to slack.com and create an incoming webhook.
101 # You need only one for all your netdata servers.
102 # Without it, netdata cannot send slack notifications.
103 # Get yours from: https://api.slack.com/incoming-webhooks
104 SLACK_WEBHOOK_URL=""
105
106 # if a role's recipients are not configured, a notification will be send to
107 # this slack channel:
108 DEFAULT_RECIPIENT_SLACK=""
109
110
111 ###############################################################################
112 # RECIPIENTS PER ROLE
113
114 # -----------------------------------------------------------------------------
115 # generic system alarms
116 # CPU, disks, entropy, etc
117
118 role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
119
120 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
121
122 role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
123
124
125 # -----------------------------------------------------------------------------
126 # DNS related alarms
127
128 role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
129
130 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
131
132 role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
133
134
135 # -----------------------------------------------------------------------------
136 # database servers alarms
137 # mysql, redis, memcached, etc
138
139 role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
140
141 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
142
143 role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
144
145
146 # -----------------------------------------------------------------------------
147 # web servers alarms
148 # apache, nginx, etc
149
150 role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
151
152 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
153
154 role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
155
156
157 # -----------------------------------------------------------------------------
158 # proxy servers alarms
159 # apache, nginx, etc
160
161 role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
162
163 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
164
165 role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"