Node Monitor is an open source tool for monitoring Pocket nodes and alerting node administrators when certain issues arise. The current version monitors the node’s block height. If the block height is behind by more than a specified number, Node Monitor will send an email notification to one or more defined recipients. Future versions will also support monitoring other metrics such as disk, CPU, and memory usage.
To set up notification you'll need a sendgrid api key.
See documentation on how to set up an API key here.
Log in into your node using ssh
ssh <hostname>
You can find the hostname by running
hostname
You will need to log in as root to download and execute the script
Change to root user by
su
Download and excecute the script from github Use wget to download the script and set up the blockheight service
bash <(wget -q https://raw.githubusercontent.com/dabblelab/pokt-node-monitor/dev/blockheight.sh -O -)
This is the email address that will receive the notification when the node falls behind by a specific number of blocks
This is the email address that will send the notifications when the node falls behind. NB:- This must be the email configured with sendgrid account.
This is the name of the email sender , it could be the name of the node.
This is the subject of the email , it could something to make it easier for you to identify the node generating the email.
This is the minimum number of blocks that if the node falls behind,the blockheight service will start sending notifications. This service starts sending notifications if the service falls behind by the configured blocks. The default is 4 blocks also, if the user chooses any figure below 4 blocks the service automatically defaults to 4 blocks. Anything above 4 the service sets the figure as the user preference for the block threshold.
See how to enter parameters below
The confirmation email looks like in below image
After a successful installation you'll recieve an email with the hostname and IP address of the node showing that it's successfully configured.