diff options
author | shadycuz <shadycuz@gmail.com> | 2016-11-03 04:13:06 -0400 |
---|---|---|
committer | shadycuz <shadycuz@gmail.com> | 2016-11-05 09:43:37 -0400 |
commit | 9170d3b405cff7e02ff4f0db726e3e72b28d0178 (patch) | |
tree | 611eedd2b038f505de89a85ba4e4795fb1b01345 /conf.d | |
parent | b31e66cb2c05fcfc3d95ee671fcac005e7b25dbc (diff) |
Added SMS notification via Twilio
Diffstat (limited to 'conf.d')
-rw-r--r-- | conf.d/health_alarm_notify.conf | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/conf.d/health_alarm_notify.conf b/conf.d/health_alarm_notify.conf index 3f0876e6fe..33a752f9ed 100644 --- a/conf.d/health_alarm_notify.conf +++ b/conf.d/health_alarm_notify.conf @@ -8,6 +8,7 @@ # - push notifications to your mobile phone (pushover.net), # - messages to your slack team (slack.com), # - messages to your telegram chat / group chat (telegram.org) +# - sms messages to your cell phone or any sms enabled device (twilio.com) # # The 'to' line given at netdata alarms defines a *role*, so that many # people can be notified for each role. @@ -60,6 +61,7 @@ curl="" # - pushover user tokens # - telegram chat ids # - slack channels +# - sms phone numbers # # You can append |critical to limit the notifications to be sent. # @@ -70,6 +72,7 @@ curl="" # pushover: "2987343...9437837 8756278...2362736|critical" # telegram: "111827421 112746832|critical" # slack : "alarms disasters|critical" +# twilio : "+15555555555 +17777777777|critical" # # If a recipient is set to empty string, the default recipient of the given # notification method (email, pushover, telegram, slack) will be used. @@ -133,6 +136,26 @@ SEND_PUSHBULLET="YES" PUSHBULLET_ACCESS_TOKEN="" DEFAULT_RECIPIENT_PUSHBULLET="" +############################################################################### +# Twilio (twilio.com) SMS options + +# multiple recipients can be given like this: +# "+15555555555 +17777777777" + +# enable/disable sending twilio SMS +SEND_TWILIO="YES" + +# Signup for free trial and select a SMS capable Twilio Number +# To get your Account SID and Token, go to https://www.twilio.com/console +# Place your sid, token and number below. +# Then just set the recipients' phone numbers. +# The trial account is only allowed to use the number specified when set up. + +# Without an account sid and token, netdata cannot send Twilio text messages. +TWILIO_ACCOUNT_SID="" +TWILIO_ACCOUNT_TOKEN="" +TWILIO_NUMBER="" +DEFAULT_RECIPIENT_TWILIO="" ############################################################################### # telegram (telegram.org) global notification options @@ -193,6 +216,7 @@ role_recipients_telegram[sysadmin]="${DEFAULT_RECIPIENT_TELEGRAM}" role_recipients_slack[sysadmin]="${DEFAULT_RECIPIENT_SLACK}" +role_recipients_twilio[sysadmin]="${DEFAULT_RECIPIENT_TWILIO}" # ----------------------------------------------------------------------------- # DNS related alarms @@ -207,6 +231,7 @@ role_recipients_telegram[domainadmin]="${DEFAULT_RECIPIENT_TELEGRAM}" role_recipients_slack[domainadmin]="${DEFAULT_RECIPIENT_SLACK}" +role_recipients_twilio[domainadmin]="${DEFAULT_RECIPIENT_TWILIO}" # ----------------------------------------------------------------------------- # database servers alarms @@ -222,6 +247,7 @@ role_recipients_telegram[dba]="${DEFAULT_RECIPIENT_TELEGRAM}" role_recipients_slack[dba]="${DEFAULT_RECIPIENT_SLACK}" +role_recipients_twilio[dba]="${DEFAULT_RECIPIENT_TWILIO}" # ----------------------------------------------------------------------------- # web servers alarms @@ -237,6 +263,7 @@ role_recipients_telegram[webmaster]="${DEFAULT_RECIPIENT_TELEGRAM}" role_recipients_slack[webmaster]="${DEFAULT_RECIPIENT_SLACK}" +role_recipients_twilio[webmaster]="${DEFAULT_RECIPIENT_TWILIO}" # ----------------------------------------------------------------------------- # proxy servers alarms @@ -251,3 +278,5 @@ role_recipients_pushbullet[proxyadmin]="${DEFAULT_RECIPIENT_PUSHBULLET}" role_recipients_telegram[proxyadmin]="${DEFAULT_RECIPIENT_TELEGRAM}" role_recipients_slack[proxyadmin]="${DEFAULT_RECIPIENT_SLACK}" + +role_recipients_twilio[proxyadmin]="${DEFAULT_RECIPIENT_TWILIO}" |