Skip to content

Commit

Permalink
Add omd site name to output
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnet committed Sep 25, 2021
1 parent 8cd6b7c commit 09789de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_mk_telegram-notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ else
MESSAGE+="${NOTIFY_HOSTOUTPUT}%0A"
fi
MESSAGE+="%0AIPv4: ${NOTIFY_HOST_ADDRESS_4} %0AIPv6: ${NOTIFY_HOST_ADDRESS_6}%0A"
MESSAGE+="${NOTIFY_SHORTDATETIME}"
MESSAGE+="${NOTIFY_SHORTDATETIME} | ${OMD_SITE}"

# Send message to Telegram bot
curl -S -X POST "https://api.telegram.org/bot${TOKEN}/sendMessage" -d chat_id="${CHAT_ID}" -d text="${MESSAGE}"
Expand Down

0 comments on commit 09789de

Please sign in to comment.