File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ Edit your user and enter your Group/Chat-ID
186
186
187
187
## TROUBLESHOOTING
188
188
For more details and troubleshooting with parameters please check:
189
- * Check_MK notification logfile: /omd/sites/{sitename}/var/log/notify.log
189
+ * Check_MK notification logfile: ``` tail -f /omd/sites/{sitename}/var/log/notify.log```
190
190
* [ Check_MK Manual > Notifications > Chapter: 11.3. A simple example] ( https://docs.checkmk.com/latest/en/notifications.html#H1:Real )
191
191
* [[ Feature-Request] Multiple Alert Profiles] ( https://github.com/filipnet/checkmk-telegram-notify/issues/3 )
192
192
Original file line number Diff line number Diff line change @@ -102,11 +102,12 @@ MESSAGE+="%0AIPv4: ${NOTIFY_HOST_ADDRESS_4} %0AIPv6: ${NOTIFY_HOST_ADDRESS_6}%0A
102
102
MESSAGE+=" ${NOTIFY_SHORTDATETIME} | ${OMD_SITE} "
103
103
104
104
# Send message to Telegram bot
105
- response=$( curl -S -s -q -X POST " https://api.telegram.org/bot${TOKEN} /sendMessage" -d chat_id=" ${CHAT_ID} " -d text=" ${MESSAGE} " )
105
+ response=$( curl -S -s -q --connect-timeout 5 - X POST " https://api.telegram.org/bot${TOKEN} /sendMessage" -d chat_id=" ${CHAT_ID} " -d text=" ${MESSAGE} " )
106
106
if [ $? -ne 0 ]; then
107
107
echo " Not able to send Telegram message" >&2
108
108
echo $response >&2
109
109
exit 2
110
110
else
111
+ echo " Telegramm message send sucessfull" >&2
111
112
exit 0
112
113
fi
You can’t perform that action at this time.
0 commit comments