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.
16 # if you need to send curl based notifications (pushover, slack) via a proxy
18 #export http_proxy="http://10.0.0.1:3128/"
19 #export https_proxy="http://10.0.0.1:3128/"
22 ###############################################################################
23 # external commands needed
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.
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.
36 ###############################################################################
39 # note: multiple recipients can be given like this:
40 # "admin1@example.com admin2@example.com ..."
42 # enable/disable sending emails
45 # if a role recipient is not configured, an email will be send to:
46 DEFAULT_RECIPIENT_EMAIL="root"
49 ###############################################################################
50 # sending pushover notifications (pushover.net)
52 # note: multiple recipients can be given like this:
53 # "USERTOKEN1 USERTOKEN2 ..."
55 # enable/disable sending pushover notifications
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.
63 # if a role's recipients are not configured, a notification will be send to
64 # this pushover user token:
65 DEFAULT_RECIPIENT_PUSHOVER=""
68 ###############################################################################
69 # sending slack notifications
71 # note: multiple recipients can be given like this:
72 # "CHANNEL1 CHANNEL2 ..."
74 # enable/disable sending pushover notifications
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
83 # if a role's recipients are not configured, a notification will be send to
85 DEFAULT_RECIPIENT_SLACK=""
88 ###############################################################################
91 # -----------------------------------------------------------------------------
92 # generic system alarms
93 # CPU, disks, entropy, etc
95 role_recipients_email[sysadmin]="${DEFAULT_RECIPIENT_EMAIL}"
97 role_recipients_pushover[sysadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
99 role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}"
102 # -----------------------------------------------------------------------------
105 role_recipients_email[domainadmin]="${DEFAULT_RECIPIENT_EMAIL}"
107 role_recipients_pushover[domainadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
109 role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}"
112 # -----------------------------------------------------------------------------
113 # database servers alarms
114 # mysql, redis, memcached, etc
116 role_recipients_email[dba]="${DEFAULT_RECIPIENT_EMAIL}"
118 role_recipients_pushover[dba]="${DEFAULT_RECIPIENT_PUSHOVER}"
120 role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}"
123 # -----------------------------------------------------------------------------
127 role_recipients_email[webmaster]="${DEFAULT_RECIPIENT_EMAIL}"
129 role_recipients_pushover[webmaster]="${DEFAULT_RECIPIENT_PUSHOVER}"
131 role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}"
134 # -----------------------------------------------------------------------------
135 # proxy servers alarms
138 role_recipients_email[proxyadmin]="${DEFAULT_RECIPIENT_EMAIL}"
140 role_recipients_pushover[proxyadmin]="${DEFAULT_RECIPIENT_PUSHOVER}"
142 role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}"