This is tested by me on Ubuntu 20.04 LTS with Redis and Telegram Bot enabled
You will need to run this on an indempendent server (VPS) so it can monitor your node!!
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install python3.6
sudo apt-get install python3-pip
pip3 install pipenv
python3 --version
pip3 --version
pipenv --version
Follow the instructions here to create a tg bot
https://github.com/mohammedpatla/panic_cosmos/blob/master/doc/INSTALL_TELEGRAM.md
Follow the instructions here to install redis DB on your server
https://github.com/mohammedpatla/panic_cosmos/blob/master/doc/INSTALL_REDIS.md
Clone the Repo from
git clone https://github.com/mohammedpatla/panic_cosmos.git
To set up your config files
Navigate to :
cd ~/panic_cosmos/config
-
nano example_user_config_main.ini
Make sure you added Reddis Password if you set one and change it to
true
,Add Telegram API token and Chat ID (that you got from the setup) on both sections and changed them to
true
Then rename it to user_config_main.ini using
mv example_user_config_main.ini user_config_main.ini
-
nano example_user_config_nodes.ini
You have to enable all your nodes you want to monitor
Confirm you added your RPC Address
<your IP>:26657
Do not cahnge the Bootstarap RPC address as that will confirm if your node is up and running (IF you have another validators RPC address you trust, you can add that address)
Then rename it to user_config_nodes.ini using
mv example_user_config_nodes.ini user_config_nodes.ini
-
nano example_user_config_repos.ini
If you want you can Add Repositorys to monitor or just set them to false
Then rename it to user_config_repos.ini using
mv example_user_config_repos.ini user_config_repos.ini
cd ~/panic_cosmos
pipenv sync
pipenv run python run_alerter.py
If you want to run this as a Linux Service you can find it in the original detailed docs (This is untested with my version) Running P.A.N.I.C as a service on Linux
If Everything was set right then you should get this output:
Enabled alerting channels (general): ConsoleChannel, LogChannel, TelegramChannel
Enabled alerting channels (periodic alive reminder): ConsoleChannel, LogChannel, TelegramChannel
Trying to connect to <your-IP>/status
Success.
Trying to connect to http://bootstrap.mainnet.enigma.co:26657/status
Success.
Node monitor (<Moniker>) started.
Network monitor (secret-1) started with 1 validator(s) and 1 full node(s).
Telegram commands started.
Periodic alive reminder started.
Click Here Design and Features
Click here Original Installation Instructions
-
Original Creater : Simply VC @ All rights Reserved
-
Modified By : Mohammed Patla
SCRT love - secret1rfnmcuwzf3zn7r025j9zr3ncc7mt9ge5tcsd5h
BTC - bc1qrf32mrehryusdszuzxjrcd7nc6sqh5x7hchhrc
Validator - mtprock