This telegram bot can help you monitor the network availability of important hosts. Or it can be used to check for power availability.
The bot is deployed in a docker container, which allows you to have several different instances independent of each other, to check different network hosts, with a different set of custom phrases for each individual instance
-
Install Docker
-
Download and edit
compose.yaml
file. Enter the following information into it:- token - bot API token
- chat_id - Channel or Chat id
- host_title - Host name
- host_ip - Host IP or domain name
- timeout - Host availability check frequency (in seconds)
- host_up_msg - The message you will receive in Telegram if the host becomes available
Example:
f"Host {host_title} ({host_ip}) is UP"
- host_down_msg - The message you will receive in Telegram if the host becomes unavailable
Example:
f"Host {host_title} ({host_ip}) is DOWN"
-
Deploy the docker container:
docker compose up -d