Interesting thing that happens upon restart of the virtual machine si:
..@server:~$ sudo systemctl status checkmk-telegram-plus-nadzor
● checkmk-telegram-plus-nadzor.service - CheckMK Telegram Plus Service
Loaded: loaded (/etc/systemd/system/checkmk-telegram-plus-nadzor.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-06-05 10:10:53 CEST; 37min ago
Process: 2194 ExecStart=/usr/sbin/runuser -l nadzor -c cd /omd/sites/nadzor/local/share/checkmk-telegram-plus && /omd/sites/nadzor/bin/python3 /omd/sites>
Main PID: 2194 (code=exited, status=1/FAILURE)
Jun 05 10:10:53 server systemd[1]: checkmk-telegram-plus-nadzor.service: Main process exited, code=exited, status=1/FAILURE
Jun 05 10:10:53 server systemd[1]: checkmk-telegram-plus-nadzor.service: Failed with result 'exit-code'.
Jun 05 10:10:53 server systemd[1]: checkmk-telegram-plus-nadzor.service: Scheduled restart job, restart counter is at 5.
Jun 05 10:10:53 server systemd[1]: Stopped CheckMK Telegram Plus Service.
Jun 05 10:10:53 server systemd[1]: checkmk-telegram-plus-nadzor.service: Start request repeated too quickly.
Jun 05 10:10:53 server systemd[1]: checkmk-telegram-plus-nadzor.service: Failed with result 'exit-code'.
Jun 05 10:10:53 server systemd[1]: Failed to start CheckMK Telegram Plus Service.
Interesting feature
It shows my attempts to use bots but failed to authenticate.
However, as I remember - there was no response to my authenticating request…
NO - I use separate keys as generated for each bot differently.
I just wanted to let you know that the bot is now multilingual (as some have requested). At the moment only very small parts are translated and this feature is still experimental. Every language except English can lead to longer response times and possible wrong output. Texts coming from CheckMK are not translated at all to prevent misinformation.
I will try to expand this feature in the future depending on the experience reports achieving a 100% translation in the future, but to start with it is now like this.
Currently, google Translate is still used for the translation. I will try to use a better translation model like Deepl in the future, but this will only be possible as long as it can remain free of charge, and this is still quite difficult to realise with Deepl.
which revealed that the old API KEY has remained after the update.
File "/opt/omd/sites/chekmkfree1/local/share/checkmk-telegram-plus/telegram/_bot.py", line 546, in initialize
raise InvalidToken(f"The token `{self._token}` was rejected by the server.") from exc
telegram.error.InvalidToken: The token `5917540767:nnnkEaZ5cpwttTrtndL_MKkT8AKwODIbcAA` was rejected by the server.
Hence I have uninstalled the plugin and rm -r /omd/sites/<omd_site_name>/local/share/checkmk-telegram-plus, which enabled me to do the successfull “first install”.
From there all went smooth and am now running three separate bots for as many sites
However - I have noticed that for the use of a bot to query the CMK - the notifications does not have to be configured and (for me) it does not work if configured (no notifications to the bot is delivered automaticaly).