1 # Configuration for alarm notifications
3 # this configuration is used by: alarm-notify.sh
4 # changes take effect immendiately (the next alarm will use them).
6 # alarm-notify.sh can send:
8 # - push notifications to your mobile phone,
9 # - messages to your slack team
10 # - messages to your telegram chat / group chat
12 # the recipient given in netdata alarms defines a role, so that different
13 # people can be notified for each role.
15 # This file is a BASH script itself.
18 ###############################################################################
21 # if you need to send curl based notifications (pushover, slack) via a proxy
23 #export http_proxy="http://10.0.0.1:3128/"
24 #export https_proxy="http://10.0.0.1:3128/"
27 ###############################################################################
28 # external commands needed
30 # The full path to the sendmail command.
31 # If empty, the system $PATH will be searched for it.
32 # If not found, email notifications will be disabled.
35 # The full path of the curl command.
36 # If empty, the system $PATH will be searched for it.
37 # If not found, pushover, telegram and slack notifications will be disabled.
41 ###############################################################################
42 # RECIPIENT ATTRIBUTES
44 # When you define recipients (all types):
47 # - pushover user tokens
51 # You can append |critical to limit the notifications to be sent.
53 # In these examples, the first recipient receives all the alarms
54 # while the second one receives only the critical ones:
55 # email : "user1@example.com user2@example.com|critical"
56 # pushover: "2987343...9437837 8756278...2362736|critical"
57 # telegram: "111827421 112746832|critical"
58 # slack : "alarms disasters|critical"
60 # If a recipient is set to empty string, the default recipient of the given
61 # notification method (email, pushover, telegram, slack) will be used.
62 # To disable a notification, use the recipient called: disabled
63 # This works for all notification methods (including the default recipients).
65 ###############################################################################
68 # note: multiple recipients can be given like this:
69 # "admin1@example.com admin2@example.com ..."
71 # enable/disable sending emails
74 # if a role recipient is not configured, an email will be send to:
75 DEFAULT_RECIPIENT_EMAIL="root"
76 # to recieve only critical alarms, set it to "root|critical"
79 ###############################################################################
80 # sending pushover notifications (pushover.net)
82 # note: multiple recipients can be given like this:
83 # "USERTOKEN1 USERTOKEN2 ..."
85 # enable/disable sending pushover notifications
88 # Login to pushover.net to get your pushover app token
89 # You need only one for all your netdata servers.
90 # Without it, netdata cannot send pushover notifications.
93 # if a role's recipients are not configured, a notification will be send to
94 # this pushover user token:
95 DEFAULT_RECIPIENT_PUSHOVER=""
98 ###############################################################################
99 # sending telegram messages (telegram.org)
101 # To get your chat ID send the command /my_id to telegram bot @get_id.
102 # Users also need to open a query with the bot.
104 # note: multiple recipients can be given like this:
105 # "CHAT_ID_1 CHAT_ID_1 ..."
107 # enable/disable sending telegram messages
110 # Contact the bot @BotFather to create a new bot and to receive a bot token.
111 # Without it, netdata cannot send telegram messages.
112 TELEGRAM_BOT_TOKEN=""
114 # If a role's recipients are not configured, a message will be send to this chat id:
115 DEFAULT_RECIPIENT_TELEGRAM=""
118 ###############################################################################
119 # sending slack notifications
121 # note: multiple recipients can be given like this:
122 # "CHANNEL1 CHANNEL2 ..."
124 # enable/disable sending pushover notifications
127 # Login to slack.com and create an incoming webhook.
128 # You need only one for all your netdata servers.
129 # Without it, netdata cannot send slack notifications.
130 # Get yours from: https://api.slack.com/incoming-webhooks
133 # if a role's recipients are not configured, a notification will be send to
134 # this slack channel:
135 DEFAULT_RECIPIENT_SLACK=""
138 ###############################################################################
139 # RECIPIENTS PER ROLE
141 # -----------------------------------------------------------------------------
142 # generic system alarms
143 # CPU, disks, entropy, etc
145 role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
147 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
149 role_recipients_telegram[sysadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
151 role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
154 # -----------------------------------------------------------------------------
157 role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
159 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
161 role_recipients_telegram[domainadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
163 role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
166 # -----------------------------------------------------------------------------
167 # database servers alarms
168 # mysql, redis, memcached, etc
170 role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
172 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
174 role_recipients_telegram[dba]="${DEFAULT_RECIPIENT_TELEGRAM}"
176 role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
179 # -----------------------------------------------------------------------------
183 role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
185 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
187 role_recipients_telegram[webmaster]="${DEFAULT_RECIPIENT_TELEGRAM}"
189 role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
192 # -----------------------------------------------------------------------------
193 # proxy servers alarms
196 role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
198 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
200 role_recipients_telegram[proxyadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
202 role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"