@cryptotaxi247 / netdata-1 / commits / cac974029

telegram notification show the host; fixes #1072

Costa Tsaousis committed Oct 11, 2016 at 12:59 UTC cac974029efb1c4942c9a81cd60584e64634cc4f
1 file changed +2 -6
plugins.d/alarm-notify.sh
+2 -6
@@ -651,15 +651,11 @@ SENT_PUSHOVER=$?
651 # send the telegram.org message
652
653 # https://core.telegram.org/bots/api#formatting-options
654 -telegram_message="<b>${severity}"
655 -[ "${status_message}" != "recovered" ] && telegram_message="${telegram_message}, ${status_message}"
656 -telegram_message="${telegram_message}
657 -${chart} (${family})</b>
654 +send_telegram "${TELEGRAM_BOT_TOKEN}" "${to_telegram}" "${host} ${status_message} - <b>${name//_/ }</b>
655 +${chart} (${family})
656 <a href=\"${goto_url}\">${alarm}</a>
657 <i>${info}</i>"
658
661 -send_telegram "${TELEGRAM_BOT_TOKEN}" "${to_telegram}" "${telegram_message}"
662 -
659 SENT_TELEGRAM=$?
660
661 # -----------------------------------------------------------------------------