Skip to content

Bot that sends information about hardware to Telegram Chat.

Notifications You must be signed in to change notification settings

nominori-dev/TGMonitoringBot

Repository files navigation

Server Monitoring Bot

Cross-platform bot for monitoring your server and sending reports to chats (currently supported only telegram).

This project is under BDV Foundation.

Overview

Current features:

  • Fetching information about system
  • Message templating
  • CLI Args
  • Sending messages to telegram
  • Background jobs
  • Logging via Kotlin-Logging (Logback backend)

Planned features:

  • More templates
  • Discord/Slack support

Environment Variables and Set Up

To run this project, you will need to add the following environment variables to your operating system (before launch)

TG_CHAT_ID - Chat ID where bot send reports

TG_URL - URL For sending messages (https://api.telegram.org/botID:AccessToken/sendMessage)

Then:

java -jar TGMonitoringBot-<version>.jar --interval 30

By default TimeUnit set to MINUTES so Bot will send report every 30 minutes. If you want to change unit, for example to seconds just do like this:

java -jar TGMonitoringBot-<version>.jar --interval 30 --unit SECONDS

Full list of units you can find by providing --help option:

java -jar TGMonitoringBot-<version>.jar --help

Authors

Project is under BDV Foundation umbrella

About

Bot that sends information about hardware to Telegram Chat.

Resources

Stars

Watchers

Forks

Languages