100$ Credit Free VPS for 2 Months(DigitalOcean)
This system will alert you with telegram about jails and inactive status. Also it sends you every hour short info about your node status.
Instruction:
- Create telegram bot via
@BotFather
, customize it andget bot API token
(how_to). - Create at least 2 groups:
alarm
andlog
. Customize them, add your bot into your chats andget chats IDs
(how_to). - Connect to your server and create
status
folder in the$HOME directory
withmkdir $HOME/status/
. - In this folder you have to create
cosmos.sh
file withnano $HOME/status/cosmos.sh
. You don't have to do any edits oncosmos.sh
file, it's ready to use.
You can find
cosmos.sh
in this repository.
- In this folder you have to create
cosmos.conf
file withnano $HOME/status/cosmos.conf
. Customize it.
You can find
cosmos.conf
in this repository.
- Also you have to create as many
NAME.conf
files withnano $HOME/status/NAME.conf
, as many nodes you have on the current server. Customize your config files.
You can find
pylons.conf.ornek
andcurl.md
in this repository.
- Install some packages with
sudo apt-get install jq sysstat bc -y
. - Run
bash cosmos.sh
to check your settings. Normal output:
root@Nodeist:~/status# bash cosmos.sh
/// 2022-05-21 14:16:44 ///
pylons-testnet-3
sync >>> 373010/373010.
jailed > true.
/// 2022-05-21 14:16:48 ///
stafihub-public-testnet-2
sync >>> 512287/512287.
place >> 47/100.
stake >> 118.12 fis.
root@Nodeist:~/status#
- Create
slash.sh
withnano $HOME/status/slash.sh
, if you don't have one yet. This bash script will divide group of messages.
You can find
slash.sh.ornek
in this repository.
- Add some rules with
chmod u+x cosmos.sh slash.sh
. - Edit crontab with
crontab -e
.
You can find
crontab.ornek
in this repository.
- Check your logs with
cat $HOME/status/cosmos.log
ortail $HOME/status/cosmos.log -f
.
Resources used in this project:
- Status By Cyberomanov