Skip to content
forked from apels1n/pingerbot

A small PingerBot in docker container with telegram notifications

Notifications You must be signed in to change notification settings

Ge-Per/pingerbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Configuration Steps:

  1. Install Docker

  2. 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"
  3. Deploy the docker container:

    docker compose up -d

Example Screenshot

Picture

About

A small PingerBot in docker container with telegram notifications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.1%
  • Dockerfile 21.9%