Although we have #53 we need some quick and dirty solution for monitoring ASAP.
The easiest solution I see is to make a bash script that gets the current block height and the last pool box height from /poolStatus endpoint and checks if it's no more than the epoch length blocks behind. It should return a non-zero exit code if it's falling behind.
This script could then be used to send notifications, alerts, etc. I personally would like to push an alert to PagerDuty, so I'll make a second script for that.
Although we have #53 we need some quick and dirty solution for monitoring ASAP.
The easiest solution I see is to make a bash script that gets the current block height and the last pool box height from
/poolStatus
endpoint and checks if it's no more than theepoch
length blocks behind. It should return a non-zero exit code if it's falling behind.This script could then be used to send notifications, alerts, etc. I personally would like to push an alert to PagerDuty, so I'll make a second script for that.