Skip to content

Telegram Messenger Notifications for Linux Servers - CSF Firewall Alerts - Postfix activity reports - Low Disk Space - Systemd Failures - CPU and Memory - SSH Login. I've put this together with my knowledge and snippets from online web pages and tutorials. Happy to credit anyone quoted. Enjoy!

Notifications You must be signed in to change notification settings

w1tw0lf/telegram-system-monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INSTALL SCRIPT TESTED ON: 
DEBIAN 10 
CENTOS 7 

This script will install Telegram BOT Notifications for webservers or use on your linux laptop.
Pick one, all, or any combo of these notifications!

-------------------------------
- Postfix Activity Reports
- Low Storage Alerts 
- System Service Failure Alerts 
- CPU and Memory Alerts
- CSF LFD Firewall alerts (if you have it installed)
- SSH Login alerts (NOT WORKING ON CENTOS YET)
  If you have CSF firewall installed this option isnt needed as CSF/LFD gives SSH login alerts and much more!
-------------------------------

- You will need to run this script with root privileges using "sudo su" or logging in as root.
- You will choose an install location for the scripts (default options available).
- SSH Login alerts will install the script into your chosen location. 
  It will also add a link to trigger the script on SSH login in: 

  /etc/pam.d/sshd    (at the end of the file)
  
- SSH Login alerts option isn't needed if you are running CSF Firewall.
  CSF/LFD sends SSH, webmin login notifications along with IP blocking info etc.

>> Always have a backup of your system or try out in a testing environment<<

This project is for all to enjoy. Hoping some people will contribute more notification options, tweak etc!
If you have a testing platform and 5 minutes (thats how long it takes to install from the script 
and get notifications), be good to get more opinions on it!

DM on:
Telegram: https://t.me/joinchat/xlmtm7jVYR4yODQ0
Or discuss here! happycodinguk#1

Looking to integrate.
2FA
CPU temperature

This script is compiled with my knowledge and snippets found across forums/web pages.
Should have made a note of them really. Thanks for the snippets guys. 
If you would like a credit on this GIT, drop me a message and I'll add ya!
Better still join in and lets get some more notifications added... Or clone it and improve! 
Progress is always good.

###############################################################################################
AUTOMATIC INSTALL PROCESS
###############################################################################################
1st. Take a look over the files, always a good process for any third party installs!
There are five very small scripts.
Then there are the systemd .service and .timer files to run these.
Your single telegram config file which is for all scripts. You edit this to change to new bot!

The template and .txt files are only for the options during the install process.

For those not too familiar with GIT. You don’t need to copy all the files on here. It's not as 
complicated as it looks....

The single install.sh script will pull the files it needs during the install process!

____________________________________________________________________________________________________
____________________________________________________________________________________________________

AUTOMATIC INSTALL:

In terminal:
 
user@linux:~$ wget https://raw.githubusercontent.com/happycodinguk/telegram-system-monitor/main/install.sh
user@linux:~$	chmod +x install.sh
user@linux:~$	./install.sh 

____________________________________________________________________________________________________
____________________________________________________________________________________________________

If you have any issues you can manually create the file:
In a terminal window create your own install file:

user@linux:~$	nano install.sh

In any web browser open the raw install script text: 
https://raw.githubusercontent.com/happycodinguk/telegram-system-monitor/main/install.sh

Copy, then paste the text from page into nano editor!

Save.

user@linux:~$ chmod +x install.sh
user@linux:~$	./install.sh 
----------------------------------------------------------------------------------------------------

About

Telegram Messenger Notifications for Linux Servers - CSF Firewall Alerts - Postfix activity reports - Low Disk Space - Systemd Failures - CPU and Memory - SSH Login. I've put this together with my knowledge and snippets from online web pages and tutorials. Happy to credit anyone quoted. Enjoy!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%