Bitcoin Forum
November 21, 2017, 05:22:05 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [All]
  Print  
Author Topic: ANUBIS - a CGMINER Web Frontend  (Read 82329 times)
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 09, 2012, 08:22:22 PM
 #1

Hi !

Thanks to cgminer's API I could write a small web frontend for cgminer which I'm now using to monitor (part of) my  rigs.

Currently its quite minimalistic, you can add hosts, define "color thresholds" for temperatures, fans, min. MH/s .. Sooner or Later (as I have some spare time) I'll add failure notification via Prowl/NMA/E-Mail and many other features.

Here some Screenshots:

http://www.imagebanana.com/view/1lufqtkv/Bildschirmfoto20120109um20.59.39.png

http://www.imagebanana.com/view/4g5wy1ap/Bildschirmfoto20120109um20.59.52.png

http://www.imagebanana.com/view/bgkeoq3h/Bildschirmfoto20120109um21.00.01.png

http://www.imagebanana.com/code/45cgabhx/Bildschirmfoto20120109um21.00.13.png

http://www.imagebanana.com/code/pze1mi27/Bildschirmfoto20120109um21.00.23.png

As you can see, everything is pretty self explanatory.

Grab ANUBIS from here:

http://dl.dropbox.com/u/14741109/anubis-1.03.tar.gz


Newer versions are currently maintained by "P_shep" and can be grabbed from here:
https://github.com/pshep/ANUBIS


Installation is simple. You need a MySQL/PHP enabled host within your rig-network. You have
to set the "--api-listen and --api-network" cgminer switches, the rest is done within ANUBIS.

Extract the .tar.gz to a directory of your choice i.e. http://my.host.com/anubis and edit
"config.inc.php" to reflect your db values for ANUBIS. You need to have a user/password and a database
set in your MySQL configuration for ANUBIS.

After you updated "config.inc.php" simply run ANUBIS by pointing your browser to the root dir of
ANUBIS i.e. http://my.host.com/anubis and start adding hosts.


Requirements:
-- needs php, php-mysql

php config :
set "short_open_tag" to "enabled" in /etc/php.ini


Let me know if you encounter any bugs or problems or if you have any new ideas, preferably by posting into this thread, I'll do fixes as soon as I can !

Have fun !

ocminer

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
1511241725
Hero Member
*
Offline Offline

Posts: 1511241725

View Profile Personal Message (Offline)

Ignore
1511241725
Reply with quote  #2

1511241725
Report to moderator
1511241725
Hero Member
*
Offline Offline

Posts: 1511241725

View Profile Personal Message (Offline)

Ignore
1511241725
Reply with quote  #2

1511241725
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511241725
Hero Member
*
Offline Offline

Posts: 1511241725

View Profile Personal Message (Offline)

Ignore
1511241725
Reply with quote  #2

1511241725
Report to moderator
1511241725
Hero Member
*
Offline Offline

Posts: 1511241725

View Profile Personal Message (Offline)

Ignore
1511241725
Reply with quote  #2

1511241725
Report to moderator
1511241725
Hero Member
*
Offline Offline

Posts: 1511241725

View Profile Personal Message (Offline)

Ignore
1511241725
Reply with quote  #2

1511241725
Report to moderator
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile
January 09, 2012, 08:56:03 PM
 #2

Looks awesome I will install it this evening.
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1582

Reverse engineer from time to time


View Profile
January 09, 2012, 09:38:56 PM
 #3

Once the API is extended to control intensity, that is when I will modify a program of mine(uses ADL) to automatically adjust intensity to keep a GPU under a certain temperature.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 10, 2012, 12:44:00 AM
 #4

this is pretty cool, it sets up in about 5 mins, btw its --api-listen not --api-enable
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 10, 2012, 01:15:19 AM
 #5

Thanks, you are right,  I've corrected it to "--api-listen"

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 10, 2012, 01:26:30 AM
 #6

so I have a question

adjusting the GPUs setting temps fans, etc, via Anubis only works if you enable --auto-gpu --auto-fan etc correct?

otherwise it just gives you a nice way to check on your miners over the web - right?

ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 10, 2012, 01:28:10 AM
 #7

At the moment it only gives you a nice and easy way of keeping track of your miners.

Control is planned for some future version.

You have to enable both --api switches to get Anubis to work at all.

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 10, 2012, 01:33:18 AM
 #8

very cool, I wanted to make sure because I wanted to offer mine as an example so people can see what it looks like

want to make sure people cant manipulate my GPUS over the web lol

cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 10, 2012, 01:34:23 AM
 #9

btw, I just sent a 1 BTC donation to the address included on the donate tab of anubis

this is very cool stuff dude Smiley
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 10, 2012, 01:41:16 AM
 #10

if anyone wants to see anubis in action

check it out

http://cablepair.devcoin.org/anubis/

I disabled the config page just in case. Check it out guys, and please send this man a donation like I did - this is very awesome work!
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 10, 2012, 02:42:18 AM
 #11

lol

of course somebody had to try and screw with it

haha
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 10, 2012, 03:13:13 AM
 #12

great work
Pontius
Full Member
***
Offline Offline

Activity: 216


View Profile
January 10, 2012, 08:18:59 AM
 #13

Pretty good job. Thanks for sharing!
You should make the API port configurable though; using a hardcoded "4028" is ugly.  Wink
runeks
Legendary
*
Offline Offline

Activity: 952



View Profile WWW
January 10, 2012, 07:59:16 PM
 #14

Once the API is extended to control intensity, that is when I will modify a program of mine(uses ADL) to automatically adjust intensity to keep a GPU under a certain temperature.
What's the advantage to doing this vs using cgminer's built-in function that adjusts the core clock depending on temperature? More performance?
ZodiacDragon84
Sr. Member
****
Offline Offline

Activity: 266


The king and the pawn go in the same box @ endgame


View Profile
January 10, 2012, 08:35:18 PM
 #15

like +1

Looking for a quick easy mining solution? Check out
www.bitminter.com

See my trader rep at Bitcoinfeedback.com
!
ThiagoCMC
Legendary
*
Offline Offline

Activity: 1190

฿itcoin: Currency of Resistance!


View Profile
January 10, 2012, 09:24:02 PM
 #16

I'll test it tonight!!  Cheesy
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 10, 2012, 11:33:39 PM
 #17

Thanks for your replys.

You can define the port in the next version.

I'm also integrating Prowl and NMA (Notify my android) notifications when cards go dead, miners go down and so on.

Currently there's no really free way of implementing SMS, but I think almost everyone has an IPhone meanwhile and will receive E-Mails or Prowl Notifications Smiley

I'll also try to fix some bugs, currently it takes forever to load if a miner is not reachable, the default timeout is too high.


suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 10, 2012, 11:45:27 PM
 #18

ocminer: did you receive the donation I sent yesterday?
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 10, 2012, 11:46:09 PM
 #19

Yes thank you very much ! Smiley

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
January 11, 2012, 12:46:27 AM
 #20

I'm working on a similar project, and just wanted to make sure people are being secure.  If you open port 4028 for cgminer to the world, then anyone can send and command to cgminer.  This could be bad since someone on the internet could send the "quit" command to your miner.

Make sure you configure your firewalls properly!

Code:
sudo ufw allow from <IP of monitor> to tcp port 4028

Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
January 11, 2012, 09:08:50 PM
 #21

How CPU intensive is ANUBIS? I'm considering setting this up on one of my existing mining rigs with a semptron 140 cpu.
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 11, 2012, 09:29:20 PM
 #22

You can install it without problems on the sempron, it only uses very little cpu, and this even only for a very short time when you call the main page.

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 11, 2012, 10:01:25 PM
 #23

i keep this old dell on my network for certain tasks

its a p4 1.7 ghz with 256 mb of ram - running debian linux

I now use this for my Anubis server and it works flawlessly, and does not run slow at all

keep up the good work dev! This thing is not a resource hog at all.

Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
January 12, 2012, 12:53:47 AM
 #24

I just installed myslq/php on one of my rigs. I sort of know what I'm doing, but I'd really appreciate someone telling me how to configure myslq properly for anubis as I have no idea what i'm doing there.

edit: I got the database and username setup in myphp for anubis, but it still doesn't appear to be working. Here's a picture of what I'm getting. http://dl.dropbox.com/u/25848420/anubis.png

Help would be greatly appreciated!
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
January 12, 2012, 02:05:33 AM
 #25

I just installed myslq/php on one of my rigs. I sort of know what I'm doing, but I'd really appreciate someone telling me how to configure myslq properly for anubis as I have no idea what i'm doing there.

edit: I got the database and username setup in myphp for anubis, but it still doesn't appear to be working. Here's a picture of what I'm getting. http://dl.dropbox.com/u/25848420/anubis.png

Help would be greatly appreciated!

Looks like PHP isn't enabled.  Not sure what kind of system you have. Installing PHP is enough to get it working on most systems.

cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 12, 2012, 02:16:55 AM
 #26

I just installed myslq/php on one of my rigs. I sort of know what I'm doing, but I'd really appreciate someone telling me how to configure myslq properly for anubis as I have no idea what i'm doing there.

edit: I got the database and username setup in myphp for anubis, but it still doesn't appear to be working. Here's a picture of what I'm getting. http://dl.dropbox.com/u/25848420/anubis.png

Help would be greatly appreciated!

hes right it looks like you dont have php

are you using apache web server?

try this

sudo apt-get install apache2
sudo apt-get install php5


if you need to install mysql and add the anubis sql tables:
sudo apt-get install mysql-server
sduo apt-get install phpmyadmin

sudo pico /etc/apache2/apache2.conf

add this line to the botom of the file:

Include /etc/phpmyadmin/apache.conf

then do :

apachectl restart

then go on the web browse to http://127.0.0.1/phpmyadmin/

or replace 127.0.0.1 with the IP of the machine on your network you just did all this on

login into phpmyadmin and import the sql file for Anubis
Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
January 12, 2012, 02:36:47 AM
 #27

I'm using IIS in Windows 7 to host the web server.

phpmyadmin works fine, so I assume that I installed php correctly.
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
January 12, 2012, 04:15:44 AM
 #28

I'm using IIS in Windows 7 to host the web server.

phpmyadmin works fine, so I assume that I installed php correctly.
No idea about configuring IIS.  PHP might just be enabled for certain directories or something like that.  Your web server is definitely serving the php just like its HTML though.

Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
January 12, 2012, 04:29:57 AM
 #29

I'm using IIS in Windows 7 to host the web server.

phpmyadmin works fine, so I assume that I installed php correctly.
No idea about configuring IIS.  PHP might just be enabled for certain directories or something like that.  Your web server is definitely serving the php just like its HTML though.

I don't understand why phpmyadmin pages work then (that's .php) and anubis doesn't.
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
January 12, 2012, 04:34:07 AM
 #30

I'm using IIS in Windows 7 to host the web server.

phpmyadmin works fine, so I assume that I installed php correctly.
No idea about configuring IIS.  PHP might just be enabled for certain directories or something like that.  Your web server is definitely serving the php just like its HTML though.

I don't understand why phpmyadmin pages work then (that's .php) and anubis doesn't.

P4man
Hero Member
*****
Offline Offline

Activity: 518



View Profile
January 12, 2012, 09:49:26 AM
 #31

I just installed it, and it works. Great job. Sent a small initial symbolic donation.

Some things Id like to see changed:
- the layout doesnt really make good use of large screen estate. No reason to use multiple lines within a row when the table is spanning only like 30% of my screen width
- show fan speed in overview
- configure different tresholds (temps, fan etc) for individual cards
- be able to sort and/or rearrange the table rows

And a question about the email notification; when does it notify? How do you configure it?


Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
January 12, 2012, 02:41:11 PM
 #32

I finally figured out my problem, a fresh install of php has short_open_tag in the php.ini disabled by default, which is what ANUBIS uses instead of full <?php ?> tags.

Enabling that option and restarting my web server finally made my ANUBIS .php pages actually work, and explained why phpmyadmin was working when anubis was not.
Brunic
Hero Member
*****
Offline Offline

Activity: 628



View Profile
January 13, 2012, 12:35:06 AM
 #33

I'm currently configuring my computers for ANUBIS. Here some points:

-Don't forget to activate the PHP extension for socket if you get an error for socket_connect.
- api-listen and api-network didn't seemed to work into a .conf file for cgminer 2.1.2. Maybe it's me who didn't wrote it correctly though into the .conf file.
-ANUBIS load indefinitely when, if I go to "Home" section, one of my host is stalled. There's no message error too. All the other sections of Anubis works fine (FAQ, config, contact), only Home is stuck.

***
For the bug, I forgot to mention that all my miners are using Linuxcoin 0.2final, but the "manager" with ANUBIS is on Windows 7, with EasyPHP 5.3.8.1 (yeah, I was lazy Cheesy)
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 13, 2012, 01:14:27 PM
 #34

ocminer:

There seems to be a discrepancy between my stats on the pool and the stats on Anubis in regards to stales

BTCGuild is saying that 99.92% of my shares are being accepted yet Anubis is saying my rigs are getting 30%-60% stales





CGMINER it self is not showing a high stale rate either, im looking at my minerbox1 right now and the stale rate is very very low just like btcguild says it is, however Anubis is saying that rig has 27% stales

Any Ideas?

finway
Hero Member
*****
Offline Offline

Activity: 714


View Profile
January 13, 2012, 02:53:42 PM
 #35

I'll try this.

Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
January 14, 2012, 02:46:57 AM
 #36

I just want to say got Anubis running great now for my 24 mining rigs and look forward to future developments on this project.

I do have a small suggestion though, add a column on the main page to show what the current max gpu temp is for each machine. This is kind of important as one GPU's fan can fail or start having problems, and I would like to be able to catch that at a glance instead of with 48+ clicks.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile
January 14, 2012, 02:49:35 AM
 #37

ocminer you got a donation address?

I will send some coins to support this project.
Eveofwar
Sr. Member
****
Offline Offline

Activity: 406


View Profile
January 14, 2012, 05:17:04 AM
 #38

ocminer you got a donation address?

I will send some coins to support this project.

1KgAKimMrbR6h4R6JBff9s3JqQCS53y149

It's posted all over the place Tongue
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile
January 14, 2012, 06:28:24 PM
 #39

ocminer you got a donation address?

I will send some coins to support this project.

1KgAKimMrbR6h4R6JBff9s3JqQCS53y149

