Bitcoin Forum
December 08, 2016, 02:26:12 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 [6] 7 »  All
  Print  
Author Topic: CGminer - web monitor beta v0.8  (Read 32869 times)
jjiimm_64
Legendary
*
Offline Offline

Activity: 1680


View Profile
June 28, 2012, 03:05:38 AM
 #101

Yup, that fixed her.

Still need to figure out the Riglist and Gpulist stuff, but that's tomorrow.

basically.

riglist:  machines you want the change to affect
gpulist:  number of gpus on those machines.  (helps if riglist has all same number of gpus)


for instance, my 5970's are all 8gpus,  my 5870 rigs are mostly 5 gpus, but some have 6

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481207172
Hero Member
*
Offline Offline

Posts: 1481207172

View Profile Personal Message (Offline)

Ignore
1481207172
Reply with quote  #2

1481207172
Report to moderator
nanook7
Jr. Member
*
Offline Offline

Activity: 48


View Profile
July 05, 2012, 09:45:47 PM
 #102

I have been attempting to figure this out but am having a bit of trouble. here is the output. from what i can tell with little understanding of php is that its not getting a connection to the box. i checked the pc to be sure the when cgminer starts the its says api is listening. Before i dig deep into learning php i am hoping its something stupid that i did or missed.

Warning: socket_connect(): unable to connect [10013]: An attempt was made to access a socket in a way forbidden by its access permissions. in C:\Inetpub\includes\apiSocket.php on line 127 Warning: socket_send(): unable to write to socket [10057]: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied. in C:\Inetpub\includes\apiSocket.php on line 130 Warning: socket_read(): unable to read from socket [10022]: An invalid argument was supplied. in C:\Inetpub\includes\apiSocket.php on line 131 Warning: socket_connect(): unable to connect [10013]: An attempt was made to access a socket in a way forbidden by its access permissions. in C:\Inetpub\includes\apiSocket.php on line 127 Warning: socket_send(): unable to write to socket [10057]: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied. in C:\Inetpub\includes\apiSocket.php on line 130 Warning: socket_read(): unable to read from socket [10022]: An invalid argument was supplied. in C:\Inetpub\includes\apiSocket.php on line 131 Notice: Undefined offset: -1 in C:\Inetpub\miners.php on line 483 Notice: Undefined offset: 0 in C:\Inetpub\miners.php on line 484 Warning: Division by zero in C:\Inetpub\miners.php on line 496 Notice: Undefined offset: -1 in C:\Inetpub\miners.php on line 483 Notice: Undefined offset: 0 in C:\Inetpub\miners.php on line 484 Warning: Division by zero in C:\Inetpub\miners.php on line 496 Notice: Undefined offset: -1 in C:\Inetpub\miners.php on line 483 Notice: Undefined offset: 0 in C:\Inetpub\miners.php on line 484 Warning: Division by zero in C:\Inetpub\miners.php on line 496 Notice: Undefined offset: -1 in C:\Inetpub\miners.php on line 483 Notice: Undefined offset: 0 in C:\Inetpub\miners.php on line 484 Warning: Division by zero in C:\Inetpub\miners.php on line 496 Notice: Undefined offset: -1 in C:\Inetpub\miners.php on line 483 Notice: Undefined offset: 0 in C:\Inetpub\miners.php on line 484 Warning: Division by zero in C:\Inetpub\miners.php on line 496 Notice: Undefined offset: -1 in C:\Inetpub\miners.php on line 483 Notice: Undefined offset: 0 in C:\Inetpub\miners.php on line 484 Warning: Division by zero in C:\Inetpub\miners.php on line 496

windows doesnt do the raw sockets ping.

open apisocket.php and replace the ping function with this

Quote
function ping($ip=NULL) {
 if(empty($ip)) {$ip = $host;}
 if(getenv("OS")=="Windows_NT") {
  $exec = exec("ping -n 1 -l 64 ".$ip);
  return end(explode(" ", $exec ));
 }
 else {
  $exec = exec("ping -c 1 -s 64 -t 64 ".$ip);
  $array = explode("/", end(explode("=", $exec )) );
  return ceil($array[1]) . 'ms';
 }
}

?>

enjoy.
I am trying to run webmon on an extra Windows server 2003 machine in my network
I tried the suggestion above about changing the ping function but ... I get the following error

Warning: exec() [function.exec]: Unable to fork [ping -n 1 -l 64 miner1] in D:\shares\Users\John\webmon\includes\apiSocket.php on line 125

Anyone have any ideas?

thanks
Aseras
Hero Member
*****
Offline Offline

Activity: 658


View Profile
July 06, 2012, 04:36:32 PM
 #103

Give your web user i_usr whatever permissions to ping.
tnkflx
Sr. Member
****
Offline Offline

Activity: 346


View Profile
July 06, 2012, 07:42:32 PM
 #104

When I run this, I get the following error:

