]> arthur.barton.de Git - netdata.git/blob - conf.d/health_alarm_notify.conf
Merge pull request #977 from ktsaou/master
[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 # If a recipient is set to empty string, the default recipient of the given
58 # notification method (email, pushover, slack) will be used.
59 # To disable a notification, use the recipient called: disabled
60 # This works for all notification methods (including the default recipients).
61
62 ###############################################################################
63 # sending emails
64
65 # note: multiple recipients can be given like this:
66 #              "admin1@example.com admin2@example.com ..."
67
68 # enable/disable sending emails
69 SEND_EMAIL="YES"
70
71 # if a role recipient is not configured, an email will be send to:
72 DEFAULT_RECIPIENT_EMAIL="root"
73 # to recieve only critical alarms, set it to "root|critical"
74
75
76 ###############################################################################
77 # sending pushover notifications (pushover.net)
78
79 # note: multiple recipients can be given like this:
80 #                  "USERTOKEN1 USERTOKEN2 ..."
81
82 # enable/disable sending pushover notifications
83 SEND_PUSHOVER="YES"
84
85 # Login to pushover.net to get your pushover app token
86 # You need only one for all your netdata servers.
87 # Without it, netdata cannot send pushover notifications.
88 PUSHOVER_APP_TOKEN=""
89
90 # if a role's recipients are not configured, a notification will be send to
91 # this pushover user token:
92 DEFAULT_RECIPIENT_PUSHOVER=""
93
94
95 ###############################################################################
96 # sending slack notifications
97
98 # note: multiple recipients can be given like this:
99 #                  "CHANNEL1 CHANNEL2 ..."
100
101 # enable/disable sending pushover notifications
102 SEND_SLACK="YES"
103
104 # Login to slack.com and create an incoming webhook.
105 # You need only one for all your netdata servers.
106 # Without it, netdata cannot send slack notifications.
107 # Get yours from: https://api.slack.com/incoming-webhooks
108 SLACK_WEBHOOK_URL=""
109
110 # if a role's recipients are not configured, a notification will be send to
111 # this slack channel:
112 DEFAULT_RECIPIENT_SLACK=""
113
114
115 ###############################################################################
116 # RECIPIENTS PER ROLE
117
118 # -----------------------------------------------------------------------------
119 # generic system alarms
120 # CPU, disks, entropy, etc
121
122 role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
123
124 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
125
126 role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
127
128
129 # -----------------------------------------------------------------------------
130 # DNS related alarms
131
132 role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
133
134 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
135
136 role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
137
138
139 # -----------------------------------------------------------------------------
140 # database servers alarms
141 # mysql, redis, memcached, etc
142
143 role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
144
145 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
146
147 role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
148
149
150 # -----------------------------------------------------------------------------
151 # web servers alarms
152 # apache, nginx, etc
153
154 role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
155
156 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
157
158 role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
159
160
161 # -----------------------------------------------------------------------------
162 # proxy servers alarms
163 # apache, nginx, etc
164
165 role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
166
167 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
168
169 role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"