]> arthur.barton.de Git - netdata.git/blob - conf.d/health_alarm_notify.conf
Merge pull request #950 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 # if you need to send curl based notifications (pushover, slack) via a proxy
17 # set these:
18 #export http_proxy="http://10.0.0.1:3128/"
19 #export https_proxy="http://10.0.0.1:3128/"
20
21
22 ###############################################################################
23 # external commands needed
24
25 # The full path to the sendmail command.
26 # If empty, the system $PATH will be searched for it.
27 # If not found, email notifications will be disabled.
28 sendmail=""
29
30 # The full path of the curl command.
31 # If empty, the system $PATH will be searched for it.
32 # If not found, pushover and slack notifications will be disabled.
33 curl=""
34
35
36 ###############################################################################
37 # sending emails
38
39 # note: multiple recipients can be given like this:
40 #              "admin1@example.com admin2@example.com ..."
41
42 # enable/disable sending emails
43 SEND_EMAIL="YES"
44
45 # if a role recipient is not configured, an email will be send to:
46 DEFAULT_RECIPIENT_EMAIL="root"
47
48
49 ###############################################################################
50 # sending pushover notifications (pushover.net)
51
52 # note: multiple recipients can be given like this:
53 #                  "USERTOKEN1 USERTOKEN2 ..."
54
55 # enable/disable sending pushover notifications
56 SEND_PUSHOVER="YES"
57
58 # Login to pushover.net to get your pushover app token
59 # You need only one for all your netdata servers.
60 # Without it, netdata cannot send pushover notifications.
61 PUSHOVER_APP_TOKEN=""
62
63 # if a role's recipients are not configured, a notification will be send to
64 # this pushover user token:
65 DEFAULT_RECIPIENT_PUSHOVER=""
66
67
68 ###############################################################################
69 # sending slack notifications
70
71 # note: multiple recipients can be given like this:
72 #                  "CHANNEL1 CHANNEL2 ..."
73
74 # enable/disable sending pushover notifications
75 SEND_SLACK="YES"
76
77 # Login to slack.com and create an incoming webhook.
78 # You need only one for all your netdata servers.
79 # Without it, netdata cannot send slack notifications.
80 # Get yours from: https://api.slack.com/incoming-webhooks
81 SLACK_WEBHOOK_URL=""
82
83 # if a role's recipients are not configured, a notification will be send to
84 # this slack channel:
85 DEFAULT_RECIPIENT_SLACK=""
86
87
88 ###############################################################################
89 # RECIPIENTS PER ROLE
90
91 # -----------------------------------------------------------------------------
92 # generic system alarms
93 # CPU, disks, entropy, etc
94
95 role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
96
97 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
98
99 role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
100
101
102 # -----------------------------------------------------------------------------
103 # DNS related alarms
104
105 role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
106
107 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
108
109 role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
110
111
112 # -----------------------------------------------------------------------------
113 # database servers alarms
114 # mysql, redis, memcached, etc
115
116 role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
117
118 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
119
120 role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
121
122
123 # -----------------------------------------------------------------------------
124 # web servers alarms
125 # apache, nginx, etc
126
127 role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
128
129 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
130
131 role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
132
133
134 # -----------------------------------------------------------------------------
135 # proxy servers alarms
136 # apache, nginx, etc
137
138 role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
139
140 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
141
142 role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"