It's posted all over the place Tongue


Its not in the first post and I must have missed it in another post by the author.  I don't like to get addresses second hand given the irrevocable nature of Bitcoin.
P4man
Hero Member
*****
Offline Offline

Activity: 518



View Profile
January 14, 2012, 06:45:40 PM
 #40

Its at the bottom of anubis webpage.
1KgAKimMrbR6h4R6JBff9s3JqQCS53y149 is correct. Id post a screenshot, but it wouldnt be hard to tamper with that Smiley

cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 14, 2012, 07:10:31 PM
 #41

lol

how about this screen shot posted by ocminer himself?

http://www.imagebanana.com/view/pze1mi27/Bildschirmfoto20120109um21.00.23.png

(its on the first page of this thread)

so quit stalling and DONATE ALREADY! Tongue
jjiimm_64
Legendary
*
Offline Offline

Activity: 1862


View Profile
January 14, 2012, 07:50:52 PM
 #42

lol

how about this screen shot posted by ocminer himself?

http://www.imagebanana.com/view/pze1mi27/Bildschirmfoto20120109um21.00.23.png

(its on the first page of this thread)

so quit stalling and DONATE ALREADY! Tongue

will have to add imagebanana to the domains I will NEVER click on again.  How do you close that ad without the other window poping up....  never again

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
rjk
Sr. Member
****
Offline Offline

Activity: 434


1ngldh


View Profile
January 14, 2012, 07:54:04 PM
 #43

lol

how about this screen shot posted by ocminer himself?

http://www.imagebanana.com/view/pze1mi27/Bildschirmfoto20120109um21.00.23.png

(its on the first page of this thread)

so quit stalling and DONATE ALREADY! Tongue

will have to add imagebanana to the domains I will NEVER click on again.  How do you close that ad without the other window poping up....  never again
Or you could just use a ad blocker such as ABP (Ad Block Plus) for firefox.... I didn't even notice anything....

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 14, 2012, 08:07:10 PM
 #44

lol same here

I have ad block plus - I didnt even know that site had ads at all Smiley
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile
January 14, 2012, 09:16:09 PM
 #45

2 BTC donated. 

TX ID: fbca9234c07998306cdad515d343e989160df29843df1d82796c6c330ce5b63e

I hope the author continued to improve and expand it.
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 14, 2012, 10:27:09 PM
 #46

Hey guys, thanks for the replies and the donations !

I already noticed the stales problem, and fixed it together with one other bug and I also added the possibility to define an other port than 4028.

You can download 1.01 here:

http://dl.dropbox.com/u/14741109/anubis-1.01.tar.gz

Upgrading should work automagically without any problems, simply copy the new files over the old ones.

Changelog:

Version 1.01 (14. January 2012) - Bugfixes and Enhancements
- Added possibility to define a port per host. No limitation
  to standard-port 4028 anymore.

- Fixed a bug where Disabled GPU's weren't noticed as
  "not running" and therefore not display as "red".

- Fixed a bug where stales where not displayed correctly.

Have fun !

ocminer

PS: Will add notifications at next and some other features which were also mentioned in this thread.

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
DBordello
Sr. Member
****
Offline Offline

Activity: 328


BTCPak.com - Exchange your Bitcoins for MP!


View Profile WWW
January 16, 2012, 09:18:49 PM
 #47

I already have postgres SQL installed, so I wouldn't mind using that.  Any reason postgres wouldn't work?  I realize I will need to modify the database related calls.

www.BTCPak.com - Exchange your bitcoins for MP: Secure, Anonymous and Easy!
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 16, 2012, 09:20:03 PM
 #48

Uh I never worked with postgres SQL so I cannot help here, but you can modifiy Anubis the way you like and maybe reoffer it here for other people which also want to use postgres sql

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
DBordello
Sr. Member
****
Offline Offline

Activity: 328


BTCPak.com - Exchange your Bitcoins for MP!


View Profile WWW
January 16, 2012, 10:08:55 PM
 #49

Uh I never worked with postgres SQL so I cannot help here, but you can modifiy Anubis the way you like and maybe reoffer it here for other people which also want to use postgres sql

My conclusions: far too much work.  Install MySQL  Grin

www.BTCPak.com - Exchange your bitcoins for MP: Secure, Anonymous and Easy!
DBordello
Sr. Member
****
Offline Offline

Activity: 328


BTCPak.com - Exchange your Bitcoins for MP!


View Profile WWW
January 16, 2012, 10:10:39 PM
 #50

Excellent work.  I really like the look of this.

It would be nice if you had a detailed summary page, that was similar to the host detail page, but had all hosts.  You simply would have to add a column for the hostname. 

www.BTCPak.com - Exchange your bitcoins for MP: Secure, Anonymous and Easy!
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 16, 2012, 10:29:27 PM
 #51

Im currently working on that, will be in the next release (probably by the weekend if I have some spare time)

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 16, 2012, 11:29:31 PM
 #52

I've just added the summary page as I already had most of the variables, on the hosts page (the index page) you now have a link in the upper left "Expand all Hosts" which should give you the info you are looking for.

I also added a sum column below the hosts table which simply sums up all values from above.

Upgrading is simple as ever, simply copy the newer files over the older ones.

Grab 1.02 from here:
http://dl.dropbox.com/u/14741109/anubis-1.02.tar.gz

Have fun !

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
DBordello
Sr. Member
****
Offline Offline

Activity: 328


BTCPak.com - Exchange your Bitcoins for MP!


View Profile WWW
January 17, 2012, 12:58:14 AM
 #53

I've just added the summary page as I already had most of the variables, on the hosts page (the index page) you now have a link in the upper left "Expand all Hosts" which should give you the info you are looking for.

I also added a sum column below the hosts table which simply sums up all values from above.

Upgrading is simple as ever, simply copy the newer files over the older ones.

Grab 1.02 from here:
http://dl.dropbox.com/u/14741109/anubis-1.02.tar.gz

Have fun !

Looks great! Nice job.

www.BTCPak.com - Exchange your bitcoins for MP: Secure, Anonymous and Easy!
DBordello
Sr. Member
****
Offline Offline

Activity: 328


BTCPak.com - Exchange your Bitcoins for MP!


View Profile WWW
January 17, 2012, 01:01:37 AM
 #54

Since you handled that so quickly, I feel like I should provide another feature request  Grin

What about AJAX style refreshing?  It would be nice if the numbers could update every 5 seconds or so.  I realize this might add some complexity on the client and server sides of things. 

www.BTCPak.com - Exchange your bitcoins for MP: Secure, Anonymous and Easy!
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 17, 2012, 02:12:26 PM
 #55

Heya,

AJAX refreshing is surely "the way to go" in future releases but this currently has no priority.

I will very soon implement an "auto-refresh" which can be configured individually and lets you refresh
the hole (index-) page in an amount of time you can define. But this will simply be a "meta refresh" tag which
lets the whole page reload.

Currently on my prio is notifications to IPhones/Android via Prowl/NMA

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
P4man
Hero Member
*****
Offline Offline

Activity: 518



View Profile
January 17, 2012, 03:05:55 PM
 #56

IN the meanwhile, you can have the page refreshed easily by installing this:
https://addons.mozilla.org/en-US/firefox/addon/reloadevery/

P4man
Hero Member
*****
Offline Offline

Activity: 518



View Profile
January 18, 2012, 12:23:54 PM
 #57

Minor issue; when host IP addresses change, you can not update the settings in anubis. It will keep complaining it cant connect to the old IP, you cant delete the (old) host either. Not a big deal for me, I just updated the IP addresses in MySQL but not everyone can do that I fear.

Brunic
Hero Member
*****
Offline Offline

Activity: 628



View Profile
January 18, 2012, 10:30:40 PM
 #58

Just to say that in the last version, I get error message for a division by zero when:
-Rejected, Accepted, etc have a value of zero.
-When I enter 0 for "Mhash desired"

Code:
Warning: Division by zero in ***\anubis\index.php on line 294

Warning: Division by zero in ***\anubis\index.php on line 297

Warning: Division by zero in ***\anubis\index.php on line 300

Warning: Division by zero in ***\anubis\index.php on line 303

Warning: Division by zero in ***\anubis\index.php on line 306

Notice: Undefined variable: gesspercol in ***\anubis\index.php on line 486

Notice: Undefined variable: gessper in ***\anubis\index.php on line 486

Notice: Undefined variable: avgmhpercol in ***\anubis\index.php on line 486

Notice: Undefined variable: avgmhper in ***\anubis\index.php on line 486
.
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 18, 2012, 10:38:33 PM
 #59

Both bugs are fixed in the next version, thanks for your tips !

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
DBordello
Sr. Member
****
Offline Offline

Activity: 328


BTCPak.com - Exchange your Bitcoins for MP!


View Profile WWW
January 20, 2012, 07:26:35 AM
 #60

I can't wait.  I am loving Anubis. 

Any explanation of the name? 

www.BTCPak.com - Exchange your bitcoins for MP: Secure, Anonymous and Easy!
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 756


View Profile
January 21, 2012, 05:52:51 AM
 #61

So I have absolutely no idea how to use MySQL or php...

Quote
Extract the .tar.gz to a directory of your choice i.e. http://my.host.com/anubis and edit
"config.inc.php" to reflect your db values for ANUBIS. You need to have a user/password and a database
set in your MySQL configuration for ANUBIS.

I got the extract part down, and I can edit config.inc.php but IDK what to put in it or what to do after that.  I have apache2, php5, mysql-server, and phpmyadmin installed on Ubuntu 11.04 64.  Huh

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
Pontius
Full Member
***
Offline Offline

Activity: 216


View Profile
January 21, 2012, 07:59:04 AM
 #62

So I have absolutely no idea how to use MySQL or php...

Quote
Extract the .tar.gz to a directory of your choice i.e. http://my.host.com/anubis and edit
"config.inc.php" to reflect your db values for ANUBIS. You need to have a user/password and a database
set in your MySQL configuration for ANUBIS.

I got the extract part down, and I can edit config.inc.php but IDK what to put in it or what to do after that.  I have apache2, php5, mysql-server, and phpmyadmin installed on Ubuntu 11.04 64.  Huh

Code:
% mysql -u root -p
Enter password:
mysql> CREATE DATABASE anubis_db;
mysql> GRANT ALL PRIVILEGES ON anubis_db.* TO 'anubis'@'localhost' IDENTIFIED BY 'your password here';
mysql> FLUSH PRIVILEGES;
mysql> \q

If your apache is running on a different box then your MySQL add a second GRANT statement (before the FLUSH):
Code:
mysql> GRANT ALL PRIVILEGES ON anubis_db.* TO 'anubis'@'your apache hosts IP here' IDENTIFIED BY 'your password here';

In the config.inc.php adjust the password of the anubis user (and maybe you've to adjust the MySQL IP too). That's it.
JWU42
Legendary
*
Offline Offline

Activity: 1624


View Profile
January 21, 2012, 05:37:00 PM
 #63

Liking this...

GPG PubKey | THREEMA | OTC | HeatWare | 1JWU42QLGFESoQCC4iPzUDTRiC9nx5bi95
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 756


View Profile
January 21, 2012, 06:31:24 PM
 #64

I guess I can screw anything up...

Code:
mysql> GRANT ALL ON 'anubis_db' to 'anubis'@'localhost' identified by 'your password here';

I can't get this line correct, I get either syntax error or no database selected.  Password, and localhost are easy, but what goes in 'anubis_db' and 'anubis'? My anubis directory is ~/anubis if that helps.

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
Pontius
Full Member
***
Offline Offline

Activity: 216


View Profile
January 21, 2012, 08:00:37 PM
 #65

Sorry, gnar1ta$, my fault.  Sad Correct command should be:

Code:
mysql> GRANT ALL PRIVILEGES ON anubis_db.* TO 'anubis'@'localhost' IDENTIFIED BY 'your password here';

P4man
Hero Member
*****
Offline Offline

Activity: 518



View Profile
January 21, 2012, 08:01:03 PM
 #66

I guess I can screw anything up...

Code:
mysql> GRANT ALL ON 'anubis_db' to 'anubis'@'localhost' identified by 'your password here';

I can't get this line correct, I get either syntax error or no database selected.  Password, and localhost are easy, but what goes in 'anubis_db' and 'anubis'? My anubis directory is ~/anubis if that helps.

anubis_db is the name of the database anubis will use, and anubis is the name of the user. You can leave them as such, or change them, and change the config.inc.php accordingly.

I also ran in to trouble creating the user (ERROR 1396 (HY000): Operation CREATE USER failed ..), I ended up creating a database called  "anubis" (without _db) and for some reason it did work with no issue.

The LT
Full Member
***
Offline Offline

Activity: 171



View Profile WWW
January 23, 2012, 12:08:06 AM
 #67

Anubis gives me a constant:

Code:
Notice: Undefined index: MHS 5s in /var/www/localhost/htdocs/anubis/index.php on line 359

Along with a very high reject ratio. It doesn't update some other variables as well. I'm using cgminer 2.1.2.

P.S.
I am not dissing the project, but I've run into all sorts of issues installing the script... Please do mention the short_open_tags or get rid of them completely as they aren't turned on by default in many distributions. That said, you need to do more error handling. Currently, there is none.

It's nice to see all those projects get started but I haven't yet seen something more useful than MRTG used in BAMT. I'll surely consider a donation once this gets to a usable state. At the moment, though, i'd be better of using the standard pool's worker notification interface, which already provides me with mh/s and worker-down notifications.

I think that this project needs to be taken back to the drawing board and worked on a bit more. I am mining at deepbit and I fail to see the usefulness of this. The only useful thing it does is temp. reporting, which was easily done before via MRTG and some scripts.

Again, i'd like to stress that I'm not criticizing the project as it is, but I am getting a feeling that a wheel is being reinvented here. I'd really love to see more control over the miners themselves. My feature list would be:

1. Automatic shutoff of the miners based on temperature thresholds.
2. Adjusting cgminer options / start/restart / config file editing.
3. Statistics using mrtg / cacti / nagios / whatever...
4. Pool switching / GPU control / Failover settings / etc...

The above can easily be done (and was done by many) just by using shell scripting along with some basic PHP. A concise, well-written and integrated system would be very welcome. I do feel you're on the right track here, but I would ask you to reevaluate your objectives. Instead of diving even further into Android notifications, I'd divert more attention to basic functionality first.
P4man
Hero Member
*****
Offline Offline

Activity: 518



View Profile
January 23, 2012, 12:16:09 AM
 #68

The LT, you are asking for features which are already in cgminer, while dissing as unneeded features which are not (but are in BAMT).
You are aware this is being developed for.. cgminer, right ? Smiley.

The LT
Full Member
***
Offline Offline

Activity: 171



View Profile WWW
January 23, 2012, 12:26:01 AM
 #69

The LT, you are asking for features which are already in cgminer, while dissing as unneeded features which are not (but are in BAMT).
You are aware this is being developed for.. cgminer, right ? Smiley.

A bit of background here...

BAMT is just what it is, BAMT. Personally, I don't want to run a USB-based distribution, I am running Gentoo on my nodes. It's much cleaner in my opinion. I have written ebuilds for cgminer/app sdk and it's very easy to switch drivers/sdks/cgminer revisions to test different setups.

What the community really needs in my opinion, is a GUI-manager for the rigs. And I didn't really catch what you mean by unneeded features. To me, an MH 5s feature is unneeded (it doesn't work for me in anubis anyway).

