This repository contains a healthcheck script for Berachain with integrated support for Healthchecks.io.
- The script performs a series of health checks (check both consensus and execution states and reference diff).
- Reports the status to Healthchecks.io using your unique check URL.
- Use as a cron job or integrate into CI/CD pipelines for automated monitoring.
- Create your project and obtain an API key from https://healthchecks.io/
- Download the script:
wget -O $HOME/bera_healthcheck.sh https://raw.githubusercontent.com/NodesGuru/berachain-healthcheck/refs/heads/main/bera_healthcheck.sh
- Set up your Healthchecks.io check URL in the script (edit the
HC_API_KEY
field with the key from healthchecks.io) and optionally set up your actual ports for your nodes (HC_BEACON_STATUS_URL
andHC_ETH_TARGET_NODE
):
nano $HOME/bera_healthcheck.sh
- Execute the script or schedule it with a cron job:
crontab -e
# Add this to the end
*/1 * * * * /bin/bash $HOME/bera_healthcheck.sh >> $HOME/bera_healthcheck.log
- Bash
- Consensus (
beacond
) node - Execution (
geth
/reth
/ etc) node - https://healthchecks.io/ key