Checkmk telegram: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=Telegram Notifications= *cat /omd/sites/<site-name>/local/share/check_mk/notifications/telegram <pre> #!/usr/bin/python # Telegram # Copyright Mathias Kettne…“) |
|||
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | =Telegram Notifications= | + | =Telegram Notifications Plugin= |
− | * | + | *https://github.com/filipnet/checkmk-telegram-notify |
+ | |||
+ | =CheckMK User config= | ||
+ | ==get telegram chat id== | ||
+ | *write the bot /start via telegram | ||
+ | *https://api.telegram.org/bot[HTTP-TOKEN]/getUpdates | ||
<pre> | <pre> | ||
− | + | {"ok":true,"result":[{"update_id":549458535, | |
− | + | "message":{"message_id":1,"from":{"id":374629384,"is_bot":false,"first_name":"Max","language_code":"de"},"chat":{"id":'374629384,"first_name":"Max","type":"private"},"date":1590572783,"text":"/start","entities":[{"offset":0,"length":6,"type":"bot_command"}]}}]} | |
− | + | </pre> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ChatID: 374629384 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | ==user conf== | ||
*Users -> edit desired User | *Users -> edit desired User | ||
*Add telegram chatid in the Pager address | *Add telegram chatid in the Pager address | ||
[[Datei:cmk_user_telegram.png]] | [[Datei:cmk_user_telegram.png]] |
Aktuelle Version vom 24. August 2021, 10:02 Uhr
Telegram Notifications Plugin
CheckMK User config
get telegram chat id
- write the bot /start via telegram
- https://api.telegram.org/bot[HTTP-TOKEN]/getUpdates
{"ok":true,"result":[{"update_id":549458535, "message":{"message_id":1,"from":{"id":374629384,"is_bot":false,"first_name":"Max","language_code":"de"},"chat":{"id":'374629384,"first_name":"Max","type":"private"},"date":1590572783,"text":"/start","entities":[{"offset":0,"length":6,"type":"bot_command"}]}}]}
ChatID: 374629384
user conf
- Users -> edit desired User
- Add telegram chatid in the Pager address