Post
Topic
Board Securities
Re: Starting a new FPGA mining farm/contract! Cognitive Resurrected on[Havelock]
by
theterabyte
on 07/03/2014, 07:59:45 UTC
Garr - thanks for the update!

It's ugly as sin, but as we discussed, I whipped up something that I hope will help.

https://github.com/terabyte/cog-mon

This script should make it easy to set up monitoring to send an email/text when any miner drops below the desired threshold.  It is written in ruby, and it scrapes the eligius website directly because their APIs don't show individual devices separately.  You will want to modified the hardcoded values in the DEVICE_HASH variable and set the threshold/expected values to what you want.  The README file explains how to run the script and gives an example crontab that will email/SMS you if it is broken, every 5 minutes.  You might want the poll time longer, if you don't have free texts though =)

The next step will be to talk more about how we might have this script automatically trigger a restart of a specific miner that is failing, but to do that I need to find more time and chat a bit more about the current setup.  Even as it is, you could imagine writing a script yourself (if you are fluent in those sorts of things) and just using the return code of the script itself to decide to restart something or not.

We'll chat more tomorrow I'm sure.