Node Monitoring Script

  • Tracks validator status: missed blocks, voting power, and sends alerts.
  • Compares block height with an external server and restarts when significantly out of sync.
  • Checks node status, restarts if unresponsive.
  • Sends alerts and status updates via Telegram.

Download namada.sh file:

cd $HOME
rm -rf $HOME/monitoring
mkdir $HOME/monitoring
cd $HOME/monitoring
wget -O namada.sh https://raw.githubusercontent.com/itrocket-team/testnet_guides/main/namada/monitoring/namada.sh
chmod +x namada.sh

Configure Telegram alerting:

Open Telegram and find @BotFather
  • Create telegram bot via @BotFather, customize it and get bot API token
  • Create the group: alarm. Customize them, add the bot in your chat and get chats IDs: how to do it
  • Open namada.sh file
change ENABLE=false to ENABLE=true

Specify your node RPC_SERVER,TELEGRAM_CHAT_IDand TELEGRAM_BOT_TOKEN:

Configure correct Namada node port - RPC_SERVER.
Customize TELEGRAM_CHAT_ID and TELEGRAM_BOT_TOKEN.
Configure BLOCK_GAP_ALARM and allow RESTART function if needed.
nano namada.sh

Create a new tmux session:

cd $HOME
tmux new -s monitoring

Start monitoring script:

Finally, start the Namada node monitoring script:

cd $HOME/monitoring
sudo /bin/bash namada.sh
If you want to connect disconnected session use:
tmux attach -t monitoring
logo
Copyright © 2024 ITRocket. All Rights Reserved.