]> arthur.barton.de Git - netdata.git/blob - conf.d/health_alarm_notify.conf
Merge pull request #888 from rsanger/fix_hddtemp
[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 # - messages to your telegram chat / group chat
11 #
12 # the recipient given in netdata alarms defines a role, so that different
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) via a proxy
22 # set these:
23 #export http_proxy="http://10.0.0.1:3128/"
24 #export https_proxy="http://10.0.0.1:3128/"
25
26
27 ###############################################################################
28 # external commands needed
29
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.
33 sendmail=""
34
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.
38 curl=""
39
40
41 ###############################################################################
42 # RECIPIENT ATTRIBUTES
43
44 # When you define recipients (all types):
45 #
46 #  - emails addresses
47 #  - pushover user tokens
48 #  - telegram chat ids
49 #  - slack channels
50 #
51 # You can append |critical to limit the notifications to be sent.
52 #
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"
59 #
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).
64
65 ###############################################################################
66 # sending emails
67
68 # note: multiple recipients can be given like this:
69 #              "admin1@example.com admin2@example.com ..."
70
71 # enable/disable sending emails
72 SEND_EMAIL="YES"
73
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"
77
78
79 ###############################################################################
80 # sending pushover notifications (pushover.net)
81
82 # note: multiple recipients can be given like this:
83 #                  "USERTOKEN1 USERTOKEN2 ..."
84
85 # enable/disable sending pushover notifications
86 SEND_PUSHOVER="YES"
87
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.
91 PUSHOVER_APP_TOKEN=""
92
93 # if a role's recipients are not configured, a notification will be send to
94 # this pushover user token:
95 DEFAULT_RECIPIENT_PUSHOVER=""
96
97
98 ###############################################################################
99 # sending telegram messages (telegram.org)
100
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.
103
104 # note: multiple recipients can be given like this:
105 #                  "CHAT_ID_1 CHAT_ID_1 ..."
106
107 # enable/disable sending telegram messages
108 SEND_TELEGRAM="YES"
109
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=""
113
114 # If a role's recipients are not configured, a message will be send to this chat id:
115 DEFAULT_RECIPIENT_TELEGRAM=""
116
117
118 ###############################################################################
119 # sending slack notifications
120
121 # note: multiple recipients can be given like this:
122 #                  "CHANNEL1 CHANNEL2 ..."
123
124 # enable/disable sending pushover notifications
125 SEND_SLACK="YES"
126
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
131 SLACK_WEBHOOK_URL=""
132
133 # if a role's recipients are not configured, a notification will be send to
134 # this slack channel:
135 DEFAULT_RECIPIENT_SLACK=""
136
137
138 ###############################################################################
139 # RECIPIENTS PER ROLE
140
141 # -----------------------------------------------------------------------------
142 # generic system alarms
143 # CPU, disks, entropy, etc
144
145 role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
146
147 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
148
149 role_recipients_telegram[sysadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
150
151 role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
152
153
154 # -----------------------------------------------------------------------------
155 # DNS related alarms
156
157 role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
158
159 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
160
161 role_recipients_telegram[domainadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
162
163 role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
164
165
166 # -----------------------------------------------------------------------------
167 # database servers alarms
168 # mysql, redis, memcached, etc
169
170 role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
171
172 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
173
174 role_recipients_telegram[dba]="${DEFAULT_RECIPIENT_TELEGRAM}"
175
176 role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
177
178
179 # -----------------------------------------------------------------------------
180 # web servers alarms
181 # apache, nginx, etc
182
183 role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
184
185 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
186
187 role_recipients_telegram[webmaster]="${DEFAULT_RECIPIENT_TELEGRAM}"
188
189 role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
190
191
192 # -----------------------------------------------------------------------------
193 # proxy servers alarms
194 # apache, nginx, etc
195
196 role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
197
198 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
199
200 role_recipients_telegram[proxyadmin]="${DEFAULT_RECIPIENT_TELEGRAM}"
201
202 role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"