Node Monitoring and Maintenance
- Install the application on your server
bash <(curl -Ss https://my-netdata.io/kickstart.sh)
Confirm “Y” and press Enter twice when asked during the installation.
Then you need to claim the node, through the claiming script. In Netdata Cloud Dashboard, and click on Claim Nodes. On the popup on the right, copy and paste and run the command displayed across all of your nodes.
You will see a confirmation in the node that it was successfully claimed:
On your registered e-mail you will start receiving notifications regarding anything related to your node – low RAM, low space, node is unreachable, etc. You can also set custom commands, and a I guide on those will be included below at a later time.
If your node is not discovered on the dashboard, you need to restart the process:
sudo systemctl restart netdata
docker exec otnode curl -s 'http://127.0.0.1:8900/api/latest/balance?humanReadable=true'
Here are few commands to use to maintain your node.
Option 1: Click on Payout and follow the instructions
Option 2: Payout from the node terminal
docker exec otnode curl -s -X GET http://127.0.0.1:8900/api/latest/payout?offer_id=XXXXX
Important: This command will use ETH from the Operational wallet. Due to the high GWEI, make sure you have set a “max_allowed_gas_price”: setting in your .origintrail_noderc configuration file, to limit the expenses.
Alternatively you can obtain a list of offers you can payout (however this includes all offers including those that just started, which could payout a very minimal amount) (replace XXXX below with your node ID):
curl -X GET "https://othub-api.origin-trail.network/api/nodes/DataHolders/XXXXXXXXXXXX" -H "accept: text/plain" | grep -o -P '(?<=OfferId":").*?(?=","FinalizedTimestamp")'
apt update && apt upgrade -y
docker logs --since 48h otnode | more
docker restart otnode
sudo swapoff /swapfile
sudo rm /swapfile
Then remove the following from the file and save it: /swapfile swap swap defaults 0 0
Alternatively you can use this version which has the SSL version disabled:
Open the bash console inside your node with the following command:
docker exec -it otnode bash
Go to the data section of your node:
Open the SQLite shell of your database
Add a 30 minute period (in milliseconds) for all payout commands
update commands set period=1800000 where name="dhPayOutCommand";
Exit the SQLite shell and the container by pressing Control+D twice.
Restart the node
docker restart otnode
Due to frequent node access to the database, some commands listed above might fail, but you can just run the command again.