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