1 # Configuration for alarm notifications
3 # This configuration is used by: alarm-notify.sh
4 # changes take effect immediately (the next alarm will use them).
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 # - sms messages to your cell phone or any sms enabled device (twilio.com)
12 # - sms messages to your cell phone or any sms enabled device (messagebird.com)
13 # - notifications to users on pagerduty.com
15 # The 'to' line given at netdata alarms defines a *role*, so that many
16 # people can be notified for each role.
18 # This file is a BASH script itself.
21 #------------------------------------------------------------------------------
24 # If you need to send curl based notifications (pushover, pushbullet, slack,
25 # telegram) via a proxy, set these to your proxy address:
26 #export http_proxy="http://10.0.0.1:3128/"
27 #export https_proxy="http://10.0.0.1:3128/"
30 #------------------------------------------------------------------------------
31 # notifications images
33 # Images in notifications need to be downloaded from an Internet facing site.
34 # To allow notification providers fetch the icons/images, by default we set
35 # the URL of the global public netdata registry.
36 # If you have an Internet facing netdata (or you have copied the images/ folder
37 # of netdata to your web server), set its URL here, to fetch the notification
39 #images_base_url="http://my.public.netdata.server:19999"
42 #------------------------------------------------------------------------------
45 # The full path to the sendmail command.
46 # If empty, the system $PATH will be searched for it.
47 # If not found, email notifications will be disabled (silently).
50 # The full path of the curl command.
51 # If empty, the system $PATH will be searched for it.
52 # If not found, pushover, telegram and slack notifications will be
57 #------------------------------------------------------------------------------
58 # NOTE ABOUT RECIPIENTS
60 # When you define recipients (all types):
63 # - pushover user tokens
67 # - pagerduty.com (pd) services
69 # You can append |critical to limit the notifications to be sent.
71 # In these examples, the first recipient receives all the alarms
72 # while the second one receives only the critical ones:
74 # email : "user1@example.com user2@example.com|critical"
75 # pushover : "2987343...9437837 8756278...2362736|critical"
76 # telegram : "111827421 112746832|critical"
77 # slack : "alarms disasters|critical"
78 # twilio : "+15555555555 +17777777777|critical"
79 # messagebird: "+15555555555 +17777777777|critical"
80 # pd : "<pd_service_key_1> <pd_service_key_2>|critical"
82 # If a recipient is set to empty string, the default recipient of the given
83 # notification method (email, pushover, telegram, slack, pd) will be used.
84 # To disable a notification, use the recipient called: disabled
85 # This works for all notification methods (including the default recipients).
88 #------------------------------------------------------------------------------
89 # email global notification options
91 # multiple recipients can be given like this:
92 # "admin1@example.com admin2@example.com ..."
94 # enable/disable sending emails
97 # if a role recipient is not configured, an email will be send to:
98 DEFAULT_RECIPIENT_EMAIL="root"
99 # to receive only critical alarms, set it to "root|critical"
102 #------------------------------------------------------------------------------
103 # pushover (pushover.net) global notification options
105 # multiple recipients can be given like this:
106 # "USERTOKEN1 USERTOKEN2 ..."
108 # enable/disable sending pushover notifications
111 # Login to pushover.net to get your pushover app token.
112 # You need only one for all your netdata servers (or you can have one for
113 # each of your netdata - your call).
114 # Without an app token, netdata cannot send pushover notifications.
115 PUSHOVER_APP_TOKEN=""
117 # if a role's recipients are not configured, a notification will be send to
118 # this pushover user token (empty = do not send a notification for unconfigured
120 DEFAULT_RECIPIENT_PUSHOVER=""
123 #------------------------------------------------------------------------------
124 # pushbullet (pushbullet.com) push notification options
126 # multiple recipients can be given like this:
127 # "user1@email.com user2@mail.com"
129 # enable/disable sending pushbullet notifications
130 SEND_PUSHBULLET="YES"
132 # Signup and Login to pushbullet.com
133 # To get your Access Token, go to https://www.pushbullet.com/#settings/account
134 # Create a new access token and paste it below.
135 # Then just set the recipients' emails.
136 # Please note that the if the email in the DEFAULT_RECIPIENT_PUSHBULLET does
137 # not have a pushbullet account, the pushbullet service will send an email
138 # to that address instead.
140 # Without an access token, netdata cannot send pushbullet notifications.
141 PUSHBULLET_ACCESS_TOKEN=""
142 DEFAULT_RECIPIENT_PUSHBULLET=""
144 #------------------------------------------------------------------------------
145 # Twilio (twilio.com) SMS options
147 # multiple recipients can be given like this:
148 # "+15555555555 +17777777777"
150 # enable/disable sending twilio SMS
153 # Signup for free trial and select a SMS capable Twilio Number
154 # To get your Account SID and Token, go to https://www.twilio.com/console
155 # Place your sid, token and number below.
156 # Then just set the recipients' phone numbers.
157 # The trial account is only allowed to use the number specified when set up.
159 # Without an account sid and token, netdata cannot send Twilio text messages.
160 TWILIO_ACCOUNT_SID=""
161 TWILIO_ACCOUNT_TOKEN=""
163 DEFAULT_RECIPIENT_TWILIO=""
165 #------------------------------------------------------------------------------
166 # Messagebird (messagebird.com) SMS options
168 # multiple recipients can be given like this:
169 # "+15555555555 +17777777777"
171 # enable/disable sending messagebird SMS
172 SEND_MESSAGEBIRD="YES"
174 # Without an access key, netdata cannot send Messagebird text messages.
175 MESSAGEBIRD_ACCESS_KEY=""
176 MESSAGEBIRD_NUMBER=""
177 DEFAULT_RECIPIENT_MESSAGEBIRD=""
179 #------------------------------------------------------------------------------
180 # telegram (telegram.org) global notification options
182 # To get your chat ID send the command /my_id to telegram bot @get_id.
183 # Users also need to open a query with the bot (see below).
185 # note: multiple recipients can be given like this:
186 # "CHAT_ID_1 CHAT_ID_2 ..."
188 # enable/disable sending telegram messages
191 # Contact the bot @BotFather to create a new bot and receive a bot token.
192 # Without it, netdata cannot send telegram messages.
193 TELEGRAM_BOT_TOKEN=""
195 # If a role's recipients are not configured, a message will be send to
196 # this chat id (empty = do not send a notification for unconfigured roles):
197 DEFAULT_RECIPIENT_TELEGRAM=""
200 #------------------------------------------------------------------------------
201 # slack (slack.com) global notification options
203 # multiple recipients can be given like this:
204 # "CHANNEL1 CHANNEL2 ..."
206 # enable/disable sending slack notifications
209 # Login to slack.com and create an incoming webhook. You need only one for all
210 # your netdata servers (or you can have one for each of your netdata).
211 # Without it, netdata cannot send slack notifications.
212 # Get yours from: https://api.slack.com/incoming-webhooks
215 # if a role's recipients are not configured, a notification will be send to
216 # this slack channel (empty = do not send a notification for unconfigured
218 DEFAULT_RECIPIENT_SLACK=""
221 #------------------------------------------------------------------------------
222 # kafka notification options
224 # enable/disable sending kafka notifications
227 # The URL to POST kafka alarm data to. It should be the full URL.
230 # The IP to be used in the kafka message as the sender.
234 #------------------------------------------------------------------------------
235 # pagerduty.com notification options
237 # pagerduty.com notifications require the pagerduty agent to be installed and
238 # a "Generic API" pagerduty service.
239 # https://www.pagerduty.com/docs/guides/agent-install-guide/
241 # multiple recipients can be given like this:
242 # "<pd_service_key_1> <pd_service_key_2> ..."
244 # enable/disable sending pagerduty notifications
247 # if a role's recipients are not configured, a notification will be sent to
248 # the "General API" pagerduty.com service that uses this service key.
249 # (empty = do not send a notification for unconfigured roles):
250 DEFAULT_RECIPIENT_PD=""
253 ###############################################################################
254 # RECIPIENTS PER ROLE
256 # -----------------------------------------------------------------------------
257 # generic system alarms
258 # CPU, disks, network interfaces, entropy, etc
260 role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
262 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
264 role_recipients_pushbullet[sysadmin]="${DEFAULT_RECIPIENT_PUSHBULLET}"
266 role_recipients_telegram[sysadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
268 role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
270 role_recipients_twilio[sysadmin]="${DEFAULT_RECIPIENT_TWILIO}"
272 role_recipients_messagebird[sysadmin]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
274 role_recipients_pd[sysadmin]="${DEFAULT_RECIPIENT_PD}"
276 # -----------------------------------------------------------------------------
279 role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
281 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
283 role_recipients_pushbullet[domainadmin]="${DEFAULT_RECIPIENT_PUSHBULLET}"
285 role_recipients_telegram[domainadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
287 role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
289 role_recipients_twilio[domainadmin]="${DEFAULT_RECIPIENT_TWILIO}"
291 role_recipients_messagebird[domainadmin]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
293 role_recipients_pd[domainadmin]="${DEFAULT_RECIPIENT_PD}"
295 # -----------------------------------------------------------------------------
296 # database servers alarms
297 # mysql, redis, memcached, etc
299 role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
301 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
303 role_recipients_pushbullet[dba]="${DEFAULT_RECIPIENT_PUSHBULLET}"
305 role_recipients_telegram[dba]="${DEFAULT_RECIPIENT_TELEGRAM}"
307 role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
309 role_recipients_twilio[dba]="${DEFAULT_RECIPIENT_TWILIO}"
311 role_recipients_messagebird[dba]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
313 role_recipients_pd[dba]="${DEFAULT_RECIPIENT_PD}"
315 # -----------------------------------------------------------------------------
319 role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
321 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
323 role_recipients_pushbullet[webmaster]="${DEFAULT_RECIPIENT_PUSHBULLET}"
325 role_recipients_telegram[webmaster]="${DEFAULT_RECIPIENT_TELEGRAM}"
327 role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
329 role_recipients_twilio[webmaster]="${DEFAULT_RECIPIENT_TWILIO}"
331 role_recipients_messagebird[webmaster]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
333 role_recipients_pd[webmaster]="${DEFAULT_RECIPIENT_PD}"
335 # -----------------------------------------------------------------------------
336 # proxy servers alarms
339 role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
341 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
343 role_recipients_pushbullet[proxyadmin]="${DEFAULT_RECIPIENT_PUSHBULLET}"
345 role_recipients_telegram[proxyadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
347 role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"
349 role_recipients_twilio[proxyadmin]="${DEFAULT_RECIPIENT_TWILIO}"
351 role_recipients_messagebird[proxyadmin]="${DEFAULT_RECIPIENT_MESSAGEBIRD}"
353 role_recipients_pd[proxyadmin]="${DEFAULT_RECIPIENT_PD}"