Skip to content
This repository has been archived by the owner on Feb 21, 2021. It is now read-only.

Small project used to monitor my small RaspberryPi Home Server, without SSH.

License

Notifications You must be signed in to change notification settings

joaoofreitas/telegram-server-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Server Monitor 💻

Small project that I use to monitor my small RaspberryPi server, without SSH. On any device...

How was it build? 🐍

I created this project using only Python3 and pyTelegramBotAPI with embedded bash scripting to generate the messages.

Installation

Requirements 📲

These are the following requirements:

  1. python-pip3
  2. python3
  3. pyTelegramBotAPI
Installation 🤖

I will create a bash script that will take care of all that for you. But for now you can follow the instructions below if you really want to try this up.

Stay tuned.

Configuring and running the bot 🤖

For now, you can just run the bot.py on the startup and it will be running! Run the ssh-login.py so it sends you a message on a user SSH login, so you can control who is accessing your server.

(In case you are new at this) For installing the bot use:

git clone https://github.com/joaoofreitas/telegram-server-monitor.git

cd telegram-server-monitor

Before you run the bot. You should create a bot with @BotFather and config your config.json file and put your API Token and CHATID provided. (You can see more details at https://core.telegram.org/bots)

After this you can run the bot using the following commands:

python3 bot.py

python3 ssh-login.py

To install all this, you should run the file ssh-login.py in your bash.bashrc file located in /etc/bash.bashrc. With this, the bot will send you a message on bash login each time a user logs in.

After you can create a systemctl service or what works best for you to run the bot on startup. Any questions you can message me on Twitter or open a issue here no git, I will be glad to help.

Usage 📟

After running the bot. You can access your telegram and use /start on your bot. And start messaging him! Just has easy has it gets 😎

Features and Future Updates 🚀

Features:

  1. Public IP Address Fetcher
  2. Temperature Fetcher
  3. Connected IP's list
  4. Warning message on ssh login.

Future Updates:

  1. Add an installation
  2. Performance Upgrade.

Example

1 2 3

Thank you guys for the support, as I said, feel free to chat with me about this or any other project.

About

Small project used to monitor my small RaspberryPi Home Server, without SSH.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages