Monitoring
This simple script will monitor your node and send alert to your telegram chat/group when your bioauth is about to end or already in inactive state.
Installation
Prepare Telegram API Key
go to Telegram, search for @BotFather
type in /start
to interact with @BotFather and create your bot with /newbot
command
after that type /token
to get your API Key
Install script
Copy and save this script below with .sh format in your Humanode server
Replace <YOUR_API_KEY>
with the key you get from previous step
For telegram_group
you can change it to your own chat/group.
Replace telegram_user_tag
with your own username
After that, don't forget to give execute permission by using this command below
Set cronjob
You need to install the cronjob to make this alert work.
Open cron editor by executing this:
After that, put this line into the last line of crontab and then save it
This cron will run the script every 5 minutes
Remember to replace /path/to/your/script.sh
to your actual script location
Last updated