X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=plugins.d%2Falarm-notify.sh;h=0136257524be8a619a71efebd206b22ccae1509f;hb=6a2a9a20139702a6df054869d69948777c09f667;hp=93f497a9e461e3af0cddbb8b44fb305488773110;hpb=2dba5007b6e253311090e05e397a9f1b25b63289;p=netdata.git diff --git a/plugins.d/alarm-notify.sh b/plugins.d/alarm-notify.sh index 93f497a9..01362575 100755 --- a/plugins.d/alarm-notify.sh +++ b/plugins.d/alarm-notify.sh @@ -376,7 +376,7 @@ if [ \( "${SEND_PUSHOVER}" = "YES" -o "${SEND_SLACK}" = "YES" -o "${SEND_TWILIO} SEND_PUSHBULLET="NO" SEND_TELEGRAM="NO" SEND_SLACK="NO" - SEND_TWILIO="NO" + SEND_TWILIO="NO" fi fi @@ -605,7 +605,7 @@ send_twilio() { httpcode=$(${curl} -X POST --write-out %{http_code} --silent --output /dev/null \ --data-urlencode "From=${twilionumber}" \ --data-urlencode "To=${user}" \ - --data-urlencode "Body=${title}${message}" \ + --data-urlencode "Body=${title} ${message}" \ -u "${accountsid}:${accounttoken}" \ "https://api.twilio.com/2010-04-01/Accounts/${accountsid}/Messages.json") @@ -852,13 +852,14 @@ The source of this alarm is line ${src}" SENT_PUSHBULLET=$? +# ----------------------------------------------------------------------------- # send the twilio SMS send_twilio "${TWILIO_ACCOUNT_SID}" "${TWILIO_ACCOUNT_TOKEN}" "${TWILIO_NUMBER}" "${to_twilio}" "${host} ${status_message} - ${name//_/ } - ${chart}" "${alarm} Severity: ${severity} Chart: ${chart} Family: ${family} -The source of this alarm is line ${src}" +${info}" SENT_TWILIO=$?