Pages:
Author

Topic: Simple Cgminer Remote Monitoring Script - now with email alerts (Read 31894 times)

sr. member
Activity: 329
Merit: 251
I appreciate this is old but I'd like to say thanks
Works a treat with Sgminer - gives me the minimumn info I want to see on my smartphone

Cheers
full member
Activity: 141
Merit: 100
Hello

Where I can put user and passw?

Dyndns option?
full member
Activity: 207
Merit: 112
Anyone know why I might be getting 0MH in the summary portion of the index page? I'm getting API data from Antminer S1s and I know the API is shoddy at best with these, but I'm curious because the detailed hashrate is still present.

full member
Activity: 136
Merit: 100
I prefer multiminer. It is better
newbie
Activity: 58
Merit: 0
Hi Paxxil, Thanks very much for creating the monitoring script. I just started using it today. It would be helpful if you can add the WU values for each GPU. Would it be possible to make to add this?
newbie
Activity: 19
Merit: 0
Hey Paxxil,

Just wanted to say thank you. I heavily, heavily modified your script, and quite honestly learned more about PHP along the way than I every thought I'd know. Smiley I'd offer up some of the changes, but I'm a total hack and wouldn't begin to know how to properly contribute.

That said, one of the things I've done is to create a static html page with cURL every couple minutes, and point my browser to it. The load time is instant, and I haven't found a downside yet.

So thank you again for a great script, and a great lesson, even if the latter wasn't your intent. Smiley
sr. member
Activity: 269
Merit: 250
Thank you for the script.  I've been using it for a few months. 

Just sent you some LTC.
PSL
member
Activity: 166
Merit: 10
A patch to support miner that report 'MHS 20s'...
Code:
# git diff -p index.php
diff --git a/index.php b/index.php
index 2935bc7..4890627 100644
--- a/index.php
+++ b/index.php
@@ -217,7 +217,7 @@ for ($i=0; $i<$nr_rigs; $i++)
                                                echo $dev['Fan Percent']?>%
                                                
                                                        -                                                       $stats_second = isset ($dev['MHS 5s']) ? $dev['MHS 5s'] : (isset ($dev['MHS 2s']) ? $dev['MHS 2s'] : 0);
+                                                       
$stats_second = isset ($dev['MHS 20s']) ? $dev['MHS 20s'] : (isset ($dev['MHS 5s']) ? $dev['MHS 5s'] : (isset ($dev['MHS 2s']) ? $dev['MHS 2s'] : 0));
                                                        
$stats_second_string $r[$i]['coin']['COIN']['Hash Method'] == 'scrypt' $stats_second 1000 ' | ' $dev['MHS av'] * 1000 $stats_second ' | ' $dev['MHS av'];
                                                        
$stats_ratio 0;
                                                        if (
$dev['MHS av'] > 0)

A patch to address that several small USB devices don't have FAN and temperature sensor.
Code:
# git diff -p index.php
diff --git a/index.php b/index.php
index 2935bc7..5ca0d67 100644
--- a/index.php
+++ b/index.php
@@ -213,11 +213,11 @@ for ($i=0; $i<$nr_rigs; $i++)
                                                        ?>
                                               
                                                echo $dev['Status'] == 'Alive' '$dev['Status'] . ''$dev['Status'] . '?>
-                                               echo $dev['Temperature'] > ALERT_TEMP 'round($dev['Temperature']) . '°Cround($dev['Temperature']) . '°C' ?>
-                                               echo $dev['Fan Percent']?>%
+                                               echo isset ($dev['Temperature']) ? ($dev['Temperature'] > ALERT_TEMP 'round($dev['Temperature']) . '°Cround($dev['Temperature']) . '°C') : '-' ?>
+                                               echo isset ($dev['Fan Percent']) ? $dev['Fan Percent'] . '%' '-' ?>
                                               
PSL
member
Activity: 166
Merit: 10
Sorry, i don't know how to use java API with cgminer. I am noob

Code:
cgminer$ ls -l API.class; java API coin localhost 4028
-rw-r--r-- 1 peon peon 3431 2013-05-27 16:56 API.class
Attempting to send 'coin' to 127.0.0.1:4028
Answer='STATUS=S,When=1391857634,Code=78,Msg=BFGMiner coin,Description=bfgminer 3.10.0|COIN,Hash Method=scrypt,Current Block Time=1391857600,Current Block Hash=fb246a37af09cb9c2cac0593375fd94752b81e72c591274b39870b1dc049b16d,LP=true,Network Difficulty=158.43854530|'
[STATUS] =>
(
   [STATUS] => S
   [When] => 1391857634
   [Code] => 78
   [Msg] => BFGMiner coin
   [Description] => bfgminer 3.10.0
)
[COIN] =>
(
   [0] => COIN
   [Hash Method] => scrypt
   [Current Block Time] => 1391857600
   [Current Block Hash] => fb246a37af09cb9c2cac0593375fd94752b81e72c591274b39870b1dc049b16d
   [LP] => true
   [Network Difficulty] => 158.43854530
)
[/code]
newbie
Activity: 45
Merit: 0
Sorry, i don't know how to use java API with cgminer. I am noob

btw.: as i said port is forwared, so firewall is not blocking traffic, but where is problem?

//looks, my web hosting have denied UDP ports. Maybe, that's problem?
hero member
Activity: 956
Merit: 1001
i already read it, cgminer configured fine, but it doesn't work

use the java API app that comes with cgminer to determine if cgminer is not setup correctly or if your port is not forwarded properly. 
newbie
Activity: 45
Merit: 0
i already read it, cgminer configured fine, but it doesn't work
hero member
Activity: 956
Merit: 1001
Hello,

i have cgminer 3.7.0 and this doesn't work for me. I have port open (i checked it via http://www.yougetsignal.com/tools/open-ports/)
and its open (4028). It says miner is offline Sad Any suggestions?

See "1. CONFIGURING CGMINER" in first post by OP
newbie
Activity: 45
Merit: 0
Hello,

i have cgminer 3.7.0 and this doesn't work for me. I have port open (i checked it via http://www.yougetsignal.com/tools/open-ports/)
and its open (4028). It says miner is offline Sad Any suggestions?
full member
Activity: 214
Merit: 100
I think you are on the wrong forum topic. This topic is about Simple Cgminer Script and not Anubis.
Anubis topic is here: https://bitcointalksearch.org/topic/anubis-a-cgminer-web-frontend-57342
full member
Activity: 214
Merit: 100
this is not the script problem but problem with your setup (cPanel or any other module) not able to connect to SQL database.
newbie
Activity: 42
Merit: 0
any help to setup this at my domain through cPanel?

getting this error


FATAL: Cannot use Anubis_db ! SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
newbie
Activity: 57
Merit: 0
Hi!
I set Email alert on my GPUfarm, but on every farm i have AMD APU, integrater chip userd for control/work, and i not mine on it, so i get error in email:
PROBLEM: Farm1 - G1 (0.00 MH/s) Home - G1 (0.00 MH/s) Office - G1 (0.00 MH/s) Work - G1 (0.00 MH/s) Farm2 - G1 (0.00 MH/s)
How i can fix it?
newbie
Activity: 15
Merit: 0
Love this monitor. Thanks for making it!  Smiley
sr. member
Activity: 350
Merit: 250
Co-Owner Of DCMCo-Op Mining Farm at 3.5 th/s
Pages:
Jump to: