]> arthur.barton.de Git - netdata.git/blobdiff - conf.d/health_alarm_notify.conf
Added SMS notification via Twilio
[netdata.git] / conf.d / health_alarm_notify.conf
index 3f0876e6fee720a222081c49f78cc8e472256fd1..33a752f9ed31f6e663b55246e69c3088faf94635 100644 (file)
@@ -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}"