Post
Topic
Board Mining
Re: "Rug Monitor" - Monitor your mining rigs (graphs for hashrate, temps, etc.)
by
wacked
on 30/06/2011, 22:42:39 UTC
Ok, I've got the basics up and running, and now I am allowed to POST, or I would of asked this question and posted earlier, but I was a little confused on what I need to set in the config.json to get the hashrates and shares.

I understand setting:
Code:
"status_type":"phoenix"
 to
Code:
"status_type":"hashrate"
but where do I get the hashrate data from? It's not explained in the readme.

I know I would set it in:  
Code:
"status_file":"Off",
 by replacing Off with the source of the file, but I need more info on which file has the hashrates or how to get the hashrates to log to a file. I assume the same thing would be needed to get shares?

A few other questions.
Does anyone know how to scale the load/temp graphs to scale on the right side for temperatures to something lower than 150?  Right now my temps are in the mid 80s for the high, yet the right side scales to 150.  I've managed to change the graph size to be something much larger and also changing the colors of the graphs. I also don't use the fan speed, because my fans are set to a constant speed.

Code:
$ret = trim(shell_exec(escapeshellcmd('rrdtool graph '.$dfn.' '.$extraOpts.' --interlaced --imgformat PNG [color=red][b]--height 450 --width 1300[/b][/color]

That gave me something much larger and easier to read, and I changed my colors to something slightly different for output on load/temps along with adding Min and Max temperature readouts with this code:

Code:
$data .= 'AREA:load#3232D233:"Load"
GPRINT:loadl:"Last\: %2.0lf %%  "
GPRINT:loada:"Avg\: %4.2lf %%\c"
LINE2:tempoff#9B0000CC:"Temp"
GPRINT:templ:"Last\: %3.1lf C"
[color=red][b] GPRINT:temp:MAX:"Max\: %3.1lf C\:"
GPRINT:temp:MIN:"Min\: %3.1lf C\:"[/b][/color]
GPRINT:tempa:"Avg\: %3.1lf C \c"';

Any help would be appreciated. The README file is good, but I think it assumes I know more than I do. Wink

BTW, here's an output of the modified load/temp file.

http://img685.imageshack.us/img685/9350/tempsminingrugd00.png