diff options
author | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-03-25 10:52:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 10:52:25 +0100 |
commit | 9c807630ea5e10144892a5bfc5379b36c2a63e8d (patch) | |
tree | 34b836a527467531ff0321fafaa44f8a67ae772d /health/notifications/health_alarm_notify.conf | |
parent | 03ca8f3c4bbc3cbd3d1b120b265052675e2f8079 (diff) |
Add SMS Server Tools 3 SMS notifications (#5662)
* Add SMS Server Tools 3 SMS notifications
* Minor reordering to present changes better
* Fix typo in README link
* Fix Codacy Missing code-language flag
* Fix missing "to" in readme
Diffstat (limited to 'health/notifications/health_alarm_notify.conf')
-rwxr-xr-x | health/notifications/health_alarm_notify.conf | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/health/notifications/health_alarm_notify.conf b/health/notifications/health_alarm_notify.conf index b96cf57931..cfbbd029ab 100755 --- a/health/notifications/health_alarm_notify.conf +++ b/health/notifications/health_alarm_notify.conf @@ -13,6 +13,7 @@ # - messages to your telegram chat / group chat (telegram.org) # - sms messages to your cell phone or any sms enabled device (twilio.com) # - sms messages to your cell phone or any sms enabled device (messagebird.com) +# - sms messages to your cell phone or any sms enabled device (smstools3) # - notifications to users on pagerduty.com # - push notifications to iOS devices (via prowlapp.com) # - notifications to Amazon SNS topics (aws.amazon.com) @@ -110,6 +111,11 @@ logger="" # If not found, Amazon SNS notifications will be silently disabled. aws="" +# The full path of the sendsms command (smstools3). +# If empty, the system $PATH will be searched for it. +# If not found, SMS notifications will be silently disabled. +sendsms="" + #------------------------------------------------------------------------------ # extra options for external commands # @@ -693,6 +699,18 @@ AWSSNS_MESSAGE_FORMAT="${status} on ${host} at ${date}: ${chart} ${value_string} DEFAULT_RECIPIENT_AWSSNS="" #------------------------------------------------------------------------------ +# SMS Server Tools 3 (smstools3) global notification options + +# enable/disable sending SMS Server Tools 3 SMS notifications +SEND_SMS="YES" + +# if a role's recipients are not configured, a notification will be sent to +# this SMS channel (empty = do not send a notification for unconfigured +# roles). Multiple recipients can be given like this: "PHONE1 PHONE2 ..." + +DEFAULT_RECIPIENT_SMS="" + +#------------------------------------------------------------------------------ # custom notifications # @@ -844,6 +862,8 @@ role_recipients_custom[domainadmin]="${DEFAULT_RECIPIENT_CUSTOM}" role_recipients_msteam[domainadmin]="${DEFAULT_RECIPIENT_MSTEAM}" +role_recipients_sms[domainadmin]="${DEFAULT_RECIPIENT_SMS}" + # ----------------------------------------------------------------------------- # database servers alarms # mysql, redis, memcached, postgres, etc @@ -888,6 +908,8 @@ role_recipients_custom[dba]="${DEFAULT_RECIPIENT_CUSTOM}" role_recipients_msteam[dba]="${DEFAULT_RECIPIENT_MSTEAM}" +role_recipients_sms[dba]="${DEFAULT_RECIPIENT_SMS}" + # ----------------------------------------------------------------------------- # web servers alarms # apache, nginx, lighttpd, etc @@ -932,6 +954,8 @@ role_recipients_custom[webmaster]="${DEFAULT_RECIPIENT_CUSTOM}" role_recipients_msteam[webmaster]="${DEFAULT_RECIPIENT_MSTEAM}" +role_recipients_sms[webmaster]="${DEFAULT_RECIPIENT_SMS}" + # ----------------------------------------------------------------------------- # proxy servers alarms # squid, etc @@ -976,6 +1000,8 @@ role_recipients_custom[proxyadmin]="${DEFAULT_RECIPIENT_CUSTOM}" role_recipients_msteam[proxyadmin]="${DEFAULT_RECIPIENT_MSTEAM}" +role_recipients_sms[proxyadmin]="${DEFAULT_RECIPIENT_SMS}" + # ----------------------------------------------------------------------------- # peripheral devices # UPS, photovoltaics, etc @@ -1017,3 +1043,5 @@ role_recipients_awssns[sitemgr]="${DEFAULT_RECIPIENT_AWSSNS}" role_recipients_custom[sitemgr]="${DEFAULT_RECIPIENT_CUSTOM}" role_recipients_msteam[sitemgr]="${DEFAULT_RECIPIENT_MSTEAM}" + +role_recipients_sms[sitemgr]="${DEFAULT_RECIPIENT_SMS}" |