|
1 | 1 | # Check_MK Telegram notification
|
| 2 | +<img src="images/telegram_notification_example.png" alt="Telegram notification example" width="400" align="right"/> |
2 | 3 | Telegram has long been one of my real-time communication media. It is obvious to output monitoring messages for server and network components as alarm messages. There are several scripts for this on the internet, but most of them are written in Python, many of them have problems with Python3 and its libraries. Instead of spending hours and hours with Python, I decided to use a scripting language I know and write a Linux Bash script for it.
|
3 | 4 |
|
4 | 5 | The following Script is for Check_MK, I have used it exclusively with the RAW version 1.6.0_p18.
|
5 | 6 |
|
| 7 | +<!-- TOC --> |
| 8 | + |
| 9 | +- [Check_MK Telegram notification](#check_mk-telegram-notification) |
| 10 | + - [REQUIREMENTS](#requirements) |
| 11 | + - [INSTALLATION](#installation) |
| 12 | + - [CHECK_MK CONFIGURATION](#check_mk-configuration) |
| 13 | + - [LICENSE](#license) |
| 14 | + |
| 15 | +<!-- /TOC --> |
| 16 | + |
6 | 17 | ## REQUIREMENTS
|
7 | 18 | In order for Check_MK to send alerts (notifications) to the Telegram Messenger, we need
|
8 | 19 |
|
@@ -51,7 +62,21 @@ Now you can create your own alarm rules in Check_MK.
|
51 | 62 |
|
52 | 63 | ```WATO → Notifications → New Rule → Notification Method → Push Notification (using Telegram)```
|
53 | 64 |
|
54 |
| -No further settings are required for this. |
| 65 | +First create a clone of your existing mail notification rule |
| 66 | + |
| 67 | +<img src="images/global_notification_rules_create_clone.png" alt="Create clone" width="600"/> |
| 68 | + |
| 69 | +Change the description and select "Push Notification (by Telegram)", no further settings are required for this. |
| 70 | + |
| 71 | +<img src="images/create_new_notification_rule_for_telegram.png" alt="Adjust settings" width="600"/> |
| 72 | + |
| 73 | +If everything was ok, you will see your new Notification Rule afterwards |
| 74 | + |
| 75 | +<img src="images/notification_configuration_change.png" alt="Final result" width="600"/> |
| 76 | + |
| 77 | +To activate it you have to press "1 Change" and "Activate affected" |
| 78 | + |
| 79 | +<img src="images/activate_affected.png" alt="Activate changes and commit" width="100"/> |
55 | 80 |
|
56 | 81 | ## LICENSE
|
57 | 82 | checkmk-telegram-notify and all individual scripts are under the BSD 3-Clause license unless explicitly noted otherwise. Please refer to the LICENSE
|
0 commit comments