Post
Topic
Board Mining software (miners)
Re: [MINER] Phoenix - New efficient, fast, modular miner **BFI_INT support!**
by
CFSworks
on 29/04/2011, 07:19:20 UTC
Is there any way for an external script to query Phoenix about current/average hashrate, via some form of RPC? It would be great to monitor these.

Would love to know if that's possible as well.  I just finished hacking together a special script in poclbm where it logs the performance stats every 10 seconds to a network shared file which I is parsed by my webserver for a portable status page on my iPhone.  Works great, but I feel like I'm jumping through extra hoops.

You might be interested in my other project, Multiminer, which we use for our (jedi95 and I) cluster's status page. I have a Windows download here (or you can get the source off GitHub) and it's pretty easy to run:

multiminer --admin-user=admin --admin-pass=admin101 --web-port=80 --url=http://PoolUsername:PoolPassword@PoolHost:8332/

Then change your Phoenix URLs to mmp://admin:admin101@localhost?name=NameForThisWorker (Phoenix already supports the protocol)
And finally you can throw JSON-RPC requests at http://admin:admin101@localhost - try listconnections() to see your worker status.
You can also put an index.html in "www" and have it do some JQuery magic to view your workers.

The only drawback is Multiminer doesn't have its own logs (yet), but you will know it's working when your miners pick up work and start mining through it.