Code:
Warning: socket_create(): Unable to create socket [1]: Operation not permitted in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 125
Warning: socket_set_option() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 126
Warning: socket_connect() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 127
Warning: socket_send() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 130
Warning: socket_read() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 131
Warning: socket_close() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 134
Warning: socket_create(): Unable to create socket [1]: Operation not permitted in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 125
Warning: socket_set_option() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 126
Warning: socket_connect() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 127
Warning: socket_send() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 130
Warning: socket_read() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 131
Warning: socket_close() expects parameter 1 to be resource, boolean given in /var/www/localhost/htdocs/cgminerweb/includes/apiSocket.php on line 134
Notice: Undefined variable: highTempCard in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 574
Notice: Undefined offset: -1 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 726
Notice: Undefined offset: 0 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 727
Notice: Undefined variable: highHeatIndexRig in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 575
Notice: Undefined offset: -1 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 726
Notice: Undefined offset: 0 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 727
Notice: Undefined variable: heatIndexAvg in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 575
Notice: Undefined variable: highHeatPerCardIndexRig in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 576
Notice: Undefined offset: -1 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 726
Notice: Undefined offset: 0 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 727
Notice: Undefined offset: -1 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 726
Notice: Undefined offset: 0 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 727
Notice: Undefined offset: -1 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 726
Notice: Undefined offset: 0 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 727
Notice: Undefined offset: -1 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 726
Notice: Undefined offset: 0 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 727
Notice: Undefined offset: -1 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 726
Notice: Undefined offset: 0 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 727
Notice: Undefined offset: -1 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 726
Notice: Undefined offset: 0 in /var/www/localhost/htdocs/cgminerweb/webmon.php on line 727
number of gpu0

Any idea what might be wrong? PHP is compiled with sockets enabled...

| Operating electrum.be & us.electrum.be |
AmDD
Legendary
*
Online Online

Activity: 827



View Profile
October 22, 2012, 08:46:28 PM
 #105

So I assume this only works on a local network? Is it possible to send this to an online web host somewhere and access it via the internet?

BTC tip jar: 18EKpbrcXxbpzAZv3T58ccGcVis7W7JR9w
LTC tip jar: Lgp8ERykAgx6Q8NdMqpi5vnVoUMD2hYn2a
jjiimm_64
Legendary
*
Offline Offline

Activity: 1680


View Profile
October 22, 2012, 08:53:37 PM
 #106

So I assume this only works on a local network? Is it possible to send this to an online web host somewhere and access it via the internet?

It is possible, but not advisable because of security.

You would have to run each cgminer with a specific port, then port forward that port to the rig with your router..   

I am just speculating, i have not actually tried this.


1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
AmDD
Legendary
*
Online Online

Activity: 827



View Profile
October 22, 2012, 09:00:17 PM
 #107

Well I'll try setting this up as-is first and then play with it. I know a very small amount of PHP but next to nothing as to how the mining software communicates to anything.

BTC tip jar: 18EKpbrcXxbpzAZv3T58ccGcVis7W7JR9w
LTC tip jar: Lgp8ERykAgx6Q8NdMqpi5vnVoUMD2hYn2a
baggyp
Member
**
Offline Offline

Activity: 70


View Profile
March 11, 2013, 01:03:43 AM
 #108

so then this is not something I can control multiple location's rigs with? that is what I am looking for primarily. LTC mining with cgminer.
Fallon
Newbie
*
Offline Offline

Activity: 12


Oh! Shiny!


View Profile WWW
March 17, 2013, 03:25:22 PM
 #109

I'm getting a similar error as tnkflx running this on my little ReadyNAS (Linux)....

Code:
Warning: socket_create() [function.socket-create]: Unable to create socket [1]: Operation not permitted in /c/webroot/cgminerweb/includes/apiSocket.php on line 125

Warning: socket_set_option() expects parameter 1 to be resource, boolean given in /c/webroot/cgminerweb/includes/apiSocket.php on line 126

Warning: socket_connect() expects parameter 1 to be resource, boolean given in /c/webroot/cgminerweb/includes/apiSocket.php on line 127

Warning: socket_send() expects parameter 1 to be resource, boolean given in /c/webroot/cgminerweb/includes/apiSocket.php on line 130

Warning: socket_read() expects parameter 1 to be resource, boolean given in /c/webroot/cgminerweb/includes/apiSocket.php on line 131

Warning: socket_close() expects parameter 1 to be resource, boolean given in /c/webroot/cgminerweb/includes/apiSocket.php on line 134

Warning: socket_create() [function.socket-create]: Unable to create socket [1]: Operation not permitted in /c/webroot/cgminerweb/includes/apiSocket.php on line 125


Sockets Support   enabled

Fallon
mackminer
Sr. Member
****
Offline Offline

Activity: 335



View Profile
April 22, 2013, 08:14:27 PM
 #110

Looks perfect - I don't like fancy graphics with no real use. I will give it a go.

