Skip to content

rorry47/tamagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

tamagent

BASH monitoring server and alert in Telegram


Install

  1. Create folder:
mkdir /usr/local/tamagent
  1. Create file tamagent.sh:
nano /usr/local/tamagent/tamagent.sh
  1. Write the data from the repository to the file.

  2. Fill in the following variables with your data:

#VARIABLES
ID_USER="XXXXXXX" # ID USER in TELEGRAM
TOKEN_BOT="XXXXXXX:XXXXXXXXXXXXXXXXXXXX" # TOKEN BOT in TELEGRAM

#LIST SERVICES []
SERVICES_LIST='
wg-crypt-wg0
openvpn
sshd
postgres
nginx
docker-proxy
fail2ban-server
node
'
  1. Create service file:
nano /lib/systemd/system/tamagent.service
  1. Write the data from the repository to the file.

  2. Turn on the service:

systemctl daemon-reload
systemctl enable tamagent.service
systemctl start tamagent.service

Done!

About

BASH monitoring server and alert in Telegram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages