Pages:
Author

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

full member
Activity: 214
Merit: 100
v2.1.1 Fixed some bugs
full member
Activity: 214
Merit: 100
v2.1 Added ASC and PGA support
sr. member
Activity: 350
Merit: 250
Co-Owner Of DCMCo-Op Mining Farm at 3.5 th/s
I am getting this Error

under the USB section

Warning: Division by zero in /home/a1628273/public_html/index.php on line 181

0 Alive 54°C 100% 0.00 | 0.00 0 0 0 0% 2013-09-17 22:36:28 Alive 0°C % 335.61 | 335.03 1 1 2 100% 2013-09-17 22:46:11
full member
Activity: 127
Merit: 100
only GPU support ? and Icarus boards ?
PSL
member
Activity: 166
Merit: 10
I post a patch, that address an issue that wrong pool and user is displayed for miner that is offline:

Code:
$ git diff -p
diff --git a/index.php b/index.php
index 4ca2063..b4a031f 100644
--- a/index.php
+++ b/index.php
@@ -149,6 +149,7 @@ for ($i=0; $i<$nr_rigs; $i++)
 for ($i=0; $i<$nr_rigs; $i++)
 {
        $pool_priority = 999;
+       $pool_active = '';
        foreach ($r[$i]['pools'] as $pool)
        {
                if (($pool['Status'] == 'Alive') && ($pool['Priority'] < $pool_priority))
full member
Activity: 155
Merit: 100
I really can not get this to work....

http://tomsmining.yzi.me/test
full member
Activity: 214
Merit: 100
Yes probably.
You should save the files using UTF8 without BOM encoding.
member
Activity: 60
Merit: 10
For some reason the degrees symbol wasn't registering right for me so I swapped it out with ° but was most likely due to my editor Smiley
full member
Activity: 214
Merit: 100
Thanks!
I've commited the changes.
PSL
member
Activity: 166
Merit: 10
This patch adds these features to monitoring script 2.0:

- fix temperature when card is hot (cosmetic).
- display correct active pool (bug)
- display user (new)

Code:
$ git diff -p
diff --git a/index.php b/index.php
index 7587ad7..b5c8145 100644
--- a/index.php
+++ b/index.php
@@ -148,12 +148,13 @@ for ($i=0; $i<$nr_rigs; $i++)
  for ($i=0$i<$nr_rigs$i++)
 {
+        
$pool_priority 999;
        foreach (
$r[$i]['pools'] as $pool)
        {
-               if (
$pool['Stratum Active'] == 'true')
+               if ((
$pool['Status'] == 'Alive') and ($pool['Priority'] < $pool_priority))
                {
-                       
$pool_active 'Pool ' $pool['POOL'] . ' - ' $pool['URL'] . ''
;
-                       break;
+                        
$pool_priority $pool['Priority'];
+                       
$pool_active 'Pool ' $pool['POOL'] . ' - ' $pool['URL'] . ', user - ' $pool['User'] . '';
                }
        }
        
?>
@@ -187,7 +188,7 @@ for ($i=0; $i<$nr_rigs; $i++)
                                        
                                                echo $gpu['GPU'?>
                                                echo $gpu['Status'] == 'Alive' '$gpu['Status'] . ''$gpu['Status'] . '?>

-                                               echo $gpu['Temperature'] > ALERT_TEMP 'round($gpu['Temperature']) . '°Cround($gpu['Temperature']) ?>°C
+                                               echo $gpu['Temperature'] > ALERT_TEMP 'round($gpu['Temperature']) . '°Cround($gpu['Temperature']) . '°C' ?>
                                                echo $gpu['Fan Percent']?>%
                                                
                                                        
legendary
Activity: 1064
Merit: 1001
itkylin.com
legendary
Activity: 1064
Merit: 1001
itkylin.com
monitoring_cron.php on line 48
postdrop: warning: unable to look up public/pickup: No such file or directory
newbie
Activity: 16
Merit: 0
full member
Activity: 214
Merit: 100
I have added EMAIL ALERTS support.

The emails will be sent out by whatever mail server you configure in php.ini, right?
Have you tried this on Windows under IIS?

yes... you need postfix or sendmail installed on the server where webserver is.
I haven't tried with IIS.... but I am sure it can be done.
legendary
Activity: 2702
Merit: 1468
I have added EMAIL ALERTS support.

The emails will be sent out by whatever mail server you configure in php.ini, right?
Have you tried this on Windows under IIS?
full member
Activity: 214
Merit: 100
I have added EMAIL ALERTS support.
full member
Activity: 214
Merit: 100
you can change port to default in port section, but it won't work if you set same port for all miners.
sr. member
Activity: 319
Merit: 250
Any chance this can be modified to use the default port of 4028 for all miners?
full member
Activity: 214
Merit: 100
Getting an error from the index file, fails to operate at all. You Sir, are you trying to steal my coins?

Follow the tutorial and you should get it working.
I posted project to github now so you can check the files.

post it on github.  Your link is asking me to download exe which I'd never do without seeing the source code.

Looks nice.

I'd like to try it.  Post your script on github.

I posted project to github now.


File is suspicious.

Quote
SHA256:   33bfc4e9478de38255b307ae725dd5a7a940d3a2bb47bf9028f57a5493e55598
File name:   monitoring.rar.exe
Detection ratio:    4 / 47
Analysis date:    2013-06-02 05:38:24 UTC ( 0 minut ago )
https://www.virustotal.com/cs/file/33bfc4e9478de38255b307ae725dd5a7a940d3a2bb47bf9028f57a5493e55598/analysis/1370151504/

I don't know where did you find EXE, but well it is on github now so do not worry about it anymore.
vip
Activity: 756
Merit: 503
File is suspicious.

Quote
SHA256:   33bfc4e9478de38255b307ae725dd5a7a940d3a2bb47bf9028f57a5493e55598
File name:   monitoring.rar.exe
Detection ratio:    4 / 47
Analysis date:    2013-06-02 05:38:24 UTC ( 0 minut ago )
https://www.virustotal.com/cs/file/33bfc4e9478de38255b307ae725dd5a7a940d3a2bb47bf9028f57a5493e55598/analysis/1370151504/
Pages:
Jump to: