Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 2.74 KB

File metadata and controls

57 lines (40 loc) · 2.74 KB

Website | Discord | Telegram

100$ Credit Free VPS for 2 Months(DigitalOcean)

Source Telegram Alarm Installation Guide

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:

  1. Create telegram bot via @BotFather, customize it and get bot API token (how_to).
  2. Create at least 2 groups: alarm and log. Customize them, add your bot into your chats and get chats IDs (how_to).
  3. Connect to your server and create status folder in the $HOME directory with mkdir $HOME/status/.
  4. In this folder you have to create cosmos.sh file with nano $HOME/status/cosmos.sh. You don't have to do any edits on cosmos.sh file, it's ready to use.

You can find cosmos.sh in this repository.

  1. In this folder you have to create cosmos.conf file with nano $HOME/status/cosmos.conf. Customize it.

You can find cosmos.conf in this repository.

  1. Also you have to create as many NAME.conf files with nano $HOME/status/NAME.conf, as many nodes you have on the current server. Customize your config files.

You can find pylons.conf.ornek and curl.md in this repository.

  1. Install some packages with sudo apt-get install jq sysstat bc -y.
  2. 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# 
  1. Create slash.sh with nano $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.

  1. Add some rules with chmod u+x cosmos.sh slash.sh.
  2. Edit crontab with crontab -e.

You can find crontab.ornek in this repository.

  1. Check your logs with cat $HOME/status/cosmos.log or tail $HOME/status/cosmos.log -f.

Referance list

Resources used in this project: