Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

Dpos-Bot

This script has the function to check if your server is UP and SYNCED with the network, otherwise a notification, trough telegram (down or not synced) or trough pushbullet (server down), will be sent.

Pre-Requirements:

sudo apt-get update && sudo apt-get install jq nano curl -y
wget https://raw.githubusercontent.com/gregorst3/Dpos-Bot/master/DposScript.sh

If dpos uses an old core :

wget https://raw.githubusercontent.com/gregorst3/Dpos-Bot/master/DposScript0.9.sh

This script every 120 seconds should check if server is available and synced.

Before we start, REMEMBER: You have to whitelist the ip of the server where the bot is running into the server where the dpos-node is active. (Ex: lisk-main/config.json | shift/config.json

"api": { "enabled": true, "access": { "public": false, "whiteList": ["127.0.0.1","10.0.2.1] ← This is the bot server ip (10.0.2.1)

 

How to use this script:

nano DposScript.sh  

Modify the following:

MESSAGE="Server SERVERNAME Is not synced with the network"
MEX="Server SERVERNAME Is DOWN"
CHATID=111111
apiToken=TELEGRAMTOKEN

TITLE="ATTENTION"
ACCESS_TOKEN="PUSHBULLETTOKEN"`
Ctrl x + y

How to retrieve CHATID?

Open telegram and start @userinfobot

How to retrieve apiToken?

Open telegram and start @BotFather and follow instruction to create a bot (two or three clicks), after it will give you a token

How to retrieve ACCESS_TOKEN?

Go on https://www.pushbullet.com/#settings (Settings> Create Access token)

To start the script use

screen bash DposScript.sh

If you use it for dpos with old core (<1.0) please use DposScript0.9.sh

About

With this script you can check uptime and status of forging servers.

Resources

License

Releases

No releases published

Packages

No packages published

Languages