Hi folks,
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:
Slush's Pool
User Rewards
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2FSlush%2FSlush-User-Rewards.png&t=665&c=oP_tuJw7arLZwA)
Worker Hash Rate (OpenCL)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2FSlush%2FSlush-Worker-Hash-Rate-OpenCL.png&t=665&c=fvj2XlQiRULm_A)
Worker Hash Rate (Total all workers)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2FSlush%2FSlush-Worker-Hash-Rate-total.png&t=665&c=WT0Ix0eDupgRDg)
Worker Last Share (OpenCL)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2FSlush%2FSlush-Worker-Last-Share-OpenCL.png&t=665&c=xCjGFmk_Z4SPdw)
Worker Last Share (Total all workers)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2FSlush%2FSlush-Worker-Last-Share-total.png&t=665&c=3SXcZb8hBtepRw)
Worker Score (OpenCL)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2FSlush%2FSlush-Worker-Score-OpenCL.png&t=665&c=R2V1RJ1kgsvCVg)
Worker Score (Total all workers)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2FSlush%2FSlush-Worker-Score-total.png&t=665&c=R5spe4cqiytlLQ)
Worker Shares (OpenCL)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2FSlush%2FSlush-Worker-Shares-OpenCL.png&t=665&c=Pp2rulswuBB7Hw)
Worker Shares (Total all workers)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2FSlush%2FSlush-Worker-Shares-total.png&t=665&c=QRRwwoz1g9lRDQ)
BTC Guild
Difficulty
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-total-all-pool-difficulty.png&t=665&c=ABUfF41lqmtc-g)
Difficulty (NMC)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-total-all-pool-difficulty-nmc.png&t=665&c=QFtLZnNtUIl1Xg)
Pool PPS Rate
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-total-all-pool-pps-rate.png&t=665&c=bJtqFR_ASzP7HA)
Pool PPS Rate (NMC)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-total-all-pool-pps-rate-nmc.png&t=665&c=p_Mjcpef6rBHUg)
Pool Speed
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-total-all-pool-speed.png&t=665&c=Rg0y-gaxJ-D6jg)
24 Hour Rewards
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-user-24-hour-rewards.png&t=665&c=od_9NC0b2-Uafw)
24 Hour Rewards (NMC)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-user-24-hour-rewards-nmc.png&t=665&c=U98_7PctCvil1A)
Paid Rewards
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-user-paid-rewards.png&t=665&c=jL686mx0h8rlhA)
Paid Rewards (NMC)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-user-paid-rewards-nmc.png&t=665&c=aFWfXE5nHYMU9w)
Total Rewards
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-user-total-rewards.png&t=665&c=YKlzsudJq3nyFg)
Total Rewards (NMC)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-user-total-rewards-nmc.png&t=665&c=JA4m0ajwMs_bcQ)
Unpaid Rewards
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-user-unpaid-rewards.png&t=665&c=CYQ5CL3XEPKeSg)
Unpaid Rewards (NMC)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-user-unpaid-rewards-nmc.png&t=665&c=j7vkNxTCadOGTA)
Worker Hash Rate
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-worker-hash-rate-GPU.png&t=665&c=admr_C5pbH2Jvg)
Worker Last Share
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-worker-last-share-GPU.png&t=665&c=DixbVzzdP7-lCQ)
Worker Shares
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-worker-shares-GPU.png&t=665&c=rD5cji20IkajqA)
Worker Shares (NMC)
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-worker-shares-GPU-nmc.png&t=665&c=tTNgV1hCaKoUiA)
Worker Shares Since Reset
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-worker-shares-since-reset-GPU.png&t=665&c=wlZ1yr-bRhTjHQ)
Worker Shares Since Reset
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.praecogito.com%2Fbitcoin%2Fcacti-template%2Fsample-images%2Fbtcguild-worker-shares-since-reset-GPU-nmc.png&t=665&c=A0VqDyH-nGZ8jA)
Revision History
- 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. - 7/18/2011
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!).