Validator Alert Scripts
我们提供了免费的电话告警服务,这是一个简单但有效的监控脚本,如果你的验证器发生异常,无法获取到rpc数据或者区块高度落后,它会立即向您的电话发送告警。
We provide a free phone alert service, which is a simple but effective monitoring script. If your validator fails, fails to obtain RPC data, or lags behind in block height, it will immediately send an alert to your phone.
mkdir /scripts
wget -O /scripts/validator_alert.py https://kubenodexyz.oss-us-west-1.aliyuncs.com/validator_alert.py你需要修改第13行和第31行,用你自己的rpc地址和电话号码替换。
You need to modify lines 13 and 31, replacing the RPC address and phone number with your own.
我们建议你把它加入crontab定时服务,每分钟检查一次。
We recommend that you add it to your crontab scheduler and check it every minute.
crontab -e
*/10 * * * * /usr/bin/python3 /scripts/validator_alert.py每个电话号码每天的免费额度是10次,你应该维护好验证器,避免发生多次告警。
The free quota for each phone number is 10 times per day. You should maintain the validator to avoid multiple alarms.
Last updated