To monitor our validator we can use solana-watchtower. For greater reliability, a separate, simple VPS server is required to run this monitor.
As a notification frontend we will use Telegram.
Install solana on your VPS
sh -c "$(curl -sSfL https://release.solana.com/v1.18.22/install)"To create a systemd unit that will run solana-watchtower type:
sudo vi /etc/systemd/system/xolana-watchtower.serviceand paste the content of xolana-watchtower.service.
Replace all <fields> with proper values.
For <user> use your local username of the user under which you wnat to run the monitor. In most cases you will have the same user in User field and ExecStart of systemd unit.
To get bot-token create Telegram Bot by chatting with @BotFather
To get chat-id use this tutorial: How to get Telegram Bot Chat ID
You can use direct chat with your bot or you can add your bot to a group. In this case adding an admin permision to this bot may be needed.
Enable and start services:
sudo systemctl daemon-reload
sudo systemctl enable xolana-watchtower.service
sudo systemctl start xolana-watchtower.serviceTo view monitor logs use:
journalctl -fu xolana-watchtower.serviceYou can set specific tresholds and other option. To check this, use solana-watchtower --help.