I wanted to share my work on a Cacti
template for monitoring mining pools (BTC Guild and Slush are currently supported). The templates (and included scripts) leverage the mining pool's JSON feeds to generate reasonably pretty graphs for the health of your account, worker (miner) performance and overall pool performance (if the pool supports this). With Cacti's PIA and the THold plugin you could take this further and define alert thresholds to notify you of a change if anything falls out of tolerance.
Unlike some of the pool monitoring services out there, this is entirely free. However, if you feel so inclined, donations are much appreciated and help encourage the development of additional features and support for more pools. With a little effort, you too can set up your own monitor to keep an eye on all your miners and the pools they use using these templates.
Here are a few teaser graphs from my miners:
Worker Hash Rate (OpenCL)
Worker Hash Rate (Total all workers)
Worker Last Share (OpenCL)
Worker Last Share (Total all workers)
Worker Score (OpenCL)
Worker Score (Total all workers)
Worker Shares (OpenCL)
Worker Shares (Total all workers)
Pool PPS Rate
Pool PPS Rate (NMC)
24 Hour Rewards
24 Hour Rewards (NMC)
Paid Rewards (NMC)
Total Rewards (NMC)
Unpaid Rewards (NMC)
Worker Hash Rate
Worker Last Share
Worker Shares (NMC)
Worker Shares Since Reset
Worker Shares Since Reset
- v0.07 5/8/2012
Major rework for comprehensive support of the new BTC Guild PPS API and simplification of the script. Required nearly all related Cacti templates to be reworked as well. Added NMC stats. Removed Pool stats as there is no API support by BTCGuild for pool stats anymore. At the time of writing, BTC Guild only allows one API connection per 60 seconds, so memcached is essentially required now.
- v0.06 10/24/2011
Initial support of BTC Guild following their move to PPS. Worker Cumulative Total, Worker Last Share, Worker Reset Shares and Worker Total are not currently working properly and more work is needed to correct this.
Removed pool and worker round stats for BTC Guild as these are no longer supported in the API.
- v0.05 7/14/2011
Added 24 hour totals now that this has been added to the BTC Guild JSON. Minor bugfix to not blow up when we "never" in last_share responses. Added Worker Last Share.
- v0.04 7/6/2011
Added support for Slush's pool. Minor bugfixes for worker indexing in BTC Guild script after the addition of worker totals. Added more specific memcached namespace to allow multiple accounts to be monitored from the same Cacti instance sharing memcached. Added simple check for when the API JSON gives us null.
- v0.03 7/4/2011
Added total all workers (sum of all workers) to script as this is lacking in the API JSON. Added the following graph templates: Worker Reset, Worker Cumulative Total, Blocks Found and Payouts.
- v0.02 6/29/2011
Added simple JSON caching via memcached resulting in big performance boost:
Before -> SYSTEM STATS: Time:114.1648 Method:spine Processes:2 Threads:4 Hosts:12 HostsPerProcess:6 DataSources:159 RRDsProcessed:105
After -> SYSTEM STATS: Time:19.5116 Method:spine Processes:2 Threads:4 Hosts:12 HostsPerProcess:6 DataSources:159 RRDsProcessed:105
- v0.01 6/28/2011
First working version. No JSON query caching support (Slow!).