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
11 # the recipient given in netdata alarms defines a role, so that different
12 # people can be notified for each role.
14 # This file is a BASH script itself.
17 ###############################################################################
20 # if you need to send curl based notifications (pushover, slack) via a proxy
22 #export http_proxy="http://10.0.0.1:3128/"
23 #export https_proxy="http://10.0.0.1:3128/"
26 ###############################################################################
27 # external commands needed
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.
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.
40 ###############################################################################
41 # RECIPIENT ATTRIBUTES
43 # When you define recipients (all types):
46 # - pushover user tokens
49 # You can append |critical to limit the notifications to be sent.
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"
58 ###############################################################################
61 # note: multiple recipients can be given like this:
62 # "admin1@example.com admin2@example.com ..."
64 # enable/disable sending emails
67 # if a role recipient is not configured, an email will be send to:
68 DEFAULT_RECIPIENT_EMAIL="root"
69 # to recieve only critical alarms, set it to "root|critical"
72 ###############################################################################
73 # sending pushover notifications (pushover.net)
75 # note: multiple recipients can be given like this:
76 # "USERTOKEN1 USERTOKEN2 ..."
78 # enable/disable sending pushover notifications
81 # Login to pushover.net to get your pushover app token
82 # You need only one for all your netdata servers.
83 # Without it, netdata cannot send pushover notifications.
86 # if a role's recipients are not configured, a notification will be send to
87 # this pushover user token:
88 DEFAULT_RECIPIENT_PUSHOVER=""
91 ###############################################################################
92 # sending slack notifications
94 # note: multiple recipients can be given like this:
95 # "CHANNEL1 CHANNEL2 ..."
97 # enable/disable sending pushover notifications
100 # Login to slack.com and create an incoming webhook.
101 # You need only one for all your netdata servers.
102 # Without it, netdata cannot send slack notifications.
103 # Get yours from: https://api.slack.com/incoming-webhooks
106 # if a role's recipients are not configured, a notification will be send to
107 # this slack channel:
108 DEFAULT_RECIPIENT_SLACK=""
111 ###############################################################################
112 # RECIPIENTS PER ROLE
114 # -----------------------------------------------------------------------------
115 # generic system alarms
116 # CPU, disks, entropy, etc
118 role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
120 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
122 role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
125 # -----------------------------------------------------------------------------
128 role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
130 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
132 role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
135 # -----------------------------------------------------------------------------
136 # database servers alarms
137 # mysql, redis, memcached, etc
139 role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
141 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
143 role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
146 # -----------------------------------------------------------------------------
150 role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
152 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
154 role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
157 # -----------------------------------------------------------------------------
158 # proxy servers alarms
161 role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
163 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
165 role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"