MyTonCtrl Alert Bot
Overview
MyTonCtrl Alert Bot is a tool that allows you to receive notifications about the status of your node via Telegram Bot. It is a part of the MyTonCtrl toolset and is available for both validators and liteservers.
Setup
To set up the MyTonCtrl Alerting Bot, follow these steps:
Prepare bot
- Go to https://t.me/BotFather and create bot using command
/newbot. After that, you will receive aBotToken. - Go to your bot and press the
Startbutton. This will allow you to receive messages from the bot. - If you want to receive messages from the bot in a group (chat), add the bot to the group and give it the necessary rights (make group admin).
- Go to https://t.me/getmyid_bot and press the
Startbutton. It will reply you with yourChatId, use that if you want to receive messages directly to your Telegram account. If you want to receive messages in a group, add the bot to the group, and it will reply with theChatIdof the group.
Enable the Alert Bot
-
Enable
alert-botvia commandMyTonCtrl> enable_mode alert-bot -
Run command
MyTonCtrl> set BotToken <BotToken> -
Run command
MyTonCtrl> set ChatId <ChatId> -
Check that the bot is able to send messages by running the command
MyTonCtrl> test_alertYou should receive a message from the bot in your Telegram account or chat.
Supported Alerts
The MyTonCtrl Alert Bot supports the following alerts:
- Validator's wallet balance is low
- Node's db usage is more than 80%
- Node's db usage is more than 95%
- Validator had low efficiency in the round
- Node is out of sync
- Node is not running (service is down)
- Node is not answering to ADNL connection
- Validator created zero blocks for past 6 hours
- Validator has been slashed in the previous validation round
En(dis)bling Alerts
To enable or disable alerts, use the following commands:
- To enable an alert, use the command
enable_alert <alert-name>. - To disable an alert, use the command
disable_alert <alert-name>. - To check the status of alerts, use the command
list_alerts.