From 6a2eaec670dc4e427e927821eed4a64a0bfb75d5 Mon Sep 17 00:00:00 2001 From: Tobias Wiese Date: Sun, 10 Sep 2023 18:28:48 +0200 Subject: notifications: Simplify telegram message format Telegram notifications used to use the same message format as Mail notifications. This is not the most ideal format for display in the Telegram client. This changes the message in a way, that important information are in the first line for display in notifications and removes some not so important information. --- scripts/telegram-host-notification.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'scripts/telegram-host-notification.sh') diff --git a/scripts/telegram-host-notification.sh b/scripts/telegram-host-notification.sh index 5d42709..c550f5d 100755 --- a/scripts/telegram-host-notification.sh +++ b/scripts/telegram-host-notification.sh @@ -39,14 +39,9 @@ done ## Build the notification message NOTIFICATION_MESSAGE=`cat << EOF -***** Host Monitoring on $ICINGA2HOST ***** +[$HOSTSTATE] $HOSTDISPLAYNAME -$HOSTDISPLAYNAME is $HOSTSTATE! - -Info: $HOSTOUTPUT - -When: $DATE -Host: $HOSTNAME +$HOSTOUTPUT EOF ` -- cgit v1.2.3