Hope you are still working on it. What web server do you use - I'm going to try nginx.

1tpXGRKnzaM42B1A1NZhmsX3tngwkqVEf
FanDjangoBTC
Jr. Member
*
Offline Offline

Activity: 46



View Profile
May 09, 2013, 11:31:12 PM
 #111

I'm getting a similar error as tnkflx running this on my little ReadyNAS (Linux)....

Code:
Warning: socket_create() [function.socket-create]: Unable to create socket [1]: Operation not permitted in /c/webroot/cgminerweb/includes/apiSocket.php on line 125

Warning: socket_set_option() expects parameter 1 to be resource, boolean given in /c/webroot/cgminerweb/includes/apiSocket.php on line 126

Warning: socket_connect() expects parameter 1 to be resource, boolean given in /c/webroot/cgminerweb/includes/apiSocket.php on line 127

Warning: socket_send() expects parameter 1 to be resource, boolean given in /c/webroot/cgminerweb/includes/apiSocket.php on line 130

Warning: socket_read() expects parameter 1 to be resource, boolean given in /c/webroot/cgminerweb/includes/apiSocket.php on line 131

Warning: socket_close() expects parameter 1 to be resource, boolean given in /c/webroot/cgminerweb/includes/apiSocket.php on line 134

Warning: socket_create() [function.socket-create]: Unable to create socket [1]: Operation not permitted in /c/webroot/cgminerweb/includes/apiSocket.php on line 125


Sockets Support   enabled


For Linux: !! RAW Sockets in ../includes/apiSocket.php ping function (right at the bottom of the file) require either root priviledges OR capability CAP_NET_RAW to be set.

Using Apache2/PHP5, I was not able to do either of these succesfully.

root for Apache2 is a nogo.

setcap CAP_NET_RAW to which binary? I tried everyone I could think of and then gave up.


Actually, there are many example (use Google) for replacing the RAW socket ping with one that doesn't need RAW.

But sadly, after I got this thing running I am getting incomplete data as cgminer 3.1.0 has changed a number of things that are not reflected in the current code of this php.

Will check out some other stuff before I continue on this one.
dan7733
Newbie
*
Offline Offline

Activity: 21



View Profile
July 12, 2013, 10:00:48 PM
 #112

Hi guys!

Just a quick question. How do you set this up? And what do I do with the php file?

Thanks!

BTC: 18z2eRZvAtrTrHqdG1daErcEiXorofeEqa      WDC: WbGVA944GkcjR64rJoV1pWFfn64Y2w35mf
LTC: LYp4tCJzeMgiVZdMHqxUGXtPk7GuH5cXKG  PWC: p7iUwXGTn24FDThr3wurqb9rhggew7qwrq
BTB: BLEKr47ChrrWR593nirD1589ShATFma9Mf  YAC: Y9QFYm92WvsCVgaxJiiZuu9y4nJ7MX1P1R
jjiimm_64
Legendary
*
Offline Offline

Activity: 1680


View Profile
July 19, 2013, 05:45:21 AM
 #113

Hi guys!

Just a quick question. How do you set this up? And what do I do with the php file?

Thanks!

have php installed.. put webmon.php and include folder in path of apache.  edit webmon.php with your list of rigs and run webmon.php in browser.

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
wknight
Legendary
*
Offline Offline

Activity: 889


Bitcoin calls me an Orphan


View Profile WWW
January 07, 2014, 09:37:00 PM
 #114

I guess this died?

Mining Both Bitcoin and Litecoin.
jjiimm_64
Legendary
*
Offline Offline

Activity: 1680


View Profile
January 07, 2014, 09:38:26 PM
 #115

I guess this died?

Im still using it.. .but had to delete the directory for the download with hacking attempts and such....  .. and with cgminer not supporting gpus anymore...well

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
hmblm1245
Hero Member
*****
Offline Offline

Activity: 635


View Profile
January 07, 2014, 10:36:10 PM
 #116

I also have been using it for nearly a year now. Its a great tool to quickly check what systems are up with temps...etc.
phreakk
Full Member
***
Offline Offline

Activity: 152


View Profile
January 18, 2014, 02:10:16 PM
 #117

Is this still downloadable anywhere? I would like to test it!
bayo
Full Member
***
Offline Offline

Activity: 198

mineoncloud.com


View Profile WWW
January 20, 2014, 05:51:54 PM
 #118

hey Anyone can give a miror for download or maybe other stuff like this ? Thanks !!

jjiimm_64
Legendary
*
Offline Offline

Activity: 1680


View Profile
January 20, 2014, 06:08:53 PM
 #119



I will try and get this back up within a day or two..

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
Pustul
Full Member
***
Offline Offline

Activity: 224


View Profile
January 27, 2014, 12:03:13 AM
 #120

Could someone take a screenshot? Thanks Smiley

Pages: « 1 2 3 4 5 [6] 7 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!