cgminer has its own console interactive shell, yes, what we do need though is centralized management. It's a pain to reconfigure 20 nodes for failover pool configuration. At the moment I just upload new configuration files via SFTP and restart the nodes, but it would be great to configure all that graphically.

Am I making any sense here? Smiley
P4man
Hero Member
*****
Offline Offline

Activity: 518



View Profile
January 23, 2012, 12:32:01 AM
 #70

AFAIK, the interface on cgminer doesnt support any of that yet, like pool management or even controlling GPU/fan/clockspeed etc. Its still being worked on. Cant expect those features in anubis before they are even in cgminer.
There are lots of things that can and should be added to it, but this is brand new, and already as it is, I find it extremely useful to be able to monitor my rigs hashrate, temps etc in a single webpage that runs locally on my own machine. Dont have any of the problems you reported btw.

Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
January 23, 2012, 12:36:34 AM
 #71

Am I making any sense here? Smiley
I share some of your concerns which is why I started https://bitcointalk.org/index.php?topic=60329.0

Sadly, it didn't get much response. For some reason people love reinventing the wheel.

The LT
Full Member
***
Offline Offline

Activity: 171



View Profile WWW
January 23, 2012, 12:51:50 AM
 #72

AFAIK, the interface on cgminer doesnt support any of that yet, like pool management or even controlling GPU/fan/clockspeed etc. Its still being worked on. Cant expect those features in anubis before they are even in cgminer.
There are lots of things that can and should be added to it, but this is brand new, and already as it is, I find it extremely useful to be able to monitor my rigs hashrate, temps etc in a single webpage that runs locally on my own machine. Dont have any of the problems you reported btw.

Are you talking about the API or the interactive shell? The interactive shell always supported them and it could be easily done by parsing config files and restarting cgminer. There have been monitoring scripts which parsed cgminer's output even before the API came to be.

I don't have any 'problems' with anubis, it's a fairly simple script at the moment in which problems are easily fixed. And again, thanks and respect go to the author for getting to writing it and sharing it with us! It's great that you find it useful. But well, I am not completely sharing your enthusiasm just yet, because I already have worker monitoring and notifications in deepbit and throttlers/critical temp shutdown scripts on the miner.

For the application to shine, we need statistics and more control over the miners...
The LT
Full Member
***
Offline Offline

Activity: 171



View Profile WWW
January 23, 2012, 12:55:01 AM
 #73

Am I making any sense here? Smiley
I share some of your concerns which is why I started https://bitcointalk.org/index.php?topic=60329.0

Sadly, it didn't get much response. For some reason people love reinventing the wheel.

I've actually bookmarked your topic yesterday. Smiley Haven't gotten to reply to it as it slipped from my eyes. I'll just go there and post... Smiley
Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
January 24, 2012, 10:20:13 AM
 #74

I would like the option for my GPU temps to turn blue if their temps fall too low, as this is a quick way to easily see something is wrong with the pool cgminer is connected to. Sometimes during pool outages cgminer will display an above normal false hash rate, and the average hash rate will take a long time to dip down. GPU temps dropping is the quickest way to see an issue in this scenario.
DBordello
Sr. Member
****
Offline Offline

Activity: 328


BTCPak.com - Exchange your Bitcoins for MP!


View Profile WWW
January 24, 2012, 11:42:38 PM
 #75

Feature request: either started time or the uptime.  It would be nice to see if a miner rebooted.  Maybe highlight it if it rebooted within the last 6 hours.

Keep up time good work.  Dan

www.BTCPak.com - Exchange your bitcoins for MP: Secure, Anonymous and Easy!
heinz
Member
**
Offline Offline

Activity: 83


View Profile
January 27, 2012, 07:05:59 PM
 #76

I started setting this up and had no clue where to begin. I've gotten to a certain point and am looking for a push in the right direction. Any hints appreciated.

http://dl.dropbox.com/u/21735054/Anubis%20-%20a%20cgminer%20web%20frontend.htm
P4man
Hero Member
*****
Offline Offline

Activity: 518



View Profile
January 27, 2012, 07:18:53 PM
 #77

You dont have PHP installed (or its not working).

heinz
Member
**
Offline Offline

Activity: 83


View Profile
January 27, 2012, 07:20:33 PM
 #78

i can pull up http://127.0.0.1/?phpinfo=1 with no problems. Info there populates

I used wamp if that makes any difference.



PHP Version 5.3.9


System   Windows NT SERVER 6.1 build 7601 (Windows 7 Business Edition Service Pack 1) i586
Build Date   Jan 10 2012 16:15:55
Compiler   MSVC9 (Visual C++ 2008)
Architecture   x86
Configure Command   cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static" "--disable-static-analyze"
Server API   Apache 2.0 Handler
Virtual Directory Support   enabled
Configuration File (php.ini) Path   C:\Windows
Loaded Configuration File   C:\wamp\bin\apache\Apache2.2.21\bin\php.ini
heinz
Member
**
Offline Offline

Activity: 83


View Profile
January 27, 2012, 07:35:22 PM
 #79

Fixed. I had my root password wrong.  Grin
jjiimm_64
Legendary
*
Offline Offline

Activity: 1862


View Profile
January 27, 2012, 07:49:33 PM
 #80

i can pull up http://127.0.0.1/?phpinfo=1 with no problems. Info there populates

I used wamp if that makes any difference.



PHP Version 5.3.9


System   Windows NT SERVER 6.1 build 7601 (Windows 7 Business Edition Service Pack 1) i586
Build Date   Jan 10 2012 16:15:55
Compiler   MSVC9 (Visual C++ 2008)
Architecture   x86
Configure Command   cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static" "--disable-static-analyze"
Server API   Apache 2.0 Handler
Virtual Directory Support   enabled
Configuration File (php.ini) Path   C:\Windows
Loaded Configuration File   C:\wamp\bin\apache\Apache2.2.21\bin\php.ini

see if the other php webmonitor works?
https://bitcointalk.org/index.php?topic=58834.0

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
heinz
Member
**
Offline Offline

Activity: 83


View Profile
January 27, 2012, 08:00:29 PM
 #81

No, other php web monitor does not work either. I don't have anubis right it appears either. Still missing something.

http://dl.dropbox.com/u/21735054/Anubis%20-%20a%20cgminer%20web%20frontend.htm
P4man
Hero Member
*****
Offline Offline

Activity: 518



View Profile
January 27, 2012, 08:04:23 PM
 #82

See post 34 and 35 of this thread.

heinz
Member
**
Offline Offline

Activity: 83


View Profile
January 27, 2012, 08:42:29 PM
 #83

php_socket was disabled. Much thanks P4man.
Eveofwar
Sr. Member
****
Offline Offline

Activity: 406


View Profile
January 29, 2012, 04:18:25 AM
 #84

Anubis breaks when using cgminer 2.2.0 -- there were some JSON changes I believe.
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 29, 2012, 08:06:48 PM
 #85

yeah I came here to point that out as well, just upgraded all my rigs to 2.2.0 and now no Anubis - we need a fix ocminer! Smiley
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 30, 2012, 11:40:55 PM
 #86

Hey Guys!

Sorry for the delay, I'm really busy at work at this time.

I've made a bugfix for you, everything should be back to normal:

http://dl.dropbox.com/u/14741109/anubis-1.03.tar.gz

Let me know if there are any problems, Anubis 1.03 should support both older and new CGMiner Releases without problems.

Have fun !

ocminer

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 30, 2012, 11:49:32 PM
 #87

ocminer:

Awesome job getting this out so quickly!

I am going to send another 1 BTC Donation and I also have a couple of feature requests for you.

1) Make it so it knows the difference between a GPU that has been Disabled and one that is Dead
2) Make a Display Mode or password protect configuration and adding hosts so you can show your anubis to others

if you add these features in the next version I will make a much bigger donation this time (I dont know about anyone else but I have donated at every release)

thanks again for this project!
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 30, 2012, 11:51:34 PM
 #88

Hey cablepair, thanks for your donation !

ATM there is no difference if a card is disabled or dead, anubis simply marks that rig, or that card, "red".

What would you prefer ? Should I leave it green ? Mark it yellow ? Any idea ?

This "demo mode" will come as soon as I have some spare time (maybe by the weekend, this week will be pretty hard).


suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 30, 2012, 11:54:16 PM
 #89

right its frustrating to have it show red when in reality everything is fine, it should distinguish between disabled and dead, it should just show green if one of the GPUs is disabled because nothing is wrong , you purposely disabled it, if its dead it should show red. to indicate something is wrong
ocminer
Legendary
*
Offline Offline

Activity: 1918



View Profile WWW
January 30, 2012, 11:58:03 PM
 #90

Well I had some issues where cards where automatically disabled due to overheating.

If cards do overheat, cgminer puts them on "Disabled" instead of "Dead" or something else which
is correct, but that disabled/overheated card would then also be marked as green.

I'll probably put in some switch "Mark disabled cards red ?" so everyone can decide for themselves.


suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
DBordello
Sr. Member
****
Offline Offline

Activity: 328


BTCPak.com - Exchange your Bitcoins for MP!


View Profile WWW
January 31, 2012, 01:08:44 AM
 #91

1.03 is working great, thank!

www.BTCPak.com - Exchange your bitcoins for MP: Secure, Anonymous and Easy!
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 31, 2012, 02:57:25 AM
 #92

Well I had some issues where cards where automatically disabled due to overheating.

If cards do overheat, cgminer puts them on "Disabled" instead of "Dead" or something else which
is correct, but that disabled/overheated card would then also be marked as green.

I'll probably put in some switch "Mark disabled cards red ?" so everyone can decide for themselves.



that would be excellent thank you

just to note ... I have been using cgminer since the very first version and I have never had it mark my cards as disabled they are always either sick or dead if there is a problem, with the latest version 2.2.1 if you disable your card its marked as OFF now

looking forward to next release - thanks for the great work you do!
AV
Hero Member
*****
Offline Offline

Activity: 910



View Profile
January 31, 2012, 12:53:26 PM
 #93

W2k3
IIS6
PHP 5.2.9

Code:
Fatal error: Call to undefined function socket_create() in C:\Inetpub\wwwroot\anubis\index.php on line 175

WTF ?
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
January 31, 2012, 01:25:03 PM
 #94

W2k3
IIS6
PHP 5.2.9

Code:
Fatal error: Call to undefined function socket_create() in C:\Inetpub\wwwroot\anubis\index.php on line 175

WTF ?

I know the solution. Go Install Linux. Tongue
Isepick
Full Member
***
Offline Offline

Activity: 181


View Profile
January 31, 2012, 01:38:54 PM
 #95

W2k3
IIS6
PHP 5.2.9

Code:
Fatal error: Call to undefined function socket_create() in C:\Inetpub\wwwroot\anubis\index.php on line 175

WTF ?

go here: https://bitcointalk.org/index.php?topic=58834.msg702649#msg702649

Gotta mess with the php.ini...I have Anubis running on Win7 x64 w/ IIS7, so you don't need to learn a whole 'nother OS. It is definitely worth it to work through the issues to get this running tho. Now if it just had some control buttons so I can remotely change settings...
AV
Hero Member
*****
Offline Offline

Activity: 910



View Profile
January 31, 2012, 03:55:39 PM
 #96

