Standalone cron-based monitoring and alerting for Solana validators
Project description
solscope-validator-watcher
Cron-friendly Solana validator monitoring you can run on your own validator host. It reproduces the alerting that SolScope provided as a hosted service, with no server or database required: a config file, a state file for cooldowns, and a one-minute cron job.
It ships with a full-screen terminal UI (built on Textual)
for managing multiple validators — each with its own watchers and notification
channels — plus a non-interactive run-once command for cron.
Watchers
| Watcher | What it checks |
|---|---|
sfdp_version |
Your node's version against the SFDP required minimum (agave_min_version from api.solana.org). |
software_outdated |
Your node's version against the latest Agave release on GitHub (anza-xyz/agave, matched by Mainnet/Testnet release name). |
delinquent |
Whether your vote account is reported delinquent via getVoteAccounts. |
Each watcher has its own cooldown_minutes so a per-minute cron won't spam you while
a condition persists. Cooldown state is tracked in a JSON state file alongside the config.
Notification channels
Configure any combination under notifications:
slack_webhooks— Slack incoming webhook URLsdiscord_webhooks— Discord webhook URLswebhooks— generic webhooks ({"text": "..."}POST body)ntfy_topics— ntfy.sh topicspagerduty_integration_keys— PagerDuty Events API v2 routing keystwilio— Twilio SMS. You must supply your own Twilio sending source (account_sid,auth_token, and a verifiedfrom_phone) plus the destinationto_phones. Unlike the hosted SolScope service, there is no shared sender — SMS only works if you provide your own Twilio account.smtp_email— SMTP email (host,port,username,password,from_email,to_emails,use_tls)
Install
Install into a virtual environment. This is the recommended approach everywhere,
and on modern Debian/Ubuntu (PEP 668 "externally-managed-environment") it is
required — a system-wide pip install will be refused.
# Create a venv (one-time). Anywhere is fine; this keeps it with the config.
python3 -m venv ~/.solscope-validator-watcher/venv
# Activate it, then install
source ~/.solscope-validator-watcher/venv/bin/activate
pip install solscope-validator-watcher
On Ubuntu you may first need
sudo apt install python3-venv(andpython3-pip).
After activating the venv, the solscope-validator-watcher command is on your
PATH. You don't need to keep the venv activated for cron — see
Run (cron), which records the venv's Python automatically.
If you prefer not to manage a venv yourself, pipx does
it for you:
pipx install solscope-validator-watcher
From source (for development)
python3 -m venv .venv && source .venv/bin/activate
pip install -e .
Configure (the TUI)
The TUI is the primary entrypoint. Just run the command with no arguments:
solscope-validator-watcher
By default everything lives under ~/.solscope-validator-watcher/
(config.json, the cooldown state file, and watcher.log), so no root access is
required. Use --config <path> to point at a different file.
In the dashboard you can:
- See every configured validator at a glance — cluster, identity, which watchers are enabled, and which notification channels will alert.
- Press
ato add a validator, or Enter on a row to edit it. - In the editor: set cluster (or a custom RPC URL), identity/vote keys, toggle each
watcher and its cooldown, and fill in notification channels.
Ctrl+Ssave ·Ctrl+Tsend test notifications ·Ctrl+Ddelete ·Esccancel- Test RPC button verifies connectivity to the endpoint before you save.
- Press
cto install the one-minute cron job that runs the watchers. - Press
qto quit.
Prefer to edit by hand? Copy config.example.json and edit it.
Custom RPC endpoint
By default each validator uses the public endpoint for its cluster
(https://api.<cluster>.solana.com). Set a per-validator rpc_url to use your own RPC —
the cluster value is still used for the version checks. Leave it null/blank for the
public endpoint.
Run (cron)
The watchers run via the non-interactive run-once command, which the TUI's "install
cron" action wires up for you. To do it manually (from inside the activated venv):
solscope-validator-watcher run-once # run all validators once (used by cron)
solscope-validator-watcher install-cron # install the one-minute cron job
cron does not inherit your activated virtualenv, so install-cron bakes the
absolute path of the current Python interpreter into the cron line. As long as
you run install-cron (or press c in the TUI) from inside the venv where you
installed the package, the cron job will use that same venv automatically — no
activation needed at run time. The installed line looks like:
* * * * * /home/solana/.solscope-validator-watcher/venv/bin/python -m validator_watcher run-once --config "..." >> "..." 2>&1
install-cron accepts --config, --python-bin (override the interpreter), and
--log-file.
Recommended: high-availability setup
A monitor is only useful if it's running when something breaks — so don't rely on a single host to watch itself. Because one config can hold multiple validators, the most resilient setup is:
- Add both your mainnet and testnet validators to the config (in the TUI, press
atwice). - Install the watcher + cron on both hosts, each running that same config.
That way every validator is observed by two independent hosts. If one host goes down (the exact moment you most want an alert), the other host is still checking it and will fire the notification. The per-watcher cooldowns keep the two hosts from double-alerting you into noise.
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solscope_validator_watcher-0.1.1.tar.gz.
File metadata
- Download URL: solscope_validator_watcher-0.1.1.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd22faa221e3eba34328258229422d6e213ef097b953fb4715ed83d1848fe154
|
|
| MD5 |
de969254670749bc252afed6490a2877
|
|
| BLAKE2b-256 |
8325eb353da171176fa5ac5241ff86e5fc0f781f111e5557ac23042c984e41b5
|
File details
Details for the file solscope_validator_watcher-0.1.1-py3-none-any.whl.
File metadata
- Download URL: solscope_validator_watcher-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39a710502fe03918d8e078af55c1f1e3d7dcdee8aa38c433e003f65a359ee8d0
|
|
| MD5 |
cd621ba7cb4af6758144dec53abdf569
|
|
| BLAKE2b-256 |
bdfc24086f63654b17be2b3202c5a872c86df2f09c0b9a934751e5667b430d17
|