Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Latest commit

 

History

History
78 lines (66 loc) · 1.48 KB

README.md

File metadata and controls

78 lines (66 loc) · 1.48 KB

OT-NodeWatch

IMPORTANT : This repository does not support docker nodes

You must follow the instructions on OT-Settings repository before proceeding here

A collection of scripts to monitor your OriginTrail Nodes

All monitor scripts will notify you through Telegram anytime an issue arises.

For instance, if bid_check.sh doesn't see your node bid on a job within 1 hour, it will send you a Telegram message.

This collection includes:

bid_check:

  • Checks the logs for "Accepting" which indicates a bid. Checks every hour by default (changeable).
  • Checks the logs for "ve been chosen" which indicates an awarded job. Checks every hour by default (changeable).

disk_check:

  • Checks the disk space used every day by default (changeable).

Manual installation:

Log into server as root.

apt install jq
cd
git clone https://github.com/calr0x/OT-NodeWatch.git

bid_check:

Default check is every hour.

crontab -e

Press '1' (if asked) to select nano as the editor.

0 * * * * /root/OT-NodeWatch/bid_check.sh
ctrl+s 
ctrl+x

disk_check:

Default check is once a day.

crontab -e

Press '1' (if asked) to select nano as the editor.

0 0 * * * /root/OT-NodeWatch/disk_check/disk_check.sh
ctrl+s
ctrl+x


Read the commented info inside each script for more details

nano /root/OT-NodeWatch/bid_check.sh
nano /root/OT-NodeWatch/disk_check.sh

when done,

ctrl+x