Isepick, thanks.
I`m uncomment
Code:
extension=ext/php_sockets.dll
in windows/php.ini,
reboot and Anubis work !
The LT
Full Member
***
Offline Offline

Activity: 171



View Profile WWW
February 02, 2012, 07:14:34 AM
 #97

W2k3
IIS6
PHP 5.2.9

Code:
Fatal error: Call to undefined function socket_create() in C:\Inetpub\wwwroot\anubis\index.php on line 175

WTF ?

I know the solution. Go Install Linux. Tongue

A little tip. Avoid giving usesless suggestions.
Another tip for the packager: give a list of PHP modules needed for proper functioning of the application.
Eveofwar
Sr. Member
****
Offline Offline

Activity: 406


View Profile
February 03, 2012, 05:14:32 AM
 #98

Minor bug

ANUBIS Version 1.03
cgminer 2.2.1

When I change the intensity in cgminer, it's not being updated in ANUBIS.  I use -I 8 for my batch file to start cgminer, and "8" is being displayed, but if I drop a card to "4", the intensity still displays as "8", even though the MH/s 5s is slower.
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
February 03, 2012, 11:45:17 AM
 #99

W2k3
IIS6
PHP 5.2.9

Code:
Fatal error: Call to undefined function socket_create() in C:\Inetpub\wwwroot\anubis\index.php on line 175

WTF ?

I know the solution. Go Install Linux. Tongue

A little tip. Avoid giving usesless suggestions.
Another tip for the packager: give a list of PHP modules needed for proper functioning of the application.

usesless is not a word.

p.s. Linux is much better suited to run apache web server and php then Windows server 2003, and if you cant see that then your just as usesless as windows
bronan
Hero Member
*****
Offline Offline

Activity: 758


Lazy Lurker Reads Alot


View Profile WWW
February 03, 2012, 11:55:08 AM
 #100

oh god not just another flame windows thread ..... dude if some hates linux he should not be flamed
i can run linux but yes i hate it .... its not the uber os PERIOD. Its just another
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
February 04, 2012, 12:02:33 AM
 #101

W2k3
IIS6
PHP 5.2.9

Code:
Fatal error: Call to undefined function socket_create() in C:\Inetpub\wwwroot\anubis\index.php on line 175

WTF ?

I know the solution. Go Install Linux. Tongue

A little tip. Avoid giving usesless suggestions.
Another tip for the packager: give a list of PHP modules needed for proper functioning of the application.

usesless is not a word.

p.s. Linux is much better suited to run apache web server and php then Windows server 2003, and if you cant see that then your just as usesless as windows
Move on dude.  And if you are going to be a dick about correcting what is obviously a simple typo, make sure you don't have any yourself...

Eveofwar
Sr. Member
****
Offline Offline

Activity: 406


View Profile
February 04, 2012, 12:20:30 AM
 #102

Minor bug

ANUBIS Version 1.03
cgminer 2.2.1

When I change the intensity in cgminer, it's not being updated in ANUBIS.  I use -I 8 for my batch file to start cgminer, and "8" is being displayed, but if I drop a card to "4", the intensity still displays as "8", even though the MH/s 5s is slower.

Don't want this to get lost in the uselessness that was just made.
Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
February 04, 2012, 06:25:29 PM
 #103

Found an odd bug, in the config.php page trying to change the red value of "min. % of desired average MH/s" does not work, it appears to be locked on 90. Other values on that page can be changed though.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2338


Ruu \o/


View Profile WWW
February 04, 2012, 11:11:24 PM
 #104

How robust is this tool to cope with additions (i.e. not changes but more fields) to the  API? It should be able to. Planning on adding maybe two more entries next version.


Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
February 06, 2012, 03:44:21 PM
 #105

I just found another bug. If multiple machines connected to ANUBIS are down, ANUBIS seems to time out its connection attempts one at a time to each machine. So in my case, having over a dozen machines down made it take several minutes for the page to actually load.
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 07, 2012, 11:59:50 PM
 #106

Minor bug

ANUBIS Version 1.03
cgminer 2.2.1

When I change the intensity in cgminer, it's not being updated in ANUBIS.  I use -I 8 for my batch file to start cgminer, and "8" is being displayed, but if I drop a card to "4", the intensity still displays as "8", even though the MH/s 5s is slower.

Don't want this to get lost in the uselessness that was just made.
Probably was caused by:
prior to 2.2.2 fix:
 - Bug intensity always shows GPU 0
That I found recently.

Now I'm reading here to find out about ckolivas' comment above that didn't get replied to.

I upped the API version (1.0 to 1.1) in 2.2.2 coz I added "Last Share Time" and "Last Share Pool" to devs/gpu/cpu stats
Thus if you want that (what I at least consider quite useful) you can check the version is 1.1 (or greater)
However the norm will now be to increment the second number when I add new output thus anyone who requires specific output can check if the cgminer API version has it.

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 08, 2012, 01:34:05 AM
 #107

***Bug***

in function request, the sub-request socket port is hard-coded to 4028, rather than the value in the data base


$socket2 = getsock($host, 4028);

should be

$socket2 = getsock($host, $hostport);

P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 11, 2012, 01:23:14 AM
 #108

Workin' on a lil' something...



Doesn't change values right now, but won't take me too long (I think).

P.S. I hate java script. Someone else can make it more pretty.
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 11, 2012, 06:40:35 AM
 #109

You do realise that some of those options are rather pointless as I explained when adding them?
If cgminer has --auto-gpu set then changing GPU will only be temporary.
They really are only of use to someone who writes a full monitoring tool that adjusts GPU and Fan
(and has --auto-gpu and --auto-fan NOT set)

Setting Intensity should stay set, as also VDDC.

But the other 3 can be controlled by cgminer and really should be left alone and allow cgminer to manage them with --auto-gpu and --auto-fan

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 11, 2012, 07:18:31 AM
 #110

I was wondering if the API would accept a GPU clock range.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 11, 2012, 07:32:22 PM
 #111

For the API:
Make GPU Clock & Fan Speed accept a range
- range = auto, as per...
- single value = set just to that value
Add target temp

Job's a good'un Smiley

Also add uptime.
sveetsnelda
Hero Member
*****
Offline Offline

Activity: 620


View Profile
February 11, 2012, 07:58:38 PM
 #112

Setting Intensity should stay set, as also VDDC.

I'll agree with VDDC, but not with Intensity...  I've been waiting for a way to change intensity through RPC for quite a while because I use all of my rigs for other things.  When I go to use it to hash other things, I manually touch all 25 rigs to turn the intensity to "d" because I still want CGMiner running my fanspeed in the background (and it also gives me a good way to look and see if any cards are dead through RPC).

14u2rp4AqFtN5jkwK944nn741FnfF714m7
jjiimm_64
Legendary
*
Offline Offline

Activity: 1862


View Profile
February 11, 2012, 08:59:15 PM
 #113

Setting Intensity should stay set, as also VDDC.

I'll agree with VDDC, but not with Intensity...  I've been waiting for a way to change intensity through RPC for quite a while because I use all of my rigs for other things.  When I go to use it to hash other things, I manually touch all 25 rigs to turn the intensity to "d" because I still want CGMiner running my fanspeed in the background (and it also gives me a good way to look and see if any cards are dead through RPC).

the webmon will do intensity..  but even if you select one gpu, it does it for all of them

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 12, 2012, 12:49:05 AM
 #114

...
Setting Intensity should stay set, as also VDDC.
...
Quoting myself Tongue

You can already change all 5 with the API, however:

Those two (Intensity and VDDC) WHEN you change them with the API will stay changed since cgminer doesn't change them itself automatically from what you set them to (you can have dynamic intensity - but you set that with 'D' in the API also - if you set it with any value - it of course is no longer Dynamic - that's how the keyboard interface works in cgminer).

The other three (fan, cpu, mem) WHEN you change them through the API will only stay changed if you aren't using --auto-gpu and/or --auto-fan
i.e. if you want to write your own algorithm to adjust those 3 - that CONSTANTLY monitors them through the API, then you can with the API - of course as long as you don't specify --auto-gpu and/or --auto-fan when you start cgminer
HOWEVER, that also means that if you don't write your algo very good you can mess up your miner ...
(again that is how the keyboard interface works in cgminer)

I will also add that somewhere in between the above of being able to play with those 3 value ranges and limit settings is rather pointless IMO.
You should configure your miner with those 3 (limit and ranges etc) correctly (adjusting as necessary from the normal interface when you start cgminer) and then set them as your initial run settings and leave them alone - though most people shouldn't even ever need to change the defaults.

Adding that to the API will also require reporting all those settings ... the ranges, limits etc.
So at the moment it also makes no sense to change them when you can't even see them.

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
jjiimm_64
Legendary
*
Offline Offline

Activity: 1862


View Profile
February 12, 2012, 01:32:01 AM
 #115

...
Setting Intensity should stay set, as also VDDC.
...
Quoting myself Tongue

You can already change all 5 with the API, however:

Those two (Intensity and VDDC) WHEN you change them with the API will stay changed since cgminer doesn't change them itself automatically from what you set them to (you can have dynamic intensity - but you set that with 'D' in the API also - if you set it with any value - it of course is no longer Dynamic - that's how the keyboard interface works in cgminer).

The other three (fan, cpu, mem) WHEN you change them through the API will only stay changed if you aren't using --auto-gpu and/or --auto-fan
i.e. if you want to write your own algorithm to adjust those 3 - that CONSTANTLY monitors them through the API, then you can with the API - of course as long as you don't specify --auto-gpu and/or --auto-fan when you start cgminer
HOWEVER, that also means that if you don't write your algo very good you can mess up your miner ...
(again that is how the keyboard interface works in cgminer)

I will also add that somewhere in between the above of being able to play with those 3 value ranges and limit settings is rather pointless IMO.
You should configure your miner with those 3 (limit and ranges etc) correctly (adjusting as necessary from the normal interface when you start cgminer) and then set them as your initial run settings and leave them alone - though most people shouldn't even ever need to change the defaults.

Adding that to the API will also require reporting all those settings ... the ranges, limits etc.
So at the moment it also makes no sense to change them when you can't even see them.

Kano:
  I agree with everything you said.   I for one dont run gpu-auto, my rigs seam to be more stable with a set clock.  I do run fan-auto for cooling.  

I may have jumped into the middle of a Intensity conversation about 'staying'.  i was not referring to that.  I was answering sveetsnelda statement about looking for a way to do the intensity thru the rpc and my webmon tool will adjust intensity.  

then i wanted to comment that, if you change ONE gpu, all of them are set thru the api.

webmon post debug and message:  (the post would do all if [gpu] => all )
Code:
Array
(
    [rig] => miner1
    [command] => gpuintensity
    [gpu] => 0
    [newValue] => 5
    [gpuList] => 0,1,2,3,4
    [submit] => adjustRig
)
1

Rig: miner1 Message: GPU 0 set new intensity to 5

result:
Code:
GPU 0: 73.0C 1720RPM 27% | 394.5/394.8Mh/s | 850Mhz 300Mhz 0.99V A:665 R:14 HW:0 U:5.16/m I: 5
GPU 1: 73.5C 1555RPM 27% | 394.1/394.7Mh/s | 850Mhz 300Mhz 0.99V A:666 R:9 HW:0 U:5.16/m I: 5
GPU 2: 74.0C 1737RPM 27% | 394.6/394.8Mh/s | 850Mhz 300Mhz 0.99V A:729 R:20 HW:0 U:5.65/m I: 5
GPU 3: 73.5C 1750RPM 27% | 394.5/394.7Mh/s | 850Mhz 300Mhz 0.99V A:742 R:13 HW:0 U:5.75/m I: 5
GPU 4: 73.5C 1722RPM 28% | 381.7/380.2Mh/s | 850Mhz 300Mhz 0.99V A:342 R:3 HW:356 U:2.65/m I: 5

EDIT:
sorry to hijack the post.  but when I went to set the rig back to 7,

Code:
Array
(
    [rig] => miner1
    [command] => gpuintensity
    [gpu] => 1
    [newValue] => 7
    [gpuList] => 0,1,2,3,4
    [submit] => adjustRig
)
1

Rig: miner1 Message: GPU 1 set new intensity to 7

It appears that only if you ask for gpu 0 intesity will anything be done.  the rig did NOT go back to 7 , or even gpu 1 didn't

Code:
GPU 0: 73.5C 1726RPM 27% | 390.2/394.6Mh/s | 850Mhz 300Mhz 0.99V A:678 R:14 HW:0 U:5.05/m I: 5
GPU 1: 74.0C 1558RPM 27% | 393.5/394.7Mh/s | 850Mhz 300Mhz 0.99V A:694 R:12 HW:0 U:5.17/m I: 5
GPU 2: 73.5C 1739RPM 27% | 394.3/394.7Mh/s | 850Mhz 300Mhz 0.99V A:759 R:21 HW:0 U:5.66/m I: 5
GPU 3: 73.5C 1749RPM 27% | 394.3/394.5Mh/s | 850Mhz 300Mhz 0.99V A:761 R:17 HW:0 U:5.67/m I: 5
GPU 4: 73.5C 1708RPM 28% | 381.4/380.2Mh/s | 850Mhz 300Mhz 0.99V A:354 R:4 HW:368 U:2.64/m I: 5

so it appear that.

api call set intensity gpu 0, will set all gpus
api call set intensity other gpu, nothing happens,  but the message said OK


1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 12, 2012, 01:55:52 AM
 #116

Nope Smiley
There was bug fix in 2.2.2 for that (but you shouldn't use 2.2.2 ever) so using any version after 2.2.2 fixes it.

That I reported in the thread:
https://bitcointalk.org/index.php?topic=28402.msg731640#msg731640

And was then mentioned in the following update where the pull request was put in:
https://bitcointalk.org/index.php?topic=28402.msg733660#msg733660
(2nd last one)

So what I guess is happening is you are using a 2.2.1 or earlier cgminer and it reports the GPU 0 intensity for all GPUs even if they are different.
Setting them works fine and if you look at the cgminer screen it will show them changing independently but the API reports the value of GPU0 for all GPUs

Update cgminer Smiley

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
sveetsnelda
Hero Member
*****
Offline Offline

Activity: 620


View Profile
February 12, 2012, 01:56:49 AM
 #117

Quoting myself Tongue

Heh.  I just re-read the original post and realized that I misinterpreted it.  I read "Intensity should stay set" as "it's pointless to have the ability to change it through the API".

This is what I get for reading the post out of context.  Cheesy

14u2rp4AqFtN5jkwK944nn741FnfF714m7
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 12, 2012, 02:01:22 AM
 #118

Quoting myself Tongue

Heh.  I just re-read the original post and realized that I misinterpreted it.  I read "Intensity should stay set" as "it's pointless to have the ability to change it through the API".

This is what I get for reading the post out of context.  Cheesy
Nah - I quoted myself and explained in for that reason - I could see there could have been some confusion of what I meant Smiley

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
jjiimm_64
Legendary
*
Offline Offline

Activity: 1862


View Profile
February 12, 2012, 02:14:02 AM
 #119

Nope Smiley
There was bug fix in 2.2.2 for that (but you shouldn't use 2.2.2 ever) so using any version after 2.2.2 fixes it.

That I reported in the thread:
https://bitcointalk.org/index.php?topic=28402.msg731640#msg731640

And was then mentioned in the following update where the pull request was put in:
https://bitcointalk.org/index.php?topic=28402.msg733660#msg733660
(2nd last one)

So what I guess is happening is you are using a 2.2.1 or earlier cgminer and it reports the GPU 0 intensity for all GPUs even if they are different.
Setting them works fine and if you look at the cgminer screen it will show them changing independently but the API reports the value of GPU0 for all GPUs

Update cgminer Smiley

sorry bout that....  forums getting HUGE, and yes, search works well. 

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 12, 2012, 07:18:47 AM
 #120

Got it working now Smiley
It ain't pretty, but it does what it should.

Still would like for a single clk setting to force that one clk, then sending a range value ('500-800' etc.) to re-enable the gpu-auto. Same for fan speed.
dlasher
Sr. Member
****
Offline Offline

Activity: 417



View Profile WWW
February 14, 2012, 11:01:35 PM
 #121

wanted to say, got this working today, nice job.. great software, appreciate sharing.. Smiley

Couple suggestions for things to add to your initial post:

Requirements:
-- needs php, php-mysql

php config :
set "short_open_tag" to "enabled" in /etc/php.ini
dlasher
Sr. Member
****
Offline Offline

Activity: 417



View Profile WWW
February 15, 2012, 06:42:45 AM
 #122


Not sure if you have a feature request list, but I'd put this:

-- Graphs
-- ways to explore historical information? (like, how long has that card been throttling?)
-- configurable notifications, and way to test them?

P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 15, 2012, 06:02:23 PM
 #123


Not sure if you have a feature request list, but I'd put this:

-- Graphs
-- ways to explore historical information? (like, how long has that card been throttling?)
-- configurable notifications, and way to test them?



You'll have to find another app to do that. Anubis is a PHP script, it just runs once when the page loads. It can't do any monitoring / data logging etc. It just shows snap-shots of the current situation.
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
February 15, 2012, 09:51:43 PM
 #124


Not sure if you have a feature request list, but I'd put this:

-- Graphs
-- ways to explore historical information? (like, how long has that card been throttling?)
-- configurable notifications, and way to test them?


I was working on integrating cgminer with Nagios and Cacti.  This would give all the historical information. I've been busy working on another project though, so I haven't done much with it recently.

ThiagoCMC
Legendary
*
Offline Offline

Activity: 1190

฿itcoin: Currency of Resistance!


View Profile
February 18, 2012, 01:49:56 AM
 #125

Guys,

 Sorry about my dumb question...

 I'm running CGMiner for a couple months and, today I restart all my mining rigs and start ANUBIS and... I'm seeing a LOTS of "Discards", some hosts have "97.12% of Discarted"...

 What is that means?!!?

Best,
Thiago
ThiagoCMC
Legendary
*
Offline Offline

Activity: 1190

฿itcoin: Currency of Resistance!


View Profile
February 18, 2012, 04:45:17 AM
 #126

Guys,

 Sorry about my dumb question...

 I'm running CGMiner for a couple months and, today I restart all my mining rigs and start ANUBIS and... I'm seeing a LOTS of "Discards", some hosts have "97.12% of Discarted"...

 What is that means?!!?

Best,
Thiago


I figured that out! Tks!
vapourminer
Legendary
*
Offline Offline

Activity: 1363

what is this "brake pedal" you speak of?


View Profile
February 20, 2012, 04:55:08 PM
 #127

just got around to trying this out. nice! although I found out Im dumber than I thought as it took an hour to get it running even with easyphp. I am a total noob with webservers but Im alernin. on win 7 here on this box.

found a bug, if you add a miner that doesnt have --api-network and --api-listen (DOH!) its added "invisibly" - mine showed 4 hosts, and displayed 3. it slowed it down on refresh by LOTS. cant delete it in anubus as its not visible. I deleted it out of mysql though so its all good now.

sent 1.112211 BTC to ocminer. thanks!

P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 20, 2012, 05:59:18 PM
 #128

found a bug, if you add a miner that doesnt have --api-network and --api-listen (DOH!) its added "invisibly" - mine showed 4 hosts, and displayed 3. it slowed it down on refresh by LOTS. cant delete it in anubus as its not visible. I deleted it out of mysql though so its all good now.

I've fixed that. Just about done with my mods.

Thing is, OCminer seems to have disappeared, so I'm not sure what to do with what I've done :/
vapourminer
Legendary
*
Offline Offline

Activity: 1363

what is this "brake pedal" you speak of?


View Profile
February 20, 2012, 06:12:04 PM
 #129

yeah I got that impression too, hopefully he is OK and his wallet is accessible to him. even if he dropped this he still deserves the donation.

saw some cool stuff in this thread beyond the current version, hopefully there will be ongoing support and even more development.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 20, 2012, 09:59:47 PM
 #130

Anyone wanna be a guinnea pig and help exercise my version? PM me your email, and I'll send it.
(Don't want to make it fully available until OCMiner reappears!)

Changes:
90% re-written (no lie!) OCMiner repeated a lot (A LOT) of code on each page, I moved it all to more easily maintained functions.
Changed database API from MYSQL specific, to PDO, which allows for nearly any database to be used. I personally use SQLite. I've only coded and tested for MYSQL and SQLite, but you can add your own fairly easily.
Changed the way some items are displayed:
- Max temp rather than avg temp
- Share ordering is more consistant across host/device display
- Added utility
- Added both absolute quantity and percentage of shares to each item
- Missing / invalid values displayed more gracefully
- Other nip/tucks here and there.
Added pool display to host data:
- Added priority pool selection.
Added new device management page:
- Start / stop / restart each device
- change all settings CGminer Allows:
-- GPU Clock
-- MEM clock
-- GPU voltage
-- Fan speed
-- Intensity

Caveats:
This won't work if you're moving up from OCminer's initial versions which didn't have the port selection. You'll have to step up to his 1.03 version (which adds the port to the database), then on to this.
Uses PDO database interface. I have no idea if your machine will support it (it *SHOULD* - the direct, database specific API is being depreciated).
I suck at javascript. Could do with some tidying up / beautification.

Crappy screen shots:

Hosts listing:


Host detail


Device detail


Host list expanded to show everything
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 21, 2012, 01:11:18 PM
 #131

Just so you know in advance - since that (and the earlier version I commented on) is the first time I've seen anyone use that part of the API (other than my example miner.php) :)

With the changes to the cgminer API coming up next time there is a release (API version 1.2), if you only display data - there is no difference.

However if you use the commands that change cgminer like the gpu settings commands, save, quit, switchpool etc. (seems rare that anyone does actually use anything but quit) it will return an error (Access denied to '???' command) with your cgminer settings if you use the same settings in a new version of cgminer as you currently use

You will need to use the previously added --api-allow and also use the new 1.2 change that I've just added to put a "W:" in front of IP addresses and IP address ranges that you want to allow to change cgminer (write/privileged access)

Basically the idea being that you can allow IP addresses to view cgminer but also restrict which IP addresses can change cgminer (or even allow none to)
One way you can test for this change is with the API version which will be 1.2
You can also test for privileged access with the new 1.2 command 'privileged'
... old versions of cgminer will give an error saying it doesn't exist, new versions will give an error if you don't have privileged access and a success message if you do have privileged access

And lastly what is an unavoidable bug in probably every piece of API usage software, that you can fix with 1.2:
At the moment you probably look for "MHS 5s" to find the 5s average.
That will actually fail if anyone starts cgminer with the --log option with some value other than 5.
You can find the correct value for '5' with the 'config' command in the new 1.2 "Log Interval" - which of course will be '5' unless someone runs cgminer with the --log option.
(The --log option has been in cgminer for a long time)
So if "Log Interval" is "10" then you should look for "MHS 10s" not "MHS 5s"

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 21, 2012, 05:17:40 PM
 #132

And lastly what is an unavoidable bug in probably every piece of API usage software, that you can fix with 1.2:
At the moment you probably look for "MHS 5s" to find the 5s average.
That will actually fail if anyone starts cgminer with the --log option with some value other than 5.
You can find the correct value for '5' with the 'config' command in the new 1.2 "Log Interval" - which of course will be '5' unless someone runs cgminer with the --log option.
(The --log option has been in cgminer for a long time)
So if "Log Interval" is "10" then you should look for "MHS 10s" not "MHS 5s"

Hmm, so the received parameter name is "MHS XXX"? Where XXX is the preset inverval... OK.

Thanks for that Kano, I shall bear that all in mind. Anubis is pretty basic/dumb as far as checking what's going on right now.
For instance, the result of any set is ignored. If the get values are updated to what you want, it worked. If not, it didn't work Smiley The user is the feedback.
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
February 21, 2012, 05:19:16 PM
 #133

Please post git of the your mods.  I would like to pull it and possibly start working on it.  I want to make CGminer my default miner, but it needs some work to fit my needs... might be that ANUBIS can be extended to add what I need.

I'd rather not work on older code if this fork is going to be the primary.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 21, 2012, 05:22:32 PM
 #134

Hey Inaba... I'll mail it to you, but I don't really want to upload it anywhere without OCMiners blessing. It is his afterall. I feel a bit awkward about taking it over without first consulting him. Would prefer to wait till he comes back, but I guess if he doesn't show up, I may have to. :/
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 21, 2012, 05:24:11 PM
 #135

...
Thanks for that Kano, I shall bear that all in mind. Anubis is pretty basic/dumb as far as checking what's going on right now.
For instance, the result of any set is ignored. If the get values are updated to what you want, it worked. If not, it didn't work Smiley The user is the feedback.
Well that's coz cgminer can't insist that the ATI driver change it to whatever you say.
However, you can, in your PHP (or whatever it is) check the value later and mention that it didn't change to the expected value.
But the API works that way coz that's how it works in the screen text interface, except the text interface sleeps for a second and then displays the settings - not having the API do that (go to sleep for a second before replying - which would not be ideal) also allows your app to decide if it wants to do that or not.

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
February 21, 2012, 05:26:08 PM
 #136

Thanks P_Shep, that's fine, but you can create a new git and work on your branch and then if/when he comes back, request that he does a pull into the main branch.  That's what is nice about git - it lets you work on your own branch and lets other pull in the parts they want into their branches (or main trunk as the case may be)

Also - there was another web front end thingy floating around someone suggested merging with ANUBIS - I can't find that thread again, but it has some features ANUBIS was missing.  Does anyone know where that thread is?

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 21, 2012, 05:29:03 PM
 #137

I see. I've used GIT occasionally for getting code, but don't really know how it works. I'll look in to it.
Guess I'll have to set a project up in place of OCMiner since he's not using git.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 21, 2012, 05:31:44 PM
 #138

You will need to use the previously added --api-allow and also use the new 1.2 change that I've just added to put a "W:" in front of IP addresses and IP address ranges that you want to allow to change cgminer (write/privileged access)

Basically the idea being that you can allow IP addresses to view cgminer but also restrict which IP addresses can change cgminer (or even allow none to)
One way you can test for this change is with the API version which will be 1.2
You can also test for privileged access with the new 1.2 command 'privileged'
... old versions of cgminer will give an error saying it doesn't exist, new versions will give an error if you don't have privileged access and a success message if you do have privileged access

I was thinking... having a web interface basically invalidates this, but then it's up to the admin to restrict access to the web interface. essentially 'SEP' Wink
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 21, 2012, 05:39:11 PM
 #139

Thanks P_Shep, that's fine, but you can create a new git and work on your branch and then if/when he comes back, request that he does a pull into the main branch.  That's what is nice about git - it lets you work on your own branch and lets other pull in the parts they want into their branches (or main trunk as the case may be)

Also - there was another web front end thingy floating around someone suggested merging with ANUBIS - I can't find that thread again, but it has some features ANUBIS was missing.  Does anyone know where that thread is?

https://bitcointalk.org/index.php?topic=28967.msg760880#msg760880

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
February 21, 2012, 05:50:06 PM
 #140

Nope, that wasn't it.  Although I keep meaning to look into BAMT. 

Here it is: https://bitcointalk.org/index.php?topic=58834.0

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 21, 2012, 07:18:09 PM
 #141

Nope, that wasn't it.  Although I keep meaning to look into BAMT. 

Here it is: https://bitcointalk.org/index.php?topic=58834.0

Ah I didn't think of jjiimm_64's coz he's discussing ANUBIS here on page 6 and 7 also Smiley

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 21, 2012, 07:34:49 PM
 #142

After getting ocminer's blessing, I've put it on github.
I really don't know what I'm doing with this, but it's here:
https://github.com/pshep/ANUBIS
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 22, 2012, 12:29:21 AM
 #143

Just made a couple more minor changes.
vapourminer
Legendary
*
Offline Offline

Activity: 1363

what is this "brake pedal" you speak of?


View Profile
February 22, 2012, 02:12:58 AM
 #144

grabbed the -bc20688 git.

copied the files over the old anubus 1.03 files in apache (win7), uncommented extension=php_pdo.dll, extension=php_pdo_mysql.dll in php.ini and edited the db name/password and set db_mysql to 1, the other to 0 (other stuff was OK) in config.inc.php.

fired it up...

and got a blank web page lol.

Im new to this web server stuff, so I must of missed something. Ill try again tomorrow with the latest git and double check everything again.

screenshots look great BTW.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 22, 2012, 02:29:08 AM
 #145

Might be more PDO stuff to fiddle with.

Find the apache error log, and see what it says.

Blank page could be a basic parsing error, that is a syntax error (i.e. missing ';' etc.)
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 23, 2012, 12:03:53 AM
 #146

So no more problems then?

I must be better than I thought Smiley
vapourminer
Legendary
*
Offline Offline

Activity: 1363

what is this "brake pedal" you speak of?


View Profile
February 23, 2012, 01:05:18 AM
 #147

So no more problems then?

I must be better than I thought Smiley

just got in; busy day.

it was a config error in php.ini, had zen tags (think that was what it was) enabled. disabled it and presto fired right up. changed some settings and the miners reflected them right away.

sweet! my life just got a bit easier Smiley

got a bitcoin addy? ill send ya  a coin.

P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 23, 2012, 01:43:33 AM
 #148

Good to hear!

I'm not so proud as to refuse a donation Cheesy
1Fxpijq1NN52LzSzD2WtGbT3ZTWq366ejj

Thanks dude Smiley
vapourminer
Legendary
*
Offline Offline

Activity: 1363

what is this "brake pedal" you speak of?


View Profile
February 23, 2012, 02:08:46 AM
 #149

sent 1.33221100 to ya.

and again, thanks for the additional functions.

chungenhung
Legendary
*
Offline Offline

Activity: 1134


View Profile
February 23, 2012, 03:25:36 PM
 #150

Using Wampserver on Win7.
My php.ini file
Code:
short_open_tag
   Default Value: On
   Development Value: Off
   Production Value: Off

OP stated to set it to "enabled", but the ini file is showing "Default Value: On". Is the code above correct?
I've added the db and configured user/pass for it. When I open the webpage, it shows me a rendered page, but with a bunch of codes behind it.
Code:
$sql = "SHOW TABLES"; $result = mysql_query($sql); if (!$result) { echo "DB Fehler, konnte Tabellen nicht auflisten\n"; echo 'MySQL Fehler: ' . mysql_error(); exit; } while ($row = mysql_fetch_row($result)) { if ($row[0] == "configuration") $gotconfigtbl = 1; if ($row[0] == "hosts") $gothoststbl = 1; } if (isset($gothoststbl) && $gothoststbl == 1) { $result = mysql_query("SHOW COLUMNS FROM hosts"); if (!$result) { echo 'Konnte Abfrage nicht ausführen: ' . mysql_error(); exit; } if (mysql_num_rows($result) > 0) { while ($row = mysql_fetch_assoc($result)) { if ($row['Field'] == "port") $gotport = 1; } } if (!isset($gotport)) { $alterstrg = "ALTER TABLE `hosts` ADD `port` SMALLINT NOT NULL DEFAULT '4028'"; $alterres = mysql_query($alterstrg); if (!$alterres) { echo 'There was an error updating the database ! : ' . mysql_error(); } } } $sumactivegpus = 0; $sumgpus = 0; $sumhosts = 0; $sumtemp = 0; $sumdesmhs= 0; $summhs5s = 0; $summhsavg = 0; $sumrejects = 0; $sumdiscards = 0; $sumstales = 0; $sumgetfails = 0; $sumremfails = 0; //echo "c: $gotconfigtbl h: $gothoststbl"; if (!isset($gotconfigtbl)) { //echo "creating config-table"; include("configtbl.sql.php"); } if (!isset($gothoststbl)) { //echo "creating hosts-table"; include("hoststbl.sql.php"); } // <-- checking for tables $configq = mysql_query('SELECT * FROM configuration'); if (!$configq) { die('FATAL: MySQL-Error: ' . mysql_error()); } $config = mysql_fetch_object($configq); $result = mysql_query('SELECT name,address,id AS hostid,mhash_desired,port FROM hosts'); if (!$result) { die('FATAL: MySQL-Error: ' . mysql_error()); } ?>

Trading MtGox USD for Dwolla/ACH deposit/Chase cash deposit
https://bitcointalk.org/index.php?topic=90115.0
Buy/Sell Call/Put Bitcoin options https://bitcointalk.org/index.php?topic=99853.0
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 23, 2012, 05:30:31 PM
 #151

PHP simply isn't working there. It's showing the script rather than running it.

See if you can google the problem. I'm afraid I'm not a php installation expert.
echris1
Full Member
***
Offline Offline

Activity: 125


View Profile
February 23, 2012, 09:15:09 PM
 #152

very cool, this replaces a few different tabs and windows.  donation sent =)
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 23, 2012, 10:28:33 PM
 #153

Another update committed to use the new API function enable/disable pool and also tests for privileges; hides device controls if read-only.
stevegee58
Hero Member
*****
Offline Offline

Activity: 773



View Profile
February 23, 2012, 11:46:53 PM
 #154

Sorry for yet another php noob question.  I'm a software guy, just not web or database.  Tongue

I'm using wamp and it's definitely running correctly.  I have some sample php files working and I copied anubis into the correct directory.  I'm also positive I have the cgminer api running also.

When I surf to it with my browser at localhost/anubis there are a bunch of source code lines printed out in the header and body of the anubis page.  Clearly I don't have the database part configured right but I don't know where to look.  Also I don't know what to put in the config.inc.php file.

You are in a maze of twisty little passages, all alike.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 23, 2012, 11:57:36 PM
 #155

If your seeing actual code, and not errors, then your webserver is not understanding the page is a script and running it. It's just displaying as-is. Sounds like a config issue, which I can't really help with.
As for the database, you need to either set the username and password in the config file to one you know has access to the database, or add a new user to the database, to mach the one in the config file.
stevegee58
Hero Member
*****
Offline Offline

Activity: 773



View Profile
February 24, 2012, 12:03:11 AM
 #156

OK I figured it out finally.  In php.ini I had to enable sockets and enable short_open_tag.

Seems to work OK now.

You are in a maze of twisty little passages, all alike.
vapourminer
Legendary
*
Offline Offline

Activity: 1363

what is this "brake pedal" you speak of?


View Profile
February 24, 2012, 12:56:06 AM
 #157

grabbed the latest, works well. no options to change stuff till I edited my bat file cgminer flags (yes I still use command line flags instead of config files; lazy in my old age) to allow write access to my network. then I could change stuff.

I do have a feature request. in the screen (page?) that allows you to change intensity, clocks, volts etc.. can you allow us to change only one or 2 values instead of them all each time? lets say I want to just change to Dynamic intensity, I dont want to send new fan speed, engine clocks etc to cgminer as I use autofan and autoclock. leaving a field blank seems to send numeric zero. and I may pull an oops and send the wrong volts to a card, thinking Im in another field (or something equally stupid). so I may want to have it set so I never send a new voltage.

maybe put a tick box in each line or field. ticked means send the value in this line, unticked means dont send whatever value is in that line.


P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 24, 2012, 01:14:03 AM
 #158

So the edit boxes show up blank?
Hmm, they (and the sliders) should be set to whatever the value on the card currently is.
That would be a javascript thing. I've only used chrome and Firefox. Which browser do you use?
vapourminer
Legendary
*
Offline Offline

Activity: 1363

what is this "brake pedal" you speak of?


View Profile
February 24, 2012, 05:57:32 AM
 #159

the boxes do have the proper values. the program works perfect. thats the "problem," so to speak.

its when I deliberately blank a value out (empty box) and then click "apply settings" it seems to send the number zero.

for example, I set fan speed to a blank box (because I dont want to change that value, as cgminer may of changed fan speed since the page was loaded) and click apply settings, when it reloads the fan setting input box is now "0" and the displayed data line (the part with the colored boxes and start,stop,restart) says the fan speed is 0%, 1026 rpm. my normal minimum fan is 1480 rpm (configured via --gpu-fan 40-80).

cgminer eventually brings the fan back up to speed but its disconcerting to hear your fan speed drop to next to nothing lol. being able to not send all but the value you want to change would make it more idiot proof and not override cgminer.

can it be set so a blank input box does not change that value? or a tick box or something that will not send values you dont want.

EDIT: I use FF or chrome on the PCs, Ill use opera on the android phone (havent tried it yet though). but again, the program runs fine.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 24, 2012, 06:43:57 AM
 #160

Ah, well, leave the values alone. If you don't change them, they won't be set... it checks. If the values differ, it sends the command. If they are the same no command is sent.
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 24, 2012, 06:52:10 AM
 #161

Ah, well, leave the values alone. If you don't change them, they won't be set... it checks. If the values differ, it sends the command. If they are the same no command is sent.
Where (and more importantly when) do the values come from that it compares them to?

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 24, 2012, 07:09:25 AM
 #162

Works like this:

Page load
get values
display
-
User edit
-
Hit apply
page load
get values
Compare
Send difference
wait 2 s
get values
display values

So values may change on cgminer between gets and they will be set back to what they were... but meh, like you say, changing the variable values such as fan speed and gpu clock is a moot point.


kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
February 24, 2012, 08:07:00 AM
 #163

Just my opinion, but:
Hmm - so: possibly changing things that the user hasn't changed ... doesn't sound correct to me.

vapourminer's idea sounds valid: the user must say they want it changed.

Or: store the old value hidden in the web page and send it back with the new value - so you know they have specifically chosen to change it.
Or: have both fields visible: the locked field and the new value field so they can even see that they have changed it.

Though, obviously, it will depend on what the user means by not changing a value:
1) Always keep it at this value if it changes
2) Don't change it

The problem with 1) is of course that isn't what happens.
It only happens when the user sends a request so there is no attempt to keep the value after it's sent until after the next time the user looks at the web page and sends a reply - thus why I don't think 1) would be the expected result.
Of course it's just my opinion Smiley

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 24, 2012, 08:22:24 AM
 #164

There's all sorts of mechanisms which could be used, but in the end the changes are fed back to the user, so they can see what (if anything) was changed.
If it turns out to be a problem, I can add checkboxes or POST specific changed flags, but I can't see how MUCH can go wrong (famous last words?). CGminer's pretty robust Smiley
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 24, 2012, 03:53:21 PM
 #165

I was thinking, maybe checkboxes which check themselves if a control is changed?
Want to make it as easy as possible.
vapourminer
Legendary
*
Offline Offline

Activity: 1363

what is this "brake pedal" you speak of?


View Profile
February 25, 2012, 01:56:07 AM
 #166

I was thinking, maybe checkboxes which check themselves if a control is changed?

your call - youre driving Smiley

whatever you put up on git it Ill try. I have good backups and cgminer is very protective of the hardware entrusted to it, so alpha code and I get along well.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 25, 2012, 07:54:55 PM
 #167

Added the checkboxes Smiley
So now if you change a value, the checkbox will tick itself and on submit the value will be sent.
Unchecked values will not be sent, so if you move a slider accidentally you can uncheck the box and the value will remain as it was.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 25, 2012, 09:17:35 PM
 #168

...and another...
Pool number is displayed in green when shares are being submitted to it. i.e. displays the pool(s) actively in use.
vapourminer
Legendary
*
Offline Offline

Activity: 1363

what is this "brake pedal" you speak of?


View Profile
February 26, 2012, 08:43:55 PM
 #169

perfect!

thanks Smiley
chungenhung
Legendary
*
Offline Offline

Activity: 1134


View Profile
February 27, 2012, 02:50:32 AM
 #170

getting this error
Code:
FATAL: MySQL Connection failed ! Access denied for user 'anubis'@'localhost' (using password: YES)
I checked config.inc.php, and the password is definitely not "YES".
The password is the same as the one I have setup using phyMyAdmin.

Trading MtGox USD for Dwolla/ACH deposit/Chase cash deposit
https://bitcointalk.org/index.php?topic=90115.0
Buy/Sell Call/Put Bitcoin options https://bitcointalk.org/index.php?topic=99853.0
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 27, 2012, 05:53:31 AM
 #171

The 'YES' means a password is in use Wink

Does seems there's an admin problem. Check the username, password and database name are all correct (you do need to create a database to connect to - the webpage will create tables in a database, but not the database itself)
chungenhung
Legendary
*
Offline Offline

Activity: 1134


View Profile
February 27, 2012, 02:16:32 PM
 #172

The 'YES' means a password is in use Wink

Does seems there's an admin problem. Check the username, password and database name are all correct (you do need to create a database to connect to - the webpage will create tables in a database, but not the database itself)
DB name, username, password are all correct.
I did create the DB.
The user have ALL privileges.

Trading MtGox USD for Dwolla/ACH deposit/Chase cash deposit
https://bitcointalk.org/index.php?topic=90115.0
Buy/Sell Call/Put Bitcoin options https://bitcointalk.org/index.php?topic=99853.0
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 27, 2012, 05:13:48 PM
 #173

What if you change the name/pw to root?

'fraid I'm taking shots in the dark, I'm not an expert on mySQL.
chungenhung
Legendary
*
Offline Offline

Activity: 1134


View Profile
February 27, 2012, 05:20:44 PM
 #174

What if you change the name/pw to root?

'fraid I'm taking shots in the dark, I'm not an expert on mySQL.
I changed root password (default is blank), and now i can't get into phpMyAdmin.
Got Anubis running on another machine after I completely messed up the first machine.

Trading MtGox USD for Dwolla/ACH deposit/Chase cash deposit
https://bitcointalk.org/index.php?topic=90115.0
Buy/Sell Call/Put Bitcoin options https://bitcointalk.org/index.php?topic=99853.0
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 27, 2012, 05:25:20 PM
 #175

I changed root password (default is blank), and now i can't get into phpMyAdmin.
!?!?!

Got Anubis running on another machine after I completely messed up the first machine.
At least you got something up! Perhaps mySQL was just messed up on that machine???
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
February 27, 2012, 06:47:59 PM
 #176

Found extra coins in my account. Thank you whoever Smiley
The LT
Full Member
***
Offline Offline

Activity: 171



View Profile WWW
March 02, 2012, 06:06:25 AM
 #177

Quote

usesless is not a word.

p.s. Linux is much better suited to run apache web server and php then Windows server 2003, and if you cant see that then your just as usesless as windows

Dude, seriously, what makes you think the person wants to run APACHE as their Webserver? What makes you think that the only thing he needs to run "better" is Anubis on PHP? Did it ever occur to you that he also needs to run something else which is, as you say, BETTER SUITED, for running on Windows rather than Linux.

And dude, I can't see that... Cross-platform, ever heard of that? We've been running Apache on all platforms since 1997 and NT 4.0 and it has been working fine.

End of story.
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
March 02, 2012, 12:31:24 PM
 #178

Found extra coins in my account. Thank you whoever Smiley
... and if you need this:
https://bitcointalk.org/index.php?topic=66699.msg775068#msg775068
Feel free to pass some around Smiley

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
chungenhung
Legendary
*
Offline Offline

Activity: 1134


View Profile
March 02, 2012, 02:23:30 PM
 #179

Quote

usesless is not a word.

p.s. Linux is much better suited to run apache web server and php then Windows server 2003, and if you cant see that then your just as usesless as windows

Dude, seriously, what makes you think the person wants to run APACHE as their Webserver? What makes you think that the only thing he needs to run "better" is Anubis on PHP? Did it ever occur to you that he also needs to run something else which is, as you say, BETTER SUITED, for running on Windows rather than Linux.

And dude, I can't see that... Cross-platform, ever heard of that? We've been running Apache on all platforms since 1997 and NT 4.0 and it has been working fine.

End of story.
Well said. If Windows is "uesless", then why does Microsoft keep making billions off it every year?

Trading MtGox USD for Dwolla/ACH deposit/Chase cash deposit
https://bitcointalk.org/index.php?topic=90115.0
Buy/Sell Call/Put Bitcoin options https://bitcointalk.org/index.php?topic=99853.0
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
March 02, 2012, 05:23:38 PM
 #180

Found extra coins in my account. Thank you whoever Smiley
... and if you need this:
https://bitcointalk.org/index.php?topic=66699.msg775068#msg775068
Feel free to pass some around Smiley

Tell you what, when my BFL's arrive I'll throw something your way. With my current 0.1 BTC/day, I'll take whatever I can get Wink

(What with the extension not being too useful until they DO arrive!) Smiley
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
March 02, 2012, 09:41:28 PM
 #181

Found extra coins in my account. Thank you whoever Smiley
... and if you need this:
https://bitcointalk.org/index.php?topic=66699.msg775068#msg775068
Feel free to pass some around Smiley

Tell you what, when my BFL's arrive I'll throw something your way. With my current 0.1 BTC/day, I'll take whatever I can get Wink

(What with the extension not being too useful until they DO arrive!) Smiley
Well I did say "IF you need this" Smiley

Plural BFL - that will be a big jump!
(2 would be 10x your current)

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
The LT
Full Member
***
Offline Offline

Activity: 171



View Profile WWW
March 03, 2012, 10:29:15 PM
 #182

Just for everyone's information, if you use syslog-logging in cgminer, it won't provide 5-second data via the API. Should be disabled in cgminer's config. Haven't really looked into it, but seems like cgminer's bug...
Eveofwar
Sr. Member
****
Offline Offline

Activity: 406


View Profile
March 04, 2012, 10:01:41 PM
 #183

Just clone'd the latest into a folder...somehow I'm missing all the edit buttons and have no way of controlling CGMiner from the page.  Using CGMiner version 2.3.1-2 Windows

Missing in FF, Chrome and IE...any thoughts ?
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
March 05, 2012, 04:34:44 AM
 #184

need to enable the 'write' privileges to the webhost. See the cgminer documentation.

Code:
--api-allow         Allow API access (if enabled) only to the given list of [W:]IP[/Prefix] address[/subnets]
                    This overrides --api-network and you must specify 127.0.0.1 if it is required
                    W: in front of the IP address gives that address privileged access to all api commands
--api-description   Description placed in the API status header (default: cgminer version)
--api-listen        Listen for API requests (default: disabled)
                    By default any command that does not just display data returns access denied
                    See --api-allow to overcome this
--api-network       Allow API (if enabled) to listen on/for any address (default: only 127.0.0.1)
--api-port          Port number of miner API (default: 4028)
Eveofwar
Sr. Member
****
Offline Offline

Activity: 406


View Profile
March 05, 2012, 04:36:58 AM
 #185

need to enable the 'write' privileges to the webhost. See the cgminer documentation.

Code:
--api-allow         Allow API access (if enabled) only to the given list of [W:]IP[/Prefix] address[/subnets]
                    This overrides --api-network and you must specify 127.0.0.1 if it is required
                    W: in front of the IP address gives that address privileged access to all api commands
--api-description   Description placed in the API status header (default: cgminer version)
--api-listen        Listen for API requests (default: disabled)
                    By default any command that does not just display data returns access denied
                    See --api-allow to overcome this
--api-network       Allow API (if enabled) to listen on/for any address (default: only 127.0.0.1)
--api-port          Port number of miner API (default: 4028)

Sweet, guess that's something new.  I'll get it going.

EDIT:  Bingo Smiley
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
March 05, 2012, 12:27:09 PM
 #186

...

Sweet, guess that's something new.  I'll get it going.

EDIT:  Bingo Smiley
Actually I added it 2 weeks ago Smiley
So it's been in the releases since 2.3.0 (11 days ago)

In case it wasn't obvious, the idea is that you have to give extra access if you want to allow access to change your cgminer ...
including shut down cgminer, turn off the fans, mine on some other pool with a different username and password, over volt the GPU and destroy it ... things like that

I realised it was a security issue/hole that needed to be closed for anyone using cgminer and a new command defined to allow people to decide to give the extra write/privileged access

So I added the extra --api-allow argument and the W: option

The old options still work ... almost as before ... except you can only successfully access commands that only report cgminer info.
All other cgminer API commands (that change cgminer) return "Access denied to '%s' command" unless the IP address has the extra W: access

Edit: posted in this thread 13 days ago Smiley
https://bitcointalk.org/index.php?topic=57342.msg760859#msg760859

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
Eveofwar
Sr. Member
****
Offline Offline

Activity: 406


View Profile
March 05, 2012, 06:30:48 PM
 #187

...

Sweet, guess that's something new.  I'll get it going.

EDIT:  Bingo Smiley
Actually I added it 2 weeks ago Smiley
So it's been in the releases since 2.3.0 (11 days ago)

In case it wasn't obvious, the idea is that you have to give extra access if you want to allow access to change your cgminer ...
including shut down cgminer, turn off the fans, mine on some other pool with a different username and password, over volt the GPU and destroy it ... things like that

I realised it was a security issue/hole that needed to be closed for anyone using cgminer and a new command defined to allow people to decide to give the extra write/privileged access

So I added the extra --api-allow argument and the W: option

The old options still work ... almost as before ... except you can only successfully access commands that only report cgminer info.
All other cgminer API commands (that change cgminer) return "Access denied to '%s' command" unless the IP address has the extra W: access

Edit: posted in this thread 13 days ago Smiley
https://bitcointalk.org/index.php?topic=57342.msg760859#msg760859

Yar, moved from CGMiner 2.2.7 to 2.3.1-2 without reading too much into the changelog.  I was reading on the CGMiner home thread about --api-allow, but it didn't give any hint towards W: giving write privileges.  I'm completely tracking you with the need for security; great job.
tynt
Member
**
Offline Offline

Activity: 61



View Profile
March 06, 2012, 01:13:48 PM
 #188

webserver is running on 192.168.0.1
cgminer is running on 192.168.0.2

Code:
cgminer.exe
--api-listen ^
--api-allow W:192.168.0.1 ^
--api-network

Firewalls are disabled. Workers are not showing up on anubis. What am I missing?

 

5830 mining for life
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
March 06, 2012, 02:34:08 PM
 #189

webserver is running on 192.168.0.1
cgminer is running on 192.168.0.2

Code:
cgminer.exe
--api-listen ^
--api-allow W:192.168.0.1 ^
--api-network

Firewalls are disabled. Workers are not showing up on anubis. What am I missing?

Just an aside ...

You don't need "--api-network" since it is ignored if you use "--api-allow"

and you can also use W:192.168.0/24 just to check the IP addresses are correct

also note (as the README says) if you also want to talk to cgminer from the cgminer machine you need to add ",W:127.0.0.1"

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
March 06, 2012, 05:22:59 PM
 #190

Are sockets enabled in PHP?
tynt
Member
**
Offline Offline

Activity: 61



View Profile
March 06, 2012, 06:54:29 PM
 #191

Solved now. I was using PHP 5.1.6, upgraded to 5.3.3, now it works

5830 mining for life
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
March 06, 2012, 07:06:17 PM
 #192

I think it should work with all of 5, and probably 4.
Probably some configuration issue fixed with the re-install.
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
March 06, 2012, 08:19:33 PM
 #193

Ah well - yeah there is a log for that Smiley

/var/log/apache2/error.log (for debian/ubuntu etc)
 or
/var/log/httpd/error.log (for redhat/fedora etc)
 or
... not sure where else for any others.

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
tynt
Member
**
Offline Offline

Activity: 61



View Profile
March 06, 2012, 10:55:39 PM
 #194

I think it should work with all of 5, and probably 4.
Probably some configuration issue fixed with the re-install.
PHP 5.2.x lacks native support for json_encode() and json_decode() functions. Just needed to upgrade PHP or install PECL extension and PECL JSON package.

5830 mining for life
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
March 06, 2012, 11:48:01 PM
 #195

I see... interesting.
The LT
Full Member
***
Offline Offline

Activity: 171



View Profile WWW
March 06, 2012, 11:55:23 PM
 #196

Thanks a lot P_Shep for implementing new functions into Anubis! These are a boon when tuning rigs!  Grin Also, thanks a lot to kano for working on the API in the first place!  Grin
exahash
Sr. Member
****
Offline Offline

Activity: 274



View Profile
April 06, 2012, 02:02:07 PM
 #197

I just started trying out Anubis; thanks to ocminer and p_shep, its very nice.

One odd thing I noticed... if one (or more) of my rigs is hung or in the process of going down, it takes a really long time (more than a minute) to load the Anubis home/hosts page.  If a rig is down, the page comes up quickly (less than one second) showing 'Connection refused' or 'Operation now in progress'   I have 20 rigs on the local network.  Anubis is served from a non-mining machine.

I tried lowering the timeout in the socket_set_option on line 81 of func.inc.php and that seemed to help a little, but I think whats happening is that cgminer is hanging on exit (when shutting down due to a sick or dead card) and not responding to Anubis.  Anubis then sits waiting for a response from that rig which may never come.

I added the following receive timeout to line 82 and it seems to have fixed my problem:

socket_set_option($socket, SOL_SOCKET, SO_SNDTIMEO, array('sec' => '1', 'usec' => '0'));
socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec' => '1', 'usec' => '0'));

I'm not sure what your patch policy is, and I'm not familiar enough yet with git/github, so forgive me if this is the wrong place to submit this.

I suppose the timeout values could be variables in the config if you wanted, and 1s is probably not long enough for people monitoring rigs across the internet, but this seems to be working for me and I hope it helps someone.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
April 06, 2012, 05:46:49 PM
 #198

That's a good one. I'll add it when I next do an update. I'll make the timeout configurable in the config file.
nedbert9
Sr. Member
****
Offline Offline

Activity: 252

Inactive


View Profile
April 08, 2012, 06:46:05 PM
 #199

Quote

usesless is not a word.

p.s. Linux is much better suited to run apache web server and php then Windows server 2003, and if you cant see that then your just as usesless as windows

Dude, seriously, what makes you think the person wants to run APACHE as their Webserver? What makes you think that the only thing he needs to run "better" is Anubis on PHP? Did it ever occur to you that he also needs to run something else which is, as you say, BETTER SUITED, for running on Windows rather than Linux.

And dude, I can't see that... Cross-platform, ever heard of that? We've been running Apache on all platforms since 1997 and NT 4.0 and it has been working fine.

End of story.

+1
kano
Legendary
*
Offline Offline

Activity: 2268


Linux since 1997 RedHat 4


View Profile
April 08, 2012, 10:34:56 PM
 #200

That's a good one. I'll add it when I next do an update. I'll make the timeout configurable in the config file.
If you are restarting cgminer, the issue is most likely the side effect of the socket being in the TIME_WAIT state as is somewhat considered mandatory by internet protocol standards.
There is a way around it in Linux by doing something considered bad:
messing with net.ipv4.tcp_fin_timeout

There's also the socket option SO_REUSEADD that I STILL haven't got around to testing if there are any issues with using it in cgminer.

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
April 15, 2012, 03:18:01 AM
 #201

Just an idea, I think it would be nice if there was some way to have the site require a login or something for any webpage commands to be executable.

Sometimes I just want to show friends of mine my ANUBIS page without giving them the potential to blow up my mining rigs.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
April 16, 2012, 05:45:54 PM
 #202

I'll think about that, but I think it'll be more trouble then it's worth.
Maybe I'll get bored one day and do it.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile
April 20, 2012, 07:33:54 PM
 #203

One potential bug ....

It looks like discards % is (discards / accepted) but this is not a valid metric.
Discards are discards getworks.  so discard % should be (discards / getworks).

For users where accepted ~= getworks then error is small but for pools like p2pool where due to LP a large number of getworks are discarded and shares are > 1 difficulty (thus lower accepted) it results in some "weird" % like 287% discarded. Smiley

P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
April 20, 2012, 09:57:48 PM
 #204

One potential bug ....

It looks like discards % is (discards / accepted) but this is not a valid metric.
Discards are discards getworks.  so discard % should be (discards / getworks).

For users where accepted ~= getworks then error is small but for pools like p2pool where due to LP a large number of getworks are discarded and shares are > 1 difficulty (thus lower accepted) it results in some "weird" % like 287% discarded. Smiley



That's an easy one, I'll fix that with my next commit.
Aseras
Hero Member
*****
Offline Offline

Activity: 658


View Profile
April 23, 2012, 09:56:13 PM
 #205

Just an idea, I think it would be nice if there was some way to have the site require a login or something for any webpage commands to be executable.

Sometimes I just want to show friends of mine my ANUBIS page without giving them the potential to blow up my mining rigs.

this is a setting in .htaccess or file permissions on the webserver. It has nothing to do with anubis itself.
Aseras
Hero Member
*****
Offline Offline

Activity: 658


View Profile
April 23, 2012, 09:59:02 PM
 #206

What I think would be really great is to have the miners organized into groups and be able to change them all in one shot. Change a pool -> click. They all go. Go from failover to roundrobin or whatever-> click done. Clicking through each one is not very fun.
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
April 24, 2012, 06:22:38 PM
 #207

The default DB schema for ANUBIS has an error.  You have the "port" field set to smallint (6) and it's signed - it should be set to a bare minimum of MEDIUMINT (6).  Otherwise you are limited to ports < 32768

Either that or make smallint unsigned.


If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile
April 24, 2012, 06:50:37 PM
 #208

A great project and one I have enjoyed making some minor changes to.

The largest annoyance is the rig communication seems to be blocking.  If I have a rig which is down Anubis takes 10 sec trying to establish a connection meanwhile the entire webpage is unresponsive.
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
April 24, 2012, 07:36:40 PM
 #209

Also line 32 of index.php should probably be changed to:

$result = $dbh->query("SELECT * FROM hosts ORDER BY name ASC");

I may setup a git and issue pull requests, but it's not worth it for the small changes I've needed to make so far.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
April 25, 2012, 08:41:36 PM
 #210

Also line 32 of index.php should probably be changed to:

$result = $dbh->query("SELECT * FROM hosts ORDER BY name ASC");

I may setup a git and issue pull requests, but it's not worth it for the small changes I've needed to make so far.

You can actually edit a file and make simple pull requests right on github.com.  No need to manually fork and all that.

The LT
Full Member
***
Offline Offline

Activity: 171



View Profile WWW
April 26, 2012, 01:44:01 AM
 #211

this is a setting in .htaccess or file permissions on the webserver. It has nothing to do with anubis itself.

.htaccess alone won't solve the issue, as P_Shep's anubis allows finer control over the miners.
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
April 29, 2012, 02:44:28 PM
 #212

I submitted the pull requests... pretty handy I can do it online.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
May 01, 2012, 09:45:30 AM
 #213

Thanks for the work Inaba and the other suggestions here. I'm on vacation for the next week, so will get back on it when I'm back.

Regarding the multi-rig changes... I did think about that, but you need to guarantee that the pools are ordered the same on all rigs, something that is outside anubis' control, things could get out of sync. Doable though. I'll have a think.
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
May 01, 2012, 01:51:53 PM
 #214

I'm going to be putting some work into Anubis this week related to historical tracking. I suck at charting though, so once the data is collected, maybe someone can write some code to make good charts?


If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
May 12, 2012, 09:47:09 PM
 #215

Vast amount of changes in Anubis, go have a play Smiley

https://github.com/pshep/ANUBIS
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
May 12, 2012, 10:11:40 PM
 #216

Hey P_Shep, you left a bunch of bare carriage returns in your edited files.  Did you edit them in a DOS editor and then upload them without conversion?  It's playing hell with DIFF and editing locally on a unix machine.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
May 12, 2012, 10:21:29 PM
 #217

Ah, I was wondering what that could be, make sense. Yeah sorry about that, not sure what I can do about it now :/
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
May 12, 2012, 10:26:59 PM
 #218

Well... I'm not sure if you can back out a merge on Github, but in either event, I would recommend remerging everything without carriage returns.

What text editor are you using?  You should be able to set it to save in UNIX format instead of DOS format.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
May 12, 2012, 10:44:49 PM
 #219

OK, done. Sorry about that, I'll be more careful about that in future.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
May 15, 2012, 03:28:49 AM
 #220

Updated again with device details / notifications / stats page

(Kano doesn't want the stats displayed, so don't tell him I show them anyway Smiley )

Oh, and config saving doesn't work in CGminer yet, so you'll have to wait till the next version 2.4.2 for that.

Edit: in fact I just changed it so it's disabled until the next version.
Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
May 24, 2012, 06:30:00 PM
 #221

P_Shep - nice work, could you place the hashrate in the tab shown between "Anubis -" and "a cgminer..." and an autorefresh timer.

Thanks
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
May 24, 2012, 06:46:43 PM
 #222

Hashrate in the tab, that's a good one.

Regarding the auto-refresh: I'm not much of a web developer and I don't know how to just update fields, only the inelegant whole page refresh. Messy, clunky, awkward, resource hungry, inefficient whole page refresh.

If you want to do it yourself you can add:
<meta http-equiv="refresh" content="10" >

just below:
<head>

of index.php

I'll look into putting the total hashrate in the title.
Aseras
Hero Member
*****
Offline Offline

Activity: 658


View Profile
May 25, 2012, 05:40:22 PM
 #223

What I've done is to put each miner in a separate sub page so that if one miner goes down it doesn't make the whole page fail to load or take forever to time out.

I also added

Quote
<meta http-equiv="refresh" content="3;url=index.php">

to the top to do the auto refresh.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
May 29, 2012, 07:35:54 PM
 #224

Updated again.

V2.3

Adds an accounts page, so you can add bitcoin addresses and retrieve a summary of the balances.
Aseras
Hero Member
*****
Offline Offline

Activity: 658


View Profile
May 30, 2012, 03:40:51 PM
 #225

That's cool. The problem with blockchain.info is that it includes unconfirmed transactions and orphans in the balance totals so it is WAY off.
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
May 30, 2012, 04:12:54 PM
 #226

That's cool. The problem with blockchain.info is that it includes unconfirmed transactions and orphans in the balance totals so it is WAY off.

It does? Ah well. I may change it if something better comes along. It'll do for now.
(I find it useful anyway Smiley )
nedbert9
Sr. Member
****
Offline Offline

Activity: 252

Inactive


View Profile
June 06, 2012, 11:30:10 AM
 #227

Hashrate in the tab, that's a good one.

Regarding the auto-refresh: I'm not much of a web developer and I don't know how to just update fields, only the inelegant whole page refresh. Messy, clunky, awkward, resource hungry, inefficient whole page refresh.

If you want to do it yourself you can add:
<meta http-equiv="refresh" content="10" >

just below:
<head>

of index.php

I'll look into putting the total hashrate in the title.


A possibly approach for ajaxiness.

1.  Make an emitter php.  Have it output raw, mutable data possibly in JSON.
2.  Include JQuery.  Have JQuery do the ajaxy stuff (so simple.  I want to have JQuery's baby.).
3.  Javascript in the presentation pages to initiate 2 on a timer.

P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
June 06, 2012, 05:07:08 PM
 #228

Hmmm, AJAX eh?...

A quick google shows that is indeed what I would need. Something new for me to learn.
ibko
Newbie
*
Offline Offline

Activity: 27


View Profile
June 23, 2012, 11:28:53 PM
 #229

Error in configtbl.sql.php: lines 36 and 29 are to be deleted.
miaviator
Donator
Hero Member
*
Offline Offline

Activity: 672


It's for the children!


View Profile WWW
July 04, 2012, 09:04:23 PM
 #230

Thank You for this.

Internet151
Full Member
***
Offline Offline

Activity: 160



View Profile
July 19, 2012, 06:57:35 AM
 #231

It would be nice if ANUBIS marked a GPU temp column as red if the reported temp value = 0.
ralree
Hero Member
*****
Offline Offline

Activity: 518


Manateeeeeeees


View Profile
August 17, 2012, 05:39:02 AM
 #232

I decided to fork this project and put some work into it.  Here's the github: https://github.com/hank/ANUBIS

I added AJAX updating to the index page (would be nice to port that other places too) with a configuration option for the update timer (defaults to 5 seconds, access in the config page).  It keeps it in the configuration table of the database like it should.  I update the schema, so it should be plug-and-play.  I also made it so if you put in fan speeds of zero for yellow and red, your fan readout will always be green (I keep my fans at 100% all the time, and I hate seeing red).  Also, someone suggested making temp colors red on zero readings - I did this for at least some temp readouts, but I'm sure there's some I missed.

I also did a BUNCH of work to the CSS and images for the theme.  Here's what I came up with:



More pics at: http://imgur.com/a/bevKh

I hope you all enjoy!

1MANaTeEZoH4YkgMYz61E5y4s9BYhAuUjG
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
August 17, 2012, 03:24:37 PM
 #233

Great stuff!

It needed working on by someone who knows what they're doing Smiley
ralree
Hero Member
*****
Offline Offline

Activity: 518


Manateeeeeeees


View Profile
August 19, 2012, 07:15:12 AM
 #234

Thanks!  Just sent a little BTC donation to your address, p_shep.  Was a good codebase to get started with and build upon.  Thanks for all your hard work!

Now I just need to add some more clients!

1MANaTeEZoH4YkgMYz61E5y4s9BYhAuUjG
ZPK
Legendary
*
Offline Offline

Activity: 1302



View Profile
August 19, 2012, 02:29:46 PM
 #235

possible add history session's ? and refresh via websockets?

Novacoin POS mining only now
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
August 19, 2012, 06:22:10 PM
 #236

Thanks!  Just sent a little BTC donation to your address, p_shep.  Was a good codebase to get started with and build upon.  Thanks for all your hard work!

Now I just need to add some more clients!

2 things:

1. config.inc.php is missing - had to copy from my version (mybe there's a better way of doing this)
2. For those upgrading from existing installation, you need to add the extra columns to the database.
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
August 21, 2012, 06:54:34 PM
 #237

I decided to fork this project and put some work into it.  Here's the github: https://github.com/hank/ANUBIS

I added AJAX updating to the index page (would be nice to port that other places too) with a configuration option for the update timer (defaults to 5 seconds, access in the config page).  It keeps it in the configuration table of the database like it should.  I update the schema, so it should be plug-and-play.  I also made it so if you put in fan speeds of zero for yellow and red, your fan readout will always be green (I keep my fans at 100% all the time, and I hate seeing red).  Also, someone suggested making temp colors red on zero readings - I did this for at least some temp readouts, but I'm sure there's some I missed.

I also did a BUNCH of work to the CSS and images for the theme.  Here's what I came up with:


I hope you all enjoy!

ralree: is it possible to make a "view only" version or make it configurable somehow?

it would be very useful if you wanted to create a anubis site where others could view it without having to worry about them screwing up your configuration.

Thanks for this contribution.

Tom
ralree
Hero Member
*****
Offline Offline

Activity: 518


Manateeeeeeees


View Profile
August 29, 2012, 04:23:43 PM
 #238

ralree: is it possible to make a "view only" version or make it configurable somehow?

it would be very useful if you wanted to create a anubis site where others could view it without having to worry about them screwing up your configuration.

Thanks for this contribution.

Tom

That's in my plans.  Right now I just have it hosted over SSL with HTTP Basic Authentication, but I want to make it so for non-authorized clients (people clicking cancel on the HTTP Basic Auth), they can see the view-only version like you're suggesting.  I messed around with copying/symlinking the code to a different location and modifying configs, but then I realized it's hard to configure it so it's view-only without turning off API writing in cgminer.  I'll figure out a way to do that soon when I have time.

2 things:

1. config.inc.php is missing - had to copy from my version (mybe there's a better way of doing this)
2. For those upgrading from existing installation, you need to add the extra columns to the database.

1. Thanks for the tip - I meant to commit a config.inc.php.example file like I did with the auth file, but I must have forgotten to.  I'll fix that up shortly.
2. It would be nice to make some scripts for upgrading the schema - keeping a schema version in the database and making the right alter table statements to upgrade.  Of course, I don't expect the schema to change all that often, and it's so quick to configure it's probably not worth the effort.  For now, I'm just going to keep it as is, but if I end up developing this a lot I'll add in DB migrations.

1MANaTeEZoH4YkgMYz61E5y4s9BYhAuUjG
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
August 29, 2012, 04:30:59 PM
 #239

I did a quick and dirty add column when I added a field to enter the config address.
It's certainly quick to re-configure everything (dpending on how large your system is), but that's still greater than 0. Also, you have to delete the database first... login to mysql, enter commands...
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
September 01, 2012, 02:08:45 AM
 #240

New changes are good, but dark colors on black = headache after 2 minutes.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
ralree
Hero Member
*****
Offline Offline

Activity: 518


Manateeeeeeees


View Profile
September 04, 2012, 09:24:20 PM
 #241

New changes are good, but dark colors on black = headache after 2 minutes.

Easy to fix in CSS and/or GIMP/Photoshop/etc. for the images.  It looks fine on my monitors, but maybe I run at a higher brightness than most..

There's a new feature that requires some effort in apache: read-only stats.  Example here:

https://ralree.dyndns.org/ANUBIS/read-only/allgpus.php

The non-read-only directory is just /ANUBIS.  HTTP Auth is enabled on the entire webserver EXCEPT for some of the media directories in /ANUBIS and the read-only directory.  The read-only scripts run with SELECT privileges in mysql instead of the full gamut.  Changes are all in github.

https://github.com/hank/ANUBIS

Here's a quick and dirty example apache config:
Code:
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all

                AuthUserFile /some/path/outside/served/directories/users
                AuthName "Area protected by belligerent drunk."
                AuthGroupFile /dev/null
                AuthType Basic
                Require valid-user
        </Directory>

        <LocationMatch "/ANUBIS/(read-only|images|css|table-images)">
                Satisfy Any
                Allow from all
        </LocationMatch>

1MANaTeEZoH4YkgMYz61E5y4s9BYhAuUjG
AniceInovation
Donator
Sr. Member
*
Offline Offline

Activity: 338


Interesting.


View Profile
September 11, 2012, 10:59:24 PM
 #242

Installation is simple. You need a MySQL/PHP enabled host within your rig-network.
ocminer


Hey,

A MySQL/PHP host, is a MySQL/PHP server right?
What software do you recomend?

I use windows 7.

vapourminer
Legendary
*
Offline Offline

Activity: 1363

what is this "brake pedal" you speak of?


View Profile
September 12, 2012, 12:52:24 AM
 #243

I use easy php. made for local network web serving only, and easy to setup. everything you need for anubis in one package.

http://www.easyphp.org/
btckeeper
Newbie
*
Offline Offline

Activity: 10


View Profile
September 19, 2012, 11:20:18 AM
 #244

Hello all. What is DISCARDS column? I have about 30% discards. What does it mean?
ralree
Hero Member
*****
Offline Offline

Activity: 518


Manateeeeeeees


View Profile
October 09, 2012, 02:10:24 AM
 #245

Hello all. What is DISCARDS column? I have about 30% discards. What does it mean?
AFAIK it's when there's a new block detected and you throw away your current batch of work you've been assigned.  You lose nothing to discards, only rejects.

1MANaTeEZoH4YkgMYz61E5y4s9BYhAuUjG
gigica viteazu`
Sr. Member
****
Offline Offline

