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"
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).
62 ###############################################################################
65 # note: multiple recipients can be given like this:
66 # "admin1@example.com admin2@example.com ..."
68 # enable/disable sending emails
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"
76 ###############################################################################
77 # sending pushover notifications (pushover.net)
79 # note: multiple recipients can be given like this:
80 # "USERTOKEN1 USERTOKEN2 ..."
82 # enable/disable sending pushover notifications
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.
90 # if a role's recipients are not configured, a notification will be send to
91 # this pushover user token:
92 DEFAULT_RECIPIENT_PUSHOVER=""
95 ###############################################################################
96 # sending slack notifications
98 # note: multiple recipients can be given like this:
99 # "CHANNEL1 CHANNEL2 ..."
101 # enable/disable sending pushover notifications
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
110 # if a role's recipients are not configured, a notification will be send to
111 # this slack channel:
112 DEFAULT_RECIPIENT_SLACK=""
115 ###############################################################################
116 # RECIPIENTS PER ROLE
118 # -----------------------------------------------------------------------------
119 # generic system alarms
120 # CPU, disks, entropy, etc
122 role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
124 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
126 role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
129 # -----------------------------------------------------------------------------
132 role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
134 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
136 role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
139 # -----------------------------------------------------------------------------
140 # database servers alarms
141 # mysql, redis, memcached, etc
143 role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
145 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
147 role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
150 # -----------------------------------------------------------------------------
154 role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
156 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
158 role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
161 # -----------------------------------------------------------------------------
162 # proxy servers alarms
165 role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
167 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
169 role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"