]> arthur.barton.de Git - netdata.git/blob - conf.d/health_alarm_notify.conf
Added pushbullet notifications support
[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 immediately (the next alarm will use them).
5 #
6 # alarm-notify.sh can send:
7 # - e-mails (using the sendmail command),
8 # - push notifications to your mobile phone (pushover.net),
9 # - messages to your slack team (slack.com),
10 # - messages to your telegram chat / group chat (telegram.org)
11 #
12 # The 'to' line given at netdata alarms defines a *role*, so that many
13 # people can be notified for each role.
14 #
15 # This file is a BASH script itself.
16 #
17 #
18 ###############################################################################
19 # proxy configuration
20 #
21 # If you need to send curl based notifications (pushover, slack, telegram)
22 # via a proxy, set these to your proxy address:
23 #export http_proxy="http://10.0.0.1:3128/"
24 #export https_proxy="http://10.0.0.1:3128/"
25
26
27 ###############################################################################
28 # notifications images
29 #
30 # Images in notifications need to be downloaded from an Internet facing site.
31 # To allow notification providers fetch the icons/images, by default we set
32 # the URL of the global public netdata registry.
33 # If you have an Internet facing netdata (or you have copied the images/ folder
34 # of netdata to your web server), set its URL here, to fetch the notification
35 # images from it.
36 #images_base_url="http://my.public.netdata.server:19999"
37
38
39 ###############################################################################
40 # external commands
41
42 # The full path to the sendmail command.
43 # If empty, the system $PATH will be searched for it.
44 # If not found, email notifications will be disabled (silently).
45 sendmail=""
46
47 # The full path of the curl command.
48 # If empty, the system $PATH will be searched for it.
49 # If not found, pushover, telegram and slack notifications will be
50 # silently disabled.
51 curl=""
52
53
54 ###############################################################################
55 # NOTE ABOUT RECIPIENTS
56 #
57 # When you define recipients (all types):
58 #
59 #  - emails addresses
60 #  - pushover user tokens
61 #  - telegram chat ids
62 #  - slack channels
63 #
64 # You can append |critical to limit the notifications to be sent.
65 #
66 # In these examples, the first recipient receives all the alarms
67 # while the second one receives only the critical ones:
68 #
69 #  email   : "user1@example.com user2@example.com|critical"
70 #  pushover: "2987343...9437837 8756278...2362736|critical"
71 #  telegram: "111827421 112746832|critical"
72 #  slack   : "alarms disasters|critical"
73 #
74 # If a recipient is set to empty string, the default recipient of the given
75 # notification method (email, pushover, telegram, slack) will be used.
76 # To disable a notification, use the recipient called: disabled
77 # This works for all notification methods (including the default recipients).
78
79
80 ###############################################################################
81 # email global notification options
82
83 # multiple recipients can be given like this:
84 #              "admin1@example.com admin2@example.com ..."
85
86 # enable/disable sending emails
87 SEND_EMAIL="YES"
88
89 # if a role recipient is not configured, an email will be send to:
90 DEFAULT_RECIPIENT_EMAIL="root"
91 # to receive only critical alarms, set it to "root|critical"
92
93
94 ###############################################################################
95 # pushover (pushover.net) global notification options
96
97 # multiple recipients can be given like this:
98 #                  "USERTOKEN1 USERTOKEN2 ..."
99
100 # enable/disable sending pushover notifications
101 SEND_PUSHOVER="YES"
102
103 # Login to pushover.net to get your pushover app token.
104 # You need only one for all your netdata servers (or you can have one for
105 # each of your netdata - your call).
106 # Without an app token, netdata cannot send pushover notifications.
107 PUSHOVER_APP_TOKEN=""
108
109 # if a role's recipients are not configured, a notification will be send to
110 # this pushover user token (empty = do not send a notification for unconfigured
111 # roles):
112 DEFAULT_RECIPIENT_PUSHOVER=""
113
114
115 ###############################################################################
116
117 ###############################################################################
118 # pushbullet (pushbullet.com) push notification options
119
120 # multiple recipients can be given like this:
121 #                  "USERTOKEN1 USERTOKEN2 ..."
122
123 # enable/disable sending pushover notifications
124 SEND_PUSHBULLET="YES"
125
126 # Login to pushover.net to get your pushover app token.
127 # You need only one for all your netdata servers (or you can have one for
128 # each of your netdata - your call).
129 # Without an app token, netdata cannot send pushover notifications.
130
131 DEFAULT_RECIPIENT_PUSHBULLET=""
132
133 ###############################################################################
134 # telegram (telegram.org) global notification options
135
136 # To get your chat ID send the command /my_id to telegram bot @get_id.
137 # Users also need to open a query with the bot (see below).
138
139 # note: multiple recipients can be given like this:
140 #                  "CHAT_ID_1 CHAT_ID_1 ..."
141
142 # enable/disable sending telegram messages
143 SEND_TELEGRAM="YES"
144
145 # Contact the bot @BotFather to create a new bot and receive a bot token.
146 # Without it, netdata cannot send telegram messages.
147 TELEGRAM_BOT_TOKEN=""
148
149 # If a role's recipients are not configured, a message will be send to
150 # this chat id (empty = do not send a notification for unconfigured roles):
151 DEFAULT_RECIPIENT_TELEGRAM=""
152
153
154 ###############################################################################
155 # slack (slack.com) global notification options
156
157 # multiple recipients can be given like this:
158 #                  "CHANNEL1 CHANNEL2 ..."
159
160 # enable/disable sending slack notifications
161 SEND_SLACK="YES"
162
163 # Login to slack.com and create an incoming webhook. You need only one for all
164 # your netdata servers (or you can have one for each of your netdata).
165 # Without it, netdata cannot send slack notifications.
166 # Get yours from: https://api.slack.com/incoming-webhooks
167 SLACK_WEBHOOK_URL=""
168
169 # if a role's recipients are not configured, a notification will be send to
170 # this slack channel (empty = do not send a notification for unconfigured
171 # roles):
172 DEFAULT_RECIPIENT_SLACK=""
173
174
175 ###############################################################################
176 # RECIPIENTS PER ROLE
177
178 # -----------------------------------------------------------------------------
179 # generic system alarms
180 # CPU, disks, network interfaces, entropy, etc
181
182 role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
183
184 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
185
186 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHBULLET}"
187
188 role_recipients_telegram[sysadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
189
190 role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
191
192
193 # -----------------------------------------------------------------------------
194 # DNS related alarms
195
196 role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
197
198 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
199
200 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHBULLET}"
201
202 role_recipients_telegram[domainadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
203
204 role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
205
206
207 # -----------------------------------------------------------------------------
208 # database servers alarms
209 # mysql, redis, memcached, etc
210
211 role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
212
213 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
214
215 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHBULLET}"
216
217 role_recipients_telegram[dba]="${DEFAULT_RECIPIENT_TELEGRAM}"
218
219 role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
220
221
222 # -----------------------------------------------------------------------------
223 # web servers alarms
224 # apache, nginx, etc
225
226 role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
227
228 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
229
230 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHBULLET}"
231
232 role_recipients_telegram[webmaster]="${DEFAULT_RECIPIENT_TELEGRAM}"
233
234 role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
235
236
237 # -----------------------------------------------------------------------------
238 # proxy servers alarms
239 # apache, nginx, etc
240
241 role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
242
243 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
244
245 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHBULLET}"
246
247 role_recipients_telegram[proxyadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
248
249 role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"