Activity: 447

beast at work


View Profile
October 14, 2012, 01:32:38 AM
 #246

this looks great, but i`m still looking for a solution to get this kind of info from my miners, with them beign behind a firewall

BURST-3FDG-W622-8KAF-E52KP
stevegee58
Hero Member
*****
Offline Offline

Activity: 773



View Profile
October 14, 2012, 11:18:25 AM
 #247

this looks great, but i`m still looking for a solution to get this kind of info from my miners, with them beign behind a firewall


Is it a firewall at home or work?  If it's at home you have to set up your router to forward port 80 to your web server.

If it's at work I doubt they'd want you running a web server on their network.

You are in a maze of twisty little passages, all alike.
ralree
Hero Member
*****
Offline Offline

Activity: 518


Manateeeeeeees


View Profile
October 14, 2012, 05:28:59 PM
 #248

Yeah simply open a port on your firewall, or use something like STUN/TURN/ICE to get around it.  Alternatively, you could host ANUBIS somewhere public, and just use the API through your firewall to your miners in read-only mode.

1MANaTeEZoH4YkgMYz61E5y4s9BYhAuUjG
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
October 21, 2012, 06:42:40 AM
 #249

Added the new API features.
sharky112065
Sr. Member
****
Offline Offline

Activity: 303



View Profile
November 18, 2012, 02:50:07 PM
 #250

Added the new API features.

I just updated and now my login credentials are no longer asked for. I copied over my old auth.inc.php but no joy. Are you now using a different method for authentication?

To show bitcoin balance without orphans you might want to change this line in acc.inc.php:

$blockchain_addr_options = '?format=json&limit=0';

to this:

$blockchain_addr_options = '?format=json&limit=0&filter=5';

I keep having to change it manually on updates.

Donations welcome: 12KaKtrK52iQjPdtsJq7fJ7smC32tXWbWr
P_Shep
Legendary
*
Online Online

Activity: 1106


View Profile WWW
November 18, 2012, 06:34:33 PM
 #251

Added the new API features.

I just updated and now my login credentials are no longer asked for. I copied over my old auth.inc.php but no joy. Are you now using a different method for authentication?

To show bitcoin balance without orphans you might want to change this line in acc.inc.php:

$blockchain_addr_options = '?format=json&limit=0';

to this:

$blockchain_addr_options = '?format=json&limit=0&filter=5';

I keep having to change it manually on updates.

I never added any login to Anubis. Ralree did though.

what does the filter=5 do?
sharky112065
Sr. Member
****
Offline Offline

Activity: 303



View Profile
November 18, 2012, 09:09:53 PM
 #252

<