Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: ocminer on January 09, 2012, 08:22:22 PM



Title: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 09, 2012, 08:22:22 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DeathAndTaxes on January 09, 2012, 08:56:03 PM
Looks awesome I will install it this evening.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Remember remember the 5th of November on January 09, 2012, 09:38:56 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 10, 2012, 12:44:00 AM
this is pretty cool, it sets up in about 5 mins, btw its --api-listen not --api-enable


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 10, 2012, 01:15:19 AM
Thanks, you are right,  I've corrected it to "--api-listen"


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 10, 2012, 01:26:30 AM
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?



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 10, 2012, 01:28:10 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 10, 2012, 01:33:18 AM
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



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 10, 2012, 01:34:23 AM
btw, I just sent a 1 BTC donation to the address included on the donate tab of anubis

this is very cool stuff dude :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 10, 2012, 01:41:16 AM
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!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 10, 2012, 02:42:18 AM
lol

of course somebody had to try and screw with it

haha


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 10, 2012, 03:13:13 AM
great work


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Pontius on January 10, 2012, 08:18:59 AM
Pretty good job. Thanks for sharing!
You should make the API port configurable though; using a hardcoded "4028" is ugly.  ;)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: runeks on January 10, 2012, 07:59:16 PM
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?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ZodiacDragon84 on January 10, 2012, 08:35:18 PM
like +1


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ThiagoCMC on January 10, 2012, 09:24:02 PM
I'll test it tonight!!  :D


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 10, 2012, 11:33:39 PM
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 :)

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.



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 10, 2012, 11:45:27 PM
ocminer: did you receive the donation I sent yesterday?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 10, 2012, 11:46:09 PM
Yes thank you very much ! :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Red Emerald on January 11, 2012, 12:46:27 AM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on January 11, 2012, 09:08:50 PM
How CPU intensive is ANUBIS? I'm considering setting this up on one of my existing mining rigs with a semptron 140 cpu.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 11, 2012, 09:29:20 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 11, 2012, 10:01:25 PM
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.



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on January 12, 2012, 12:53:47 AM
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!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Red Emerald on January 12, 2012, 02:05:33 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 12, 2012, 02:16:55 AM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on January 12, 2012, 02:36:47 AM
I'm using IIS in Windows 7 to host the web server.

phpmyadmin works fine, so I assume that I installed php correctly.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Red Emerald on January 12, 2012, 04:15:44 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on January 12, 2012, 04:29:57 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Red Emerald on January 12, 2012, 04:34:07 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P4man on January 12, 2012, 09:49:26 AM
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?



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on January 12, 2012, 02:41:11 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Brunic on January 13, 2012, 12:35:06 AM
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 :D)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 13, 2012, 01:14:27 PM
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

http://btcwebhost.com/files/btcguildstales.png

http://btcwebhost.com/files/anubisstales.png

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?



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: finway on January 13, 2012, 02:53:42 PM
I'll try this.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on January 14, 2012, 02:46:57 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DeathAndTaxes on January 14, 2012, 02:49:35 AM
ocminer you got a donation address?

I will send some coins to support this project.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Eveofwar on January 14, 2012, 05:17:04 AM
ocminer you got a donation address?

I will send some coins to support this project.

1KgAKimMrbR6h4R6JBff9s3JqQCS53y149

It's posted all over the place :P


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DeathAndTaxes on January 14, 2012, 06:28:24 PM
ocminer you got a donation address?

I will send some coins to support this project.

1KgAKimMrbR6h4R6JBff9s3JqQCS53y149

It's posted all over the place :P


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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P4man on January 14, 2012, 06:45:40 PM
Its at the bottom of anubis webpage.
1KgAKimMrbR6h4R6JBff9s3JqQCS53y149 is correct. Id post a screenshot, but it wouldnt be hard to tamper with that :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 14, 2012, 07:10:31 PM
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! :P


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: jjiimm_64 on January 14, 2012, 07:50:52 PM
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! :P

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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: rjk on January 14, 2012, 07:54:04 PM
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! :P

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....


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 14, 2012, 08:07:10 PM
lol same here

I have ad block plus - I didnt even know that site had ads at all :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DeathAndTaxes on January 14, 2012, 09:16:09 PM
2 BTC donated. 

TX ID: fbca9234c07998306cdad515d343e989160df29843df1d82796c6c330ce5b63e

I hope the author continued to improve and expand it.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 14, 2012, 10:27:09 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DBordello on January 16, 2012, 09:18:49 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 16, 2012, 09:20:03 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DBordello on January 16, 2012, 10:08:55 PM
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  ;D


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DBordello on January 16, 2012, 10:10:39 PM
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. 


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 16, 2012, 10:29:27 PM
Im currently working on that, will be in the next release (probably by the weekend if I have some spare time)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 16, 2012, 11:29:31 PM
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 !


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DBordello on January 17, 2012, 12:58:14 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DBordello on January 17, 2012, 01:01:37 AM
Since you handled that so quickly, I feel like I should provide another feature request  ;D

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. 


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 17, 2012, 02:12:26 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P4man on January 17, 2012, 03:05:55 PM
IN the meanwhile, you can have the page refreshed easily by installing this:
https://addons.mozilla.org/en-US/firefox/addon/reloadevery/


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P4man on January 18, 2012, 12:23:54 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Brunic on January 18, 2012, 10:30:40 PM
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
.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 18, 2012, 10:38:33 PM
Both bugs are fixed in the next version, thanks for your tips !


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DBordello on January 20, 2012, 07:26:35 AM
I can't wait.  I am loving Anubis. 

Any explanation of the name? 


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: gnar1ta$ on January 21, 2012, 05:52:51 AM
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.  ???


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Pontius on January 21, 2012, 07:59:04 AM
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.  ???

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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: JWU42 on January 21, 2012, 05:37:00 PM
Liking this...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: gnar1ta$ on January 21, 2012, 06:31:24 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Pontius on January 21, 2012, 08:00:37 PM
Sorry, gnar1ta$, my fault.  :( Correct command should be:

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



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P4man on January 21, 2012, 08:01:03 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: The LT on January 23, 2012, 12:08:06 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P4man on January 23, 2012, 12:16:09 AM
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 ? :).


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: The LT on January 23, 2012, 12:26:01 AM
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 ? :).

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? :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P4man on January 23, 2012, 12:32:01 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Red Emerald on January 23, 2012, 12:36:34 AM
Am I making any sense here? :)
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: The LT on January 23, 2012, 12:51:50 AM
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...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: The LT on January 23, 2012, 12:55:01 AM
Am I making any sense here? :)
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. :) Haven't gotten to reply to it as it slipped from my eyes. I'll just go there and post... :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on January 24, 2012, 10:20:13 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DBordello on January 24, 2012, 11:42:38 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: heinz on January 27, 2012, 07:05:59 PM
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 (http://dl.dropbox.com/u/21735054/Anubis%20-%20a%20cgminer%20web%20frontend.htm)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P4man on January 27, 2012, 07:18:53 PM
You dont have PHP installed (or its not working).


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: heinz on January 27, 2012, 07:20:33 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: heinz on January 27, 2012, 07:35:22 PM
Fixed. I had my root password wrong.  ;D


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: jjiimm_64 on January 27, 2012, 07:49:33 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: heinz on January 27, 2012, 08:00:29 PM
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 (http://dl.dropbox.com/u/21735054/Anubis%20-%20a%20cgminer%20web%20frontend.htm)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P4man on January 27, 2012, 08:04:23 PM
See post 34 and 35 of this thread.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: heinz on January 27, 2012, 08:42:29 PM
php_socket was disabled. Much thanks P4man.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Eveofwar on January 29, 2012, 04:18:25 AM
Anubis breaks when using cgminer 2.2.0 -- there were some JSON changes I believe.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 29, 2012, 08:06:48 PM
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! :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 30, 2012, 11:40:55 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 30, 2012, 11:49:32 PM
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!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 30, 2012, 11:51:34 PM
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).



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 30, 2012, 11:54:16 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ocminer on January 30, 2012, 11:58:03 PM
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.



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DBordello on January 31, 2012, 01:08:44 AM
1.03 is working great, thank!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 31, 2012, 02:57:25 AM
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!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: AV on January 31, 2012, 12:53:26 PM
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 ?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on January 31, 2012, 01:25:03 PM
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. :P


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Isepick on January 31, 2012, 01:38:54 PM
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...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: AV on January 31, 2012, 03:55:39 PM
Isepick, thanks.
I`m uncomment
Code:
extension=ext/php_sockets.dll
in windows/php.ini,
reboot and Anubis work !


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: The LT on February 02, 2012, 07:14:34 AM
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. :P

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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Eveofwar on February 03, 2012, 05:14:32 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cablepair on February 03, 2012, 11:45:17 AM
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. :P

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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: bronan on February 03, 2012, 11:55:08 AM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Red Emerald on February 04, 2012, 12:02:33 AM
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. :P

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...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Eveofwar on February 04, 2012, 12:20:30 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on February 04, 2012, 06:25:29 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: -ck on February 04, 2012, 11:11:24 PM
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.



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on February 06, 2012, 03:44:21 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 07, 2012, 11:59:50 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 08, 2012, 01:34:05 AM
***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);



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 11, 2012, 01:23:14 AM
Workin' on a lil' something...

http://i.imgur.com/VIk4y.jpg

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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 11, 2012, 06:40:35 AM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 11, 2012, 07:18:31 AM
I was wondering if the API would accept a GPU clock range.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 11, 2012, 07:32:22 PM
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 :)

Also add uptime.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: sveetsnelda on February 11, 2012, 07:58:38 PM
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).


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: jjiimm_64 on February 11, 2012, 08:59:15 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 12, 2012, 12:49:05 AM
...
Setting Intensity should stay set, as also VDDC.
...
Quoting myself :P

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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: jjiimm_64 on February 12, 2012, 01:32:01 AM
...
Setting Intensity should stay set, as also VDDC.
...
Quoting myself :P

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



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 12, 2012, 01:55:52 AM
Nope :)
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 :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: sveetsnelda on February 12, 2012, 01:56:49 AM
Quoting myself :P

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.  :D


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 12, 2012, 02:01:22 AM
Quoting myself :P

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.  :D
Nah - I quoted myself and explained in for that reason - I could see there could have been some confusion of what I meant :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: jjiimm_64 on February 12, 2012, 02:14:02 AM
Nope :)
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 :)

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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 12, 2012, 07:18:47 AM
Got it working now :)
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: dlasher on February 14, 2012, 11:01:35 PM
wanted to say, got this working today, nice job.. great software, appreciate sharing.. :)

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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: dlasher on February 15, 2012, 06:42:45 AM

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?



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 15, 2012, 06:02:23 PM

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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Red Emerald on February 15, 2012, 09:51:43 PM

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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ThiagoCMC on February 18, 2012, 01:49:56 AM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ThiagoCMC on February 18, 2012, 04:45:17 AM
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!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on February 20, 2012, 04:55:08 PM
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!



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 20, 2012, 05:59:18 PM
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 :/


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on February 20, 2012, 06:12:04 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 20, 2012, 09:59:47 PM
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:
http://i.imgur.com/RIEOA.jpg

Host detail
http://i.imgur.com/3WirJ.jpg

Device detail
http://i.imgur.com/qLLWl.jpg

Host list expanded to show everything
http://i.imgur.com/iyuav.jpg


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 21, 2012, 01:11:18 PM
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"


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 21, 2012, 05:17:40 PM
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 :) The user is the feedback.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on February 21, 2012, 05:19:16 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 21, 2012, 05:22:32 PM
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. :/


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 21, 2012, 05:24:11 PM
...
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 :) 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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on February 21, 2012, 05:26:08 PM
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?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 21, 2012, 05:29:03 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 21, 2012, 05:31:44 PM
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' ;)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 21, 2012, 05:39:11 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on February 21, 2012, 05:50:06 PM
Nope, that wasn't it.  Although I keep meaning to look into BAMT. 

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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 21, 2012, 07:18:09 PM
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 :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 21, 2012, 07:34:49 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 22, 2012, 12:29:21 AM
Just made a couple more minor changes.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on February 22, 2012, 02:12:58 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 22, 2012, 02:29:08 AM
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.)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 23, 2012, 12:03:53 AM
So no more problems then?

I must be better than I thought :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on February 23, 2012, 01:05:18 AM
So no more problems then?

I must be better than I thought :)

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 :)

got a bitcoin addy? ill send ya  a coin.



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 23, 2012, 01:43:33 AM
Good to hear!

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

Thanks dude :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on February 23, 2012, 02:08:46 AM
sent 1.33221100 to ya.

and again, thanks for the additional functions.



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: chungenhung on February 23, 2012, 03:25:36 PM
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()); } ?>


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 23, 2012, 05:30:31 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: echris1 on February 23, 2012, 09:15:09 PM
very cool, this replaces a few different tabs and windows.  donation sent =)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 23, 2012, 10:28:33 PM
Another update committed to use the new API function enable/disable pool and also tests for privileges; hides device controls if read-only.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: stevegee58 on February 23, 2012, 11:46:53 PM
Sorry for yet another php noob question.  I'm a software guy, just not web or database.  :P

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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 23, 2012, 11:57:36 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: stevegee58 on February 24, 2012, 12:03:11 AM
OK I figured it out finally.  In php.ini I had to enable sockets and enable short_open_tag.

Seems to work OK now.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on February 24, 2012, 12:56:06 AM
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.




Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 24, 2012, 01:14:03 AM
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?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on February 24, 2012, 05:57:32 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 24, 2012, 06:43:57 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 24, 2012, 06:52:10 AM
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?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 24, 2012, 07:09:25 AM
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.




Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 24, 2012, 08:07:00 AM
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 :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 24, 2012, 08:22:24 AM
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 :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 24, 2012, 03:53:21 PM
I was thinking, maybe checkboxes which check themselves if a control is changed?
Want to make it as easy as possible.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on February 25, 2012, 01:56:07 AM
I was thinking, maybe checkboxes which check themselves if a control is changed?

your call - youre driving :)

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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 25, 2012, 07:54:55 PM
Added the checkboxes :)
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 25, 2012, 09:17:35 PM
...and another...
Pool number is displayed in green when shares are being submitted to it. i.e. displays the pool(s) actively in use.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on February 26, 2012, 08:43:55 PM
perfect!

thanks :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: chungenhung on February 27, 2012, 02:50:32 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 27, 2012, 05:53:31 AM
The 'YES' means a password is in use ;)

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)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: chungenhung on February 27, 2012, 02:16:32 PM
The 'YES' means a password is in use ;)

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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 27, 2012, 05:13:48 PM
What if you change the name/pw to root?

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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: chungenhung on February 27, 2012, 05:20:44 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 27, 2012, 05:25:20 PM
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???


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 27, 2012, 06:47:59 PM
Found extra coins in my account. Thank you whoever :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: The LT on March 02, 2012, 06:06:25 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on March 02, 2012, 12:31:24 PM
Found extra coins in my account. Thank you whoever :)
... and if you need this:
https://bitcointalk.org/index.php?topic=66699.msg775068#msg775068
Feel free to pass some around :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: chungenhung on March 02, 2012, 02:23:30 PM
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?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on March 02, 2012, 05:23:38 PM
Found extra coins in my account. Thank you whoever :)
... and if you need this:
https://bitcointalk.org/index.php?topic=66699.msg775068#msg775068
Feel free to pass some around :)

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 ;)

(What with the extension not being too useful until they DO arrive!) :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on March 02, 2012, 09:41:28 PM
Found extra coins in my account. Thank you whoever :)
... and if you need this:
https://bitcointalk.org/index.php?topic=66699.msg775068#msg775068
Feel free to pass some around :)

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 ;)

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

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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: The LT on March 03, 2012, 10:29:15 PM
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...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Eveofwar on March 04, 2012, 10:01:41 PM
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 ?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on March 05, 2012, 04:34:44 AM
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)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Eveofwar on March 05, 2012, 04:36:58 AM
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 :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on March 05, 2012, 12:27:09 PM
...

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

EDIT:  Bingo :)
Actually I added it 2 weeks ago :)
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 :)
https://bitcointalk.org/index.php?topic=57342.msg760859#msg760859


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Eveofwar on March 05, 2012, 06:30:48 PM
...

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

EDIT:  Bingo :)
Actually I added it 2 weeks ago :)
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 :)
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: tynt on March 06, 2012, 01:13:48 PM
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?

 


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on March 06, 2012, 02:34:08 PM
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"


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on March 06, 2012, 05:22:59 PM
Are sockets enabled in PHP?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: tynt on March 06, 2012, 06:54:29 PM
Solved now. I was using PHP 5.1.6, upgraded to 5.3.3, now it works


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on March 06, 2012, 07:06:17 PM
I think it should work with all of 5, and probably 4.
Probably some configuration issue fixed with the re-install.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on March 06, 2012, 08:19:33 PM
Ah well - yeah there is a log for that :)

/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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: tynt on March 06, 2012, 10:55:39 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on March 06, 2012, 11:48:01 PM
I see... interesting.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: The LT on March 06, 2012, 11:55:23 PM
Thanks a lot P_Shep for implementing new functions into Anubis! These are a boon when tuning rigs!  ;D Also, thanks a lot to kano for working on the API in the first place!  ;D


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: exahash on April 06, 2012, 02:02:07 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on April 06, 2012, 05:46:49 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: nedbert9 on April 08, 2012, 06:46:05 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on April 08, 2012, 10:34:56 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on April 15, 2012, 03:18:01 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on April 16, 2012, 05:45:54 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DeathAndTaxes on April 20, 2012, 07:33:54 PM
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. :)



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on April 20, 2012, 09:57:48 PM
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. :)



That's an easy one, I'll fix that with my next commit.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Aseras on April 23, 2012, 09:56:13 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Aseras on April 23, 2012, 09:59:02 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on April 24, 2012, 06:22:38 PM
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.



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: DeathAndTaxes on April 24, 2012, 06:50:37 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on April 24, 2012, 07:36:40 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Red Emerald on April 25, 2012, 08:41:36 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: The LT on April 26, 2012, 01:44:01 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on April 29, 2012, 02:44:28 PM
I submitted the pull requests... pretty handy I can do it online.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on May 01, 2012, 09:45:30 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on May 01, 2012, 01:51:53 PM
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?



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on May 12, 2012, 09:47:09 PM
Vast amount of changes in Anubis, go have a play :)

https://github.com/pshep/ANUBIS


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on May 12, 2012, 10:11:40 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on May 12, 2012, 10:21:29 PM
Ah, I was wondering what that could be, make sense. Yeah sorry about that, not sure what I can do about it now :/


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on May 12, 2012, 10:26:59 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on May 12, 2012, 10:44:49 PM
OK, done. Sorry about that, I'll be more careful about that in future.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on May 15, 2012, 03:28:49 AM
Updated again with device details / notifications / stats page

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

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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Mobius on May 24, 2012, 06:30:00 PM
P_Shep - nice work, could you place the hashrate in the tab shown between "Anubis -" and "a cgminer..." and an autorefresh timer.

Thanks


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on May 24, 2012, 06:46:43 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Aseras on May 25, 2012, 05:40:22 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on May 29, 2012, 07:35:54 PM
Updated again.

V2.3

Adds an accounts page, so you can add bitcoin addresses and retrieve a summary of the balances.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Aseras on May 30, 2012, 03:40:51 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on May 30, 2012, 04:12:54 PM
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 :) )


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: nedbert9 on June 06, 2012, 11:30:10 AM
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.



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on June 06, 2012, 05:07:08 PM
Hmmm, AJAX eh?...

A quick google shows that is indeed what I would need. Something new for me to learn.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ibko on June 23, 2012, 11:28:53 PM
Error in configtbl.sql.php (https://github.com/pshep/ANUBIS/blob/master/configtbl.sql.php): lines 36 and 29 are to be deleted.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: miaviator on July 04, 2012, 09:04:23 PM
Thank You for this.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on July 19, 2012, 06:57:35 AM
It would be nice if ANUBIS marked a GPU temp column as red if the reported temp value = 0.


Title: Re: ANUBIS - a CGMINER Web Frontend - Fork/Update
Post by: ralree on August 17, 2012, 05:39:02 AM
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:

http://i.imgur.com/as5CMh.png

More pics at: http://imgur.com/a/bevKh

I hope you all enjoy!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on August 17, 2012, 03:24:37 PM
Great stuff!

It needed working on by someone who knows what they're doing :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ralree on August 19, 2012, 07:15:12 AM
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!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ZPK on August 19, 2012, 02:29:46 PM
possible add history session's ? and refresh via websockets?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on August 19, 2012, 06:22:10 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend - Fork/Update
Post by: cablepair on August 21, 2012, 06:54:34 PM
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


Title: Re: ANUBIS - a CGMINER Web Frontend - Fork/Update
Post by: ralree on August 29, 2012, 04:23:43 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on August 29, 2012, 04:30:59 PM
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...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on September 01, 2012, 02:08:45 AM
New changes are good, but dark colors on black = headache after 2 minutes.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ralree on September 04, 2012, 09:24:20 PM
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>


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: AniceInovation on September 11, 2012, 10:59:24 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on September 12, 2012, 12:52:24 AM
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/


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: btckeeper on September 19, 2012, 11:20:18 AM
Hello all. What is DISCARDS column? I have about 30% discards. What does it mean?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ralree on October 09, 2012, 02:10:24 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: gigica viteazu` on October 14, 2012, 01:32:38 AM
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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: stevegee58 on October 14, 2012, 11:18:25 AM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ralree on October 14, 2012, 05:28:59 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on October 21, 2012, 06:42:40 AM
Added the new API features.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: sharky112065 on November 18, 2012, 02:50:07 PM
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.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on November 18, 2012, 06:34:33 PM
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?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: sharky112065 on November 18, 2012, 09:09:53 PM
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?

I stated what filter=5 does.

It filters out orphaned blocks from your query. The returned values are minus orphans, so you get your true balance.

Regarding login in Anubis, all I know is the last time it was updated on git it no longer works.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Elxiliath on November 28, 2012, 04:25:31 AM
Wow, this is quite awesome.  I've often wondered why this feature wasn't in any of the mining applications. 


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on November 30, 2012, 03:16:37 PM
Wow, this is quite awesome.  I've often wondered why this feature wasn't in any of the mining applications. 
cgminer has one - miner.php
Reasonably simple, but it's had one, for quite a while ...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: BR0KK on February 22, 2013, 12:54:41 AM
Is it possible to run this on a ddwrt ?

Are there any tutorials aviable (for all platforms)?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on February 22, 2013, 04:00:50 PM
php files are php files. They can be run on pretty much any platform.
In DDWRT there is lighttpd which is the php web server... look on ddwrt on how to get that running, it's not too tricky (copy the files to the web share dir, start the service and maybe a config file to edit).


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: BR0KK on February 25, 2013, 12:16:49 AM
Got Anubis working but somehow i cant figure out how to start the cgminer with the flags.
Is this even necessary in your build (does this work ootb) or do i need to write these flags behind the command "service cgminer start --flags here"? Or can i start the service like a usual linux program with "./program here --flags here"?

As I've seen in Anubis the default port for communication is "4028"? how do i tell cgminer to use this or do i even need to do this?

Again some noob questions. I appreciate if somebody would help me out here:)

Once i figured that all out, I could write all of this into a Howto and you could add that to your work (so that no noob comes across again and asks stupid questions).


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: carlo on February 25, 2013, 02:03:34 AM
you need to configure all parameters in the cgminer.conf (its located in your homefolder .cgminer/cgminer.conf)

Maybe you can save your actual config to the file and then edit the rest.

https://github.com/ckolivas/cgminer/blob/master/example.conf


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: chungenhung on April 09, 2013, 05:21:46 PM
I am getting error on some machines
"'The requested name is valid, but no data of the requested type was found"


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on April 10, 2013, 08:58:01 AM
Got Anubis working but somehow i cant figure out how to start the cgminer with the flags.
Is this even necessary in your build (does this work ootb) or do i need to write these flags behind the command "service cgminer start --flags here"? Or can i start the service like a usual linux program with "./program here --flags here"?

As I've seen in Anubis the default port for communication is "4028"? how do i tell cgminer to use this or do i even need to do this?

Again some noob questions. I appreciate if somebody would help me out here:)

Once i figured that all out, I could write all of this into a Howto and you could add that to your work (so that no noob comes across again and asks stupid questions).
Point 1 ... API-README

Point 2 for those who don't bother to read API-README ... If you only want to give API read access:
./cgminer .... --api-listen --api-network
If you want ANUBIS (and the rest of the world with netowrk access) to have read access ... otherwise read API-README :P


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: BR0KK on April 10, 2013, 10:04:31 AM
Got Anubis working but somehow i cant figure out how to start the cgminer with the flags.
Is this even necessary in your build (does this work ootb) or do i need to write these flags behind the command "service cgminer start --flags here"? Or can i start the service like a usual linux program with "./program here --flags here"?

As I've seen in Anubis the default port for communication is "4028"? how do i tell cgminer to use this or do i even need to do this?

Again some noob questions. I appreciate if somebody would help me out here:)

Once i figured that all out, I could write all of this into a Howto and you could add that to your work (so that no noob comes across again and asks stupid questions).
Point 1 ... API-README

Point 2 for those who don't bother to read API-README ... If you only want to give API read access:
./cgminer .... --api-listen --api-network
If you want ANUBIS (and the rest of the world with netowrk access) to have read access ... otherwise read API-README :P

Yes you're right with the readme part, but:

In p-shep's port to dd-wrt cgminer is registered as a service. Start/stop procedure is different from "./cgminer --flags here"

it's started like this:

"sudo service cgminer start"

The problem with this is that a noob won't know where to put the flags?






Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: voidale on April 12, 2013, 04:44:53 PM
Hey guys got this error on anubis panel when added new host

Connection to MyRigIP:4028 failed: 'Connection refused'

This is what I use in CGMINER
--api-listen --api-network --api-allow W:MyHostGatorWebHostingIP
CGMiner screen:
API running in IP access mode on port 4028 (11460)

What is the issue? :X


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: stevegee58 on April 12, 2013, 04:58:39 PM
I started having the same problem with cgminer when I switched over to LTC (scrypt) mining.  When I'm mining LTC it's as if cgminer's api port isn't listening.

As a science experiment I switched back to BTC mining and Anubis could connect again.

I posted this on the cgminer thread but it was ignored.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: voidale on April 12, 2013, 05:13:11 PM
I started having the same problem with cgminer when I switched over to LTC (scrypt) mining.  When I'm mining LTC it's as if cgminer's api port isn't listening.

As a science experiment I switched back to BTC mining and Anubis could connect again.

I posted this on the cgminer thread but it was ignored.

I'm running BTC mining and having this error, Tried an older CGMiner version 2.11.3 and same as 2.11.4.
Does this mean we have to open the ports on the computer (Turned off windows firewall)? Not sure how to fix this...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: voidale on April 12, 2013, 05:34:58 PM
ERR: socket connect(ip,4028) failed (timeout) 'Connection refused' ERR: socket connect(ip,4028) failed (timeout) 'Connection refused' Tried the older version 1.03 and same error  ???

Update: Socket aren't supported on hostgator :) gotta use something else or on localpc.

Another question is API requests are persistent? So if I reopen cgminer it will use default config arguments? Or will it use the ones I used on Anubis?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: LordTheron on April 29, 2013, 10:45:33 PM

Hi Guys,

I get below error. Please help me fix it.


query($show_tables); db_error(); while ($row = $result->fetch(PDO::FETCH_NUM)) { if ($row[0] == "configuration") $gotconfigtbl = 1; if ($row[0] == "hosts") $gothoststbl = 1; } if (!isset($gotconfigtbl)) include("configtbl.sql.php"); if (!isset($gothoststbl)) include("hoststbl.sql.php"); $config = get_config_data(); ?> Hosts
Expand all Hosts query("SELECT * FROM hosts ORDER BY name ASC"); if ($result) { echo ""; echo create_host_header(); while ($host_data = $result->fetch(PDO::FETCH_ASSOC)) echo get_host_summary($host_data); echo create_totals(); echo " "; } else { echo "No Hosts found, you might like to add a host ?
"; } ?>  Add host


When I try to import configtbl.sql into my db i get

ERROR: Unknown Punctuation String @ 1
STR: <?
SQL: <?

$tblstr = "
CREATE TABLE IF NOT EXISTS `configuration` (
  `yellowtemp` int(11) NOT NULL,
  `yellowrejects` int(11) NOT NULL,
  `yellowdiscards` int(11) NOT NULL,
  `yellowstales` int(11) NOT NULL,
  `yellowgetfails` int(11) NOT NULL,
  `yellowremfails` int(11) NOT NULL,
  `maxtemp` int(11) NOT NULL,
  `maxrejects` int(11) NOT NULL,
  `maxdiscards` int(11) NOT NULL,
  `maxstales` int(11) NOT NULL,
  `maxgetfails` int(11) NOT NULL,
  `maxremfails` int(11) NOT NULL,
  `email` varchar(200) NOT NULL,
  `yellowfan` int(11) NOT NULL,
  `maxfan` int(11) NOT NULL,
  `yellowgessper` int(11) NOT NULL,
  `maxgessper` int(11) NOT NULL,
  `yellowavgmhper` int(11) NOT NULL,
  `maxavgmhper` int(11) NOT NULL
)".$table_props.";
";


SQL query:

<? $tblstr = " CREATE TABLE IF NOT EXISTS `configuration` ( `yellowtemp` int(11) NOT NULL, `yellowrejects` int(11) NOT NULL, `yellowdiscards` int(11) NOT NULL, `yellowstales` int(11) NOT NULL, `yellowgetfails` int(11) NOT NULL, `yellowremfails` int(11) NOT NULL, `maxtemp` int(11) NOT NULL, `maxrejects` int(11) NOT NULL, `maxdiscards` int(11) NOT NULL, `maxstales` int(11) NOT NULL, `maxgetfails` int(11) NOT NULL, `maxremfails` int(11) NOT NULL, `email` varchar(200) NOT NULL, `yellowfan` int(11) NOT NULL, `maxfan` int(11) NOT NULL, `yellowgessper` int(11) NOT NULL, `maxgessper` int(11) NOT NULL, `yellowavgmhper` int(11) NOT NULL, `maxavgmhper` int(11) NOT NULL )".$table_props."; ";

MySQL said: 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?

$tblstr = "
CREATE TABLE IF NOT EXISTS `configuration` (
  `yellowtemp` int(' at line 1



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on April 30, 2013, 10:19:06 AM
You're trying to create the table manually but importing the file directly? '<?' is the php marker, so SQL won't understand that.
If you're going to do it that way, you need to use every thing from CREATE to )


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: LordTheron on April 30, 2013, 10:45:06 AM
You're trying to create the table manually but importing the file directly? '<?' is the php marker, so SQL won't understand that.
If you're going to do it that way, you need to use every thing from CREATE to )

At first Ive tried to create db and follow the instructions from read me but had errors on home page and no tables would be created in the DB. Ive tied to create tables in db manually but getting  the same problem. any idea what to do next? Im running latest version of Wamp server, Sql 5.0.37, php 5.2.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: LordTheron on April 30, 2013, 01:46:12 PM
All sorted and working.  ;D Turns out I had to  use php ver 5.3 and it did the trick. No luck on php 5.2 or 5.4.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on April 30, 2013, 02:26:00 PM
Ah good.
How curious though :/


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: 18RATTT on May 04, 2013, 06:29:20 PM
i dont have any proficiency in php etc.
anyone willing to tag me along? so i can view it in your website?? my cgminer web status that is.
thanks,


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: add1ct3dd on May 07, 2013, 11:34:43 PM
Hey guys - is a specific version of cgminer required? I can only view stats for my first gpu!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kentt on May 08, 2013, 04:26:51 AM
I'm hoping I can get some help with a problem setting this up.
Everything installed perfectly on my server.
I'm running cgminer as follows
Code:
cgminer.exe -o http://api.bitcoin.cz:8332 -u foo -p bar --api-allow W:0/0 --api-listen
(yes 0/0 just for testing)
I get the output from cgminer 3.1.0
Code:
[2013-05-07 21:05:35] API running in IP access mode on port 4028 (7396)
Port 4028 is open on this computer.  I tested this using this site: http://www.canyouseeme.org/
The server I'm using to access this is from nosupportlinuxhosting.com, has PHP 5.3 and mySQL.
When I use Anibus from my server the error I get is
Code:
Connection to [my miners ip]:4028 failed: 'Operation now in progress'
Any advice on this would be appreciated.  Thanks.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on May 08, 2013, 04:47:17 AM
... firewall/router block somewhere ...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: shacky on May 08, 2013, 05:49:54 AM
I love this web frontend. The features I left in this tool:

- Fully functional email alerts.
- Any way we can configure it to send commands like (restart GPU if it's dead, restart cgminer when kh/s go below x amount.)
- Mass config changer (to change the pool to all cgminers who have write access.)
- History of highest/lowest temp.

I will try to add a few of that features and will let you know.

Thanks to the developer, and the contributors!



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: moroz on May 13, 2013, 09:16:11 PM
If anyone is interested in an automated anubis install script:
https://sourceforge.net/projects/anubisauto/files/?source=navbar
This should work on any aptitude capable distro, it does install apache and mysql and sets right users/passwords. It uses P_Sheps git to get fresh version of anubis.

I was thinking of making a small linux distro, probably ~500 megs with anubis and cacti cgminer template from JinTu (https://bitcointalk.org/index.php?topic=76502.0) for peeps without linux knowledge, to boot from thumb drives. Anyone interested?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kentt on May 16, 2013, 04:39:40 AM
What is the email address used for?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Sitarow on May 24, 2013, 02:49:49 AM
If anyone is interested in an automated anubis install script:
https://sourceforge.net/projects/anubisauto/files/?source=navbar
This should work on any aptitude capable distro, it does install apache and mysql and sets right users/passwords. It uses P_Sheps git to get fresh version of anubis.

I was thinking of making a small linux distro, probably ~500 megs with anubis and cacti cgminer template from JinTu (https://bitcointalk.org/index.php?topic=76502.0) for peeps without linux knowledge, to boot from thumb drives. Anyone interested?

That would help keep this project fresh.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Nasty on May 27, 2013, 03:39:32 AM
Bring thread back to life because this is a good project.   Please use  FATDOG as the linux platform.  200ish MB.   


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Tekkna on May 27, 2013, 11:33:50 PM
Actually, why not add this to BAMT, I suppose the only problem there is you'd have to either have a LAMP stack pre-installed, or have an installer script that can be auto-ran, maybe if an install time option is selected?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: CumpsD on May 28, 2013, 07:17:02 AM
I use this on Windows IIS server, moving it only to BAMT would limit users


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Tekkna on May 28, 2013, 01:49:20 PM
Not necessarily moving the entire project, just include it with BAMT. Then there would be more interest in it, like packaging Mate with Ubuntu would create more Mate devs.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: MWNinja on May 29, 2013, 01:36:53 PM
We'll be including Anubis (with our mods of course) in our Linux distribution for the BeagleBone Black.  It's a work in progress, but here's what it currently looks like.
Lots of CSS changes are in the works as I don't like the readability of the current design.  I've already heavily tweaked the CSS to make it responsive/mobile friendly.
http://i.imgur.com/ytE6KY2l.png http://i.imgur.com/1ogM51Ul.png



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: CumpsD on May 29, 2013, 01:44:48 PM
Nice :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on May 29, 2013, 04:53:36 PM
Very good.

I'm not using it anymore as I'm no longer mining, so if anyone wants to take over, I'll happily transfer ownership of the repository.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: steganos on May 29, 2013, 07:06:24 PM
That looks awesome MWNinja!  

I'd like to know more about what BeagleBone Black is.

edit:  Nevermind.  This explains it http://beagleboard.org/Products/BeagleBone%20Black

Thanks.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: qiuness on May 29, 2013, 07:44:01 PM
Can this be used on Windows and would it work for scrypt currencies as well?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: CumpsD on May 29, 2013, 09:15:51 PM
We'll be including Anubis (with our mods of course) in our Linux distribution for the BeagleBone Black.  It's a work in progress, but here's what it currently looks like.
Lots of CSS changes are in the works as I don't like the readability of the current design.  I've already heavily tweaked the CSS to make it responsive/mobile friendly.
http://i.imgur.com/ytE6KY2l.png http://i.imgur.com/1ogM51Ul.png

Will you be making your changes available for non BeagleBone Black users?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: MWNinja on May 30, 2013, 02:43:48 PM
Will you be making your changes available for non BeagleBone Black users?

Yes, we'll have everything up on github when its ready for prime time.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: CumpsD on May 30, 2013, 02:58:12 PM
Will you be making your changes available for non BeagleBone Black users?

Yes, we'll have everything up on github when its ready for prime time.

Nice, looking forward to it!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: MWNinja on May 30, 2013, 05:36:08 PM
Can this be used on Windows and would it work for scrypt currencies as well?

Sure it will run on windows, it just needs a database, webserver, and php. Much easier to get those things running on Linux in my opinion, but there's nothing technical preventing you from running on windows. It should work with scrypt as well, just as long as the API from cgminer works there.



Title: some db problems
Post by: calandro on May 31, 2013, 09:47:58 AM
Hi,
I install anubis with the newest WAMP on a Win7x64 PC. If I open http://localhost/anubis I get the brown starting page with the navigation bar on top but no button to insert new miner. I connected the db by phpMyAdmin and insert some informations into the "hosts" table (like IP, name, port - but no "conf_file_path"). If I restart the system the homepage don't show this entry as host.

Any solutions?

Can I check the working API from cgminer by telnet (putty) to port 4028? I try this but putty ends immediately


Title: Re: some db problems
Post by: kano on June 02, 2013, 08:12:00 AM
Hi,
I install anubis with the newest WAMP on a Win7x64 PC. If I open http://localhost/anubis I get the brown starting page with the navigation bar on top but no button to insert new miner. I connected the db by phpMyAdmin and insert some informations into the "hosts" table (like IP, name, port - but no "conf_file_path"). If I restart the system the homepage don't show this entry as host.

Any solutions?

Can I check the working API from cgminer by telnet (putty) to port 4028? I try this but putty ends immediately
No.
My cgminer API is a one command+reply per connection socket (on purpose)
To access the API from windows you can use the supplied java API.class
As an example from the cgminer folder: java API summary


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: MWNinja on June 02, 2013, 02:34:45 PM
And here's what it looks like after a CSS overhaul, I still need to clean up the code and checkin to github next week. 

http://i.imgur.com/RJlsQu9.png


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: tnkflx on June 03, 2013, 09:00:18 AM
And here's what it looks like after a CSS overhaul, I still need to clean up the code and checkin to github next week. 
...

Looks good :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Jazkal on June 03, 2013, 11:41:29 PM
I'm running on Windows 7 x64. I've tried XAMPP, and WAMP and I can not get ANUBIS to install correctly. Can anyone tell me what package I can run on Windows that will work with ANUBIS?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on June 04, 2013, 12:02:52 AM
tried easyphp?

http://www.easyphp.org/


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Jazkal on June 04, 2013, 12:08:08 AM
tried easyphp?

http://www.easyphp.org/
I have not, going to try now. Which would you suggest?

http://www.easyphp.org/easyphp-devserver.php

v13.1 VC9 or
v13.1 VC11

EDIT: nevermind, VC11 isn't available yet.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: MWNinja on June 10, 2013, 08:08:11 PM
Here's the repo that has our MineNinja mods to ANUBIS that we use with the BeagleBone Black (can be used on any platform that supports ANUBIS).

https://github.com/slayersoft/MineNinja/


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: CumpsD on June 11, 2013, 05:41:37 AM
Thanks, gonna give it a shot later this week :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: ZPK on June 11, 2013, 11:38:11 AM
Here's the repo that has our MineNinja mods to ANUBIS that we use with the BeagleBone Black (can be used on any platform that supports ANUBIS).

https://github.com/slayersoft/MineNinja/
nice, thx for this)


Title: ...what is wrong?
Post by: calandro on June 12, 2013, 02:25:14 PM
Hi,
i checked the API function by "java API summary" and got some right informations. All firewalls are configured but I can't get any miner into Anubis. I miss any button to insert new machines at the starting page. I insert one miner by hand into the table "hosts" but there is no function, no dedection, no view :-(

 ???


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Svingen on June 15, 2013, 11:00:50 AM
Here's the repo that has our MineNinja mods to ANUBIS that we use with the BeagleBone Black (can be used on any platform that supports ANUBIS).

https://github.com/slayersoft/MineNinja/

Awsome, just one quastion. Is it easy to change the code so that the hashrate is shown in khash/s. Using this frontend to monitor
my litecoin rigs.

Really nice UI :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on June 15, 2013, 05:16:29 PM
just installed the new version (along side the older version of anubis) on WAMP, win7 64bit.

runs great, except the BTC/Dollar part is blank, and my jalapeno is detected as "? ? ?"  lol. should be "BAJ". all the stats are correct though.

thanks!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on June 15, 2013, 07:07:44 PM
just installed the new version (along side the older version of anubis) on WAMP, win7 64bit.

runs great, except the BTC/Dollar part is blank, and my jalapeno is detected as "? ? ?"  lol. should be "BAJ". all the stats are correct though.

thanks!

yeah, it'll need updating for the new asic nomenclature.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: JohnSy on June 15, 2013, 11:49:00 PM
Hi !

Nice going

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


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: MWNinja on June 16, 2013, 03:53:08 PM
just installed the new version (along side the older version of anubis) on WAMP, win7 64bit.

runs great, except the BTC/Dollar part is blank, and my jalapeno is detected as "? ? ?"  lol. should be "BAJ". all the stats are correct though.

thanks!

The Mtgox BTC/USD widget requires a web browser that supports websockets, such as Chrome or other Webkit based browsers.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: MWNinja on June 16, 2013, 03:54:42 PM
Here's the repo that has our MineNinja mods to ANUBIS that we use with the BeagleBone Black (can be used on any platform that supports ANUBIS).

https://github.com/slayersoft/MineNinja/

Awsome, just one quastion. Is it easy to change the code so that the hashrate is shown in khash/s. Using this frontend to monitor
my litecoin rigs.

Really nice UI :)

It wouldn't be too hard to do a proper port of this to Litecoin, most of the changes would be in func.inc.php


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: vapourminer on June 16, 2013, 04:12:13 PM
The Mtgox BTC/USD widget requires a web browser that supports websockets, such as Chrome or other Webkit based browsers.

just tried in chrome (win7), still blank.

looked into extensions for "web socket" too in case is was something like that, but no joy.

what am I missing?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: shacky on June 20, 2013, 05:20:21 PM
Hi everyone,

Im looking for anyone who can modify this script to add two features I need. (Bulk pool changer, Bulk pool add.) PM me if you want to know more. I will pay in bitcoins.

Thanks


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Maidak on July 07, 2013, 11:06:38 PM
Can this be setup to be used with a raspberry pi and minepeon?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: stfnnn on July 16, 2013, 09:48:19 PM
just installed the new version (along side the older version of anubis) on WAMP, win7 64bit.

runs great, except the BTC/Dollar part is blank, and my jalapeno is detected as "? ? ?"  lol. should be "BAJ". all the stats are correct though.

thanks!

yeah, it'll need updating for the new asic nomenclature.

Do you have any idea if this update is coming? I would like it to support my Avalons.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on July 17, 2013, 05:17:07 PM
Fix it, submit a pull request and I'll merge it.

I no longer mine, so can't test anything.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: amdminer on August 03, 2013, 10:52:52 AM
Hello.
Could you help me - I can't understand why this problem constantly appears on my farms

http://i49.fastpic.ru/big/2013/0803/b5/a0fbcf01a31dc5f4cc804db6f76cb1b5.jpg

Devices section becomes 0 and current hashrate becomes 0 too.
Is this anubis problem or something wrong with cgminer?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: dlasher on August 04, 2013, 08:25:49 AM
Doesn't support 'desired' hashrate over 9999 mhash... which means any of the faster ASICs show up funny..

http://i.imgur.com/Plao3fE.png



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: CrazyGuy on September 06, 2013, 04:27:58 AM
just installed the new version (along side the older version of anubis) on WAMP, win7 64bit.

runs great, except the BTC/Dollar part is blank, and my jalapeno is detected as "? ? ?"  lol. should be "BAJ". all the stats are correct though.

thanks!

yeah, it'll need updating for the new asic nomenclature.

Do you have any idea if this update is coming? I would like it to support my Avalons.

I'm incorporating Anubis in a project I'm working on and decided to add ASIC support. Pull request submitted to pshep's fork:

This project is still by far the best CGMiner/BFGMiner web frontend.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Jriker1 on September 07, 2013, 10:28:03 PM
Any thoughts on why Anubis is reporting "'An existing connection was forcibly closed by the remote host" for one of my connections?  I have all my systems running in a private network, no firewalls on 192.168.137.x with default 4028 API port.  They have a gateway out but not relevant for this part of the setup as everything talks internally.  Have the following in my cgminer.conf:

"api-listen" : true,
"api-allow" : "W:192.168.137.0/24,127.0.0.1",
"api-port" : "4028"

Anubis is running on a computer within the 192.168.137 network as 192.168.137.1

And note since I read it here. I am mining scrypt currencies and wouldnt think that makes a difference if cgminer works on the API port but who knows. I know cgwatcher is working local.

Thoughts?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: milone on September 08, 2013, 09:19:13 AM
Any thoughts on why Anubis is reporting "'An existing connection was forcibly closed by the remote host" for one of my connections?  I have all my systems running in a private network, no firewalls on 192.168.137.x with default 4028 API port.  They have a gateway out but not relevant for this part of the setup as everything talks internally.  Have the following in my cgminer.conf:

"api-listen" : true,
"api-allow" : "W:192.168.137.0/24,127.0.0.1",
"api-port" : "4028"

Anubis is running on a computer within the 192.168.137 network as 192.168.137.1

And note since I read it here. I am mining scrypt currencies and wouldnt think that makes a difference if cgminer works on the API port but who knows. I know cgwatcher is working local.

Thoughts?


This might be a CGWatcher bug. It causes the api-allow to be overwritten and is fixed in the next update (available tomorrow/today... August 8). More info from CGWatcher newbie thread from someone reporting a similar problem... https://bitcointalk.org/index.php?topic=159267.msg3073090#msg3073090


It's not that CGWatcher takes "priority", as normally there is no problem using other API-monitoring applications while CGWatcher is running. But there was a problem with recent versions of CGWatcher not enabling the API correctly. This is fixed in 1.3.1, which will be available shortly (today or tomorrow).

Until then, there is a workaround that should prevent this. You just have to make sure that you enable the API in arguments, and include 127.0.0.1 in the full privilege group (W:).

So in the profile arguments, make sure there is a setting:  --api-allow W:127.0.0.1<any other IP addresses separated by commas>

Because of the bug, this has to be done in arguments because the arguments api-allow option will override the config file api-allow option (if one is used). Once CGWatcher sees that 127.0.0.1 is already included in the W: group, it should leave the setting untouched.

In 1.3.1, this is corrected and the code for checking if the API is enabled and enabling it is now a little smarter.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: stylesuxx on September 11, 2013, 10:23:11 AM
Looks interesting. I will give it a try in the evening :-)
I wonder though if this is still maintained since the last commits are a couple of months old.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on October 25, 2013, 03:21:14 PM
Finally updated it for ASIC.

Up on the GIT site:
https://github.com/pshep/ANUBIS


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Inaba on October 25, 2013, 05:52:55 PM
What changes have been made for ASICs?  Changelog wasn't updated?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: CrazyGuy on October 25, 2013, 06:06:36 PM
What changes have been made for ASICs?  Changelog wasn't updated?

Support for "ASC" device type returned from cgminer API. I added it a couple months ago, pshep might have had to clean it up a bit.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on October 25, 2013, 06:13:37 PM
What changes have been made for ASICs?  Changelog wasn't updated?

Support for "ASC" device type returned from cgminer API. I added it a couple months ago, pshep might have had to clean it up a bit.

Oh, I didn't even see the pull requests! I did it myself... could have saved my time!

And they're almost identical! :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: CrazyGuy on October 25, 2013, 06:28:59 PM
What changes have been made for ASICs?  Changelog wasn't updated?

Support for "ASC" device type returned from cgminer API. I added it a couple months ago, pshep might have had to clean it up a bit.

Oh, I didn't even see the pull requests! I did it myself... could have saved my time!

And they're almost identical! :)

Whoops, should have sent you a message, sorry. Had to see my jally!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: roadsterreplica on November 06, 2013, 01:14:54 AM
Love the interface.

However, I spent the better part of an hour trying to get it up and running. Turns out that there was an extra comma in the table creation code causing it to block. Fixed it, hopefully no one else will run into that problem.



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: elpenguin on November 06, 2013, 04:01:49 PM
Same problem here, extra comma at the end of line 23 of configtbl.sql.php


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on November 06, 2013, 06:11:53 PM
Sorry, fixed it.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: capa on November 11, 2013, 10:35:06 AM
Hi, i'm trying to get Anubis running on a BeagleBoneBlack using Debian os, my ultimate goal is to get it working on my KnC miner. I've used sqlite for the db edited the config.ini.php appropriately and made a db called Anubis_db in sqlite
I'm stuck here
FATAL: Cannot use Anubis_db ! SQLSTATE[HY000] [14] unable to open database file

should i just give up and switch to mysql?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on November 11, 2013, 11:29:42 AM
You don't need to create the DB manually, but yeah, you can use MySQL if it works better.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: capa on November 11, 2013, 02:32:41 PM
Thanks for your help P_Shep :) much appreciated.

I hope to see Anubis running on my network soon!



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: 2GOOD on December 07, 2013, 10:34:02 PM
With the new version of cgminer 3.8.3 I get only zeroes:

Code:
0/0 0 0.00
()
0 %
0 %


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on December 08, 2013, 01:15:29 PM
With the new version of cgminer 3.8.3 I get only zeroes:

Code:
0/0 0 0.00
()
0 %
0 %
You need 3.8.4 since I'd guess that anubis uses json (no idea why) and there was a bug in 3.8.3 that killed accepting json in the API
Plain text works fine.

I never use json in the API - I only added it in the original API when I wrote it as an after thought - only one of the people who donated for the API wanted json - and even he only asked for it at the very end after the code was done.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: 2GOOD on December 09, 2013, 02:17:02 AM
With the new version of cgminer 3.8.3 I get only zeroes:

Code:
0/0 0 0.00
()
0 %
0 %
You need 3.8.4 since I'd guess that anubis uses json (no idea why) and there was a bug in 3.8.3 that killed accepting json in the API
Plain text works fine.

I never use json in the API - I only added it in the original API when I wrote it as an after thought - only one of the people who donated for the API wanted json - and even he only asked for it at the very end after the code was done.

That was it.

Thanks for the fast reply :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: linked67 on December 14, 2013, 12:24:38 PM
Is the email used for something ?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on December 15, 2013, 09:23:50 PM
Is the email used for something ?

nope :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Hej on December 16, 2013, 10:37:46 PM
I would be really happy if someone could help me solve this error: Undefined index: MHS 5s

http://i.imgur.com/Kc8cw8b.jpg


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on December 17, 2013, 05:09:32 PM
Did you change the default 5-second averaging foe another duration?

The index for that moving average is labels based on that time. Ordinarily it's 'MHS 5s', but if you change that parameter, the name of the index label will change, i.e. to 'MHS 10s' etc. Anubis just looks for 'MHS 5s'.
You can change to code pretty easily to suit your needs, just do a search/replace.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Hej on December 17, 2013, 11:48:19 PM
Did you change the default 5-second averaging foe another duration?

The index for that moving average is labels based on that time. Ordinarily it's 'MHS 5s', but if you change that parameter, the name of the index label will change, i.e. to 'MHS 10s' etc. Anubis just looks for 'MHS 5s'.
You can change to code pretty easily to suit your needs, just do a search/replace.

I don't copy. I have tried to add the host with or without any values in the MH/s desired field, but I still get the same errors. I have also tried to remove all variables that has connection to the desired mhs value, but it won't work...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: P_Shep on December 18, 2013, 04:18:34 PM
an option in cgminer is to change the averaging time. by default that's 5 seconds. Anything else and anubis would show an error like that.

One thing I'm confused about is that it says error in index.php on line 364. Index.php only goes up to 132.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Ninetoe on December 19, 2013, 07:17:21 PM
set up standard wampserver for testing and mysql.

but getting these messages whenever i click a host

http://imgur.com/6h1cGfm,gLYbbpY (http://imgur.com/6h1cGfm,gLYbbpY)

php settings have been set and other tips ive seen in this thread.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: gigica viteazu` on December 23, 2013, 11:53:05 PM
Thanks for your help P_Shep :) much appreciated.

I hope to see Anubis running on my network soon!



did you manage to make it work ? i`m getting the same error on minepeon.



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: sid on December 24, 2013, 09:05:53 AM
Hi guys,

I installed anubis in order to check easier my mining rig. Unfortunately I can't to run it successfully.
I've added my hosts but get the following error:
BTC
   Connection to 127.0.0.1:4029 failed: 'Permission denied'
LTC
   Connection to 127.0.0.1:4028 failed: 'Permission denied'

I've tried with two different miners configs:
1st one:
"api-allow" : "W: 127.0.0.1,192.168.88.0/24",
"api-listen" : true,
"api-network" : true,
"api-mcast-port" : "4028",
"api-port" : "4028",

2nd one:
"api-listen" : true,
"api-port" : "4029",

I also tried running embedded miner.php from cgminer, I get this error in it:
Error getting device list: ERR: socket connect(0) failed

I'm not linux-guru guy so any help will be appreciated.

http://imgur.com/AQDFXf3 (http://imgur.com/AQDFXf3)
Best Regards and merry Christmas!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: gigica viteazu` on December 25, 2013, 10:37:49 PM
in my case it worked ONLY with:

Quote
"api-allow" : "W:127.0.0.1,W:192.168.88.0/24",


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Desten on December 28, 2013, 09:17:45 PM
P_Shep, func.inc.php:695
Code:
global $$Hash_Method;


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: predatorkill on January 03, 2014, 06:12:29 PM
excellent piece of software, i was so tired logging in with teamviewer to my 2 rigs to check the miners status...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: elproducto on January 04, 2014, 09:14:26 AM
I used easyphp on Windows and was successful in setting up Anubis to monitor my rigs.  I was concerned with security as the easyphp was designed for developers.  I then choose to set up Apache, PHP, and MySQL on FreeBSD.  I think I am missing a setting for php, as I had to Allow PHP scripts starting with <? ? just to get the Anubis web page to load.  I am not sure what I am missing.  For some reason I am getting the following errors when using the Anubis interface:

Initial Anubis Page
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1111
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1112
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1113
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1114
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1115
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1116

Quote
$sumrejects = round($data_totals['rejects'] / $data_totals['hosts'],1);
$sumdiscards = round($data_totals['discards'] / $data_totals['hosts'],1);
$sumstales = round($data_totals['stales'] / $data_totals['hosts'],1);
$sumgetfails = round($data_totals['getfails'] / $data_totals['hosts'],1);
$sumremfails = round($data_totals['remfails'] / $data_totals['hosts'],1);
$difficulty = round($data_totals['Diff1Accepts'] / $data_totals['VarDiffAccepts'],2);

After adding host without MH/s desired
Warning: PDO::exec(): SQLSTATE[HY000]: General error: 1366 Incorrect decimal value: '' for column 'mhash_desired' at row 1 in /usr/local/www/apache24/data/ANUBIS/addhost.php on line 18
FATAL: DB-Error: Incorrect decimal value: '' for column 'mhash_desired' at row 1
Quote
$updr = $dbh->exec($updq);


After adding host with MH/s desired
Usual Summary is missing and following error
Host has been added !
Fatal error: Call to undefined function socket_create() in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 80
Home page does not list information about host and add host button is missing

Quote
  $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Desten on January 04, 2014, 02:41:06 PM
After adding host with MH/s desired
Usual Summary is missing and following error
Host has been added !
Fatal error: Call to undefined function socket_create() in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 80

Add this line to your php.ini where your extensions declared:
Quote
extension                  = php_sockets.dll


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: elproducto on January 04, 2014, 11:55:49 PM
After adding host with MH/s desired
Usual Summary is missing and following error
Host has been added !
Fatal error: Call to undefined function socket_create() in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 80

Add this line to your php.ini where your extensions declared:
Quote
extension                  = php_sockets.dll


Thanks that did the trick but i just had to enable that extension,  the direction you gave are for Windows Install. 

Does the email functionality work in Anubis?  If so how does it work? 

Now I am just getting errors on the host details page using P-Sheps build no error using MineNinja build.

Error underneath miner name
Notice: Undefined variable: Hash_Method in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 695
Notice: Undefined variable: Hash_Method in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 695
Notice: Undefined variable: Hash_Method in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 719
Line 695
Quote
global $$Hash_Method;
Line 719
Quote
if ($Hash_Method=='scrypt')

Error underneath devices
Notice: Undefined offset: 1 in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1053
Notice: Undefined offset: 2 in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1053
Notice: Undefined variable: difficulty in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1065
Line 1053
Quote
if ($pools_in_use[$pool_data_array['POOL']] == true)
Line 1065
Quote
<td $rejectscol>".$rejected."<BR>".$rejects."</td>


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Desten on January 05, 2014, 12:04:18 AM
Thanks that did the trick but i just had to enable that extension,  the direction you gave are for Windows Install.
Oh, yes, forgot that you using linux. So .dll == .so. You fixed it - ok.

Line 695
Quote
global $$Hash_Method;
Look at my message #344 at this page (https://bitcointalk.org/index.php?topic=57342.msg4192091#msg4192091)..
PS: delete database and recreate it.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Hechay on January 05, 2014, 09:48:51 AM
Code:
Warning: socket_read() [function.socket-read]: unable to read from socket [104]: Connection reset by peer in

Got this error. What does it mean? This for cgminer 3.8.5

Thanks.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: dwolfx on January 07, 2014, 08:12:22 AM
Is there any...way to link cgminer API reporting to a single CGminer client?
IE:
Machine 1 has 3 instances of CGminer running (1 for each card) and they all report to Cgminer1 so that I can nest all the separate CGminers into a single Machine using Anubis, atm I have anubis setup where each GPU appears as a separate machine.
If I nest them into a single machine only the hash rate and information for the first card is reported , also since I am mining litecoins I managed to change mh/s to kh/s but the kh/s 5s is reporting %percentage in MH/s so it looks like im at 999999% instead of 99%.

Any pointers would be appreciated.
Thanks


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Desten on January 07, 2014, 12:49:21 PM
dwolfx, About 1000x times in calculations - change $Hash_Method to scrypt at func.inc.php:27.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: runlinux on January 07, 2014, 12:52:01 PM
Is there any...way to link cgminer API reporting to a single CGminer client?
IE:
Machine 1 has 3 instances of CGminer running (1 for each card) and they all report to Cgminer1 so that I can nest all the separate CGminers into a single Machine using Anubis, atm I have anubis setup where each GPU appears as a separate machine.
If I nest them into a single machine only the hash rate and information for the first card is reported , also since I am mining litecoins I managed to change mh/s to kh/s but the kh/s 5s is reporting %percentage in MH/s so it looks like im at 999999% instead of 99%.

Any pointers would be appreciated.
Thanks

Use a different API port for each instance.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: dwolfx on January 08, 2014, 07:45:07 AM
Is there any...way to link cgminer API reporting to a single CGminer client?
IE:
Machine 1 has 3 instances of CGminer running (1 for each card) and they all report to Cgminer1 so that I can nest all the separate CGminers into a single Machine using Anubis, atm I have anubis setup where each GPU appears as a separate machine.
If I nest them into a single machine only the hash rate and information for the first card is reported , also since I am mining litecoins I managed to change mh/s to kh/s but the kh/s 5s is reporting %percentage in MH/s so it looks like im at 999999% instead of 99%.

Any pointers would be appreciated.
Thanks

Use a different API port for each instance.

I do have a different API port for each instance.
Setup:
One CgMiner Running for each card on one machine.
Different ports for each Cgminer for each card (ex:4028 4029 4030).
But the only way I can see them in Anubis is if I treat each of them as a different machine.
So my rigs show up as so in anubs
LTC1 Dev 1/3 temp /hash etc.
LTC2 Dev 1/3 temp /hash etc.
LTC3 Dev 1/3 temp /hash etc.
What I would like is, to have
Machine 1 Dev 3/3 temp / cumulative hash etc.
Then to be able to click on that and expand the host to see individual cards performance.

But I don't think it works when you run separate instances of CGMiner for each card.
;)
If I run all three devices under one CGMiner, it will work, but I lose hash rate like that for some reason.

dwolfx, About 1000x times in calculations - change $Hash_Method to scrypt at func.inc.php:27.

$Hash_Method = "scrypt";
Yea i have that like that already.
Strange.
Problem is the kh/s 5s gives me readings like
460
102222.2 %
The kh/s is working right at 102% target.
kinda just need to move the decimal over for the h/s 5s.

Don't get why its fuxed not really a big deal just annoying.
http://postimg.org/image/gesilb931/
Trying to clean it up, don't have much time on hand to scan php lines for a fix.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Hej on January 08, 2014, 11:03:07 AM
How do I solve the problem when I have two instances of cgminer running on one computer? Both instances have to run at different API ports, which is easy to accomplish, but in the Anubis settings you can only specify one API port per computer...


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: danboid on January 13, 2014, 09:17:11 AM
Hi BTCtalk forum!

I posted most of the questions below in the Newbie forum yesterday as that was the only place I was allowed to post but none of my questions got answered so I'm re-posting the here, which is where I wanted to post them originally.

I've recently set up a mine running cgminer (3.8.2) under Debian (Jessie amd64) that has 30 Icarus USB block erupters attached. Every 2 or 3 days the erupters get ZOMBIEfied and I need to manually restart cgminer, then they run fine for another couple of days or so. Not ideal!

This situation has given rise to the following questions:

1 - Is ANUBIS capable of detecting and restarting cgminer for my Icarus mines when they get zombiefied?

2 - There seems to be at least 3 different forks of ANUBIS already. Is pshep's the best?

3 - What are ANUBIS's dependency version requirements (cgminer version, PHP, Mysql etc.)

I've already filed a ticket against ANUBIS on github before I've even tried it as the README doesn't explain what ANUBIS is or what features it has. I would also like to see the OP of this thread get updated to address these questions so people don't have to read 18+ pages of posts just to find out what ANUBIS can do!

Thanks for your help!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: sikboy on January 20, 2014, 09:54:16 AM
Im getting this error

Parse error: syntax error, unexpected '}' in /home/onsell/public_html/sikboy.net/Anubis/config.inc.php on line 43





line 41 to 51

      /*** connect to MySQL database ***/
      $dbh = new PDO("mysql:host=".$localhost.";dbname=".$onsell_anubus, $onsell_sikboy, $*****);
    }
    catch(PDOException $e)
    {
      die ('FATAL: Cannot use Anubis_db !  ' . $e->getMessage());
    }

    $primary_key = "int(3) NOT NULL AUTO_INCREMENT PRIMARY KEY";
    $table_props = " ENGINE=MyISAM  DEFAULT CHARSET=latin1";
    $show_tables = 'SHOW TABLES';


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: sikboy on January 20, 2014, 11:39:02 AM
fixed above error, but now blank on my server


www.sikboy.net/Anubis



any suggestions


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: gigica viteazu` on January 20, 2014, 11:39:26 PM
any suggestions

I`ll delete the entire folder and download again, just to be sure there are no computer gremlins messing with bytes


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on January 24, 2014, 01:16:51 PM
Any chance this can be updated to support showing temps for KnCMiner and Hashfast ASIC machines?

I can see the die temp of a Hashfast Babyjet if I dig around in the raw stats table for the machine in ANUBIS, but i'd be nice for the temp to be working on the main page.

Also my MH/s 5s seems to be broken in ANUBIS on my litecoin miners since updating (yet working on my ASIC's), even running cgminer 3.5.1, which is the last version to support scrypt mining.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: gigica viteazu` on January 24, 2014, 02:38:36 PM
cgminer 3.5.1, which is the last version to support scrypt mining.

cgminer 3.7.2 is the last version with GPU/scrypt support.


Any chance this can be updated to support showing temps for KnCMiner and Hashfast ASIC machines?

I can see the die temp of a Hashfast Babyjet if I dig around in the raw stats table for the machine in ANUBIS, but i'd be nice for the temp to be working on the main page.

regarding ASICs, does KnCMiner and Hashfast work with the oficial cgminer release or are they using forked version (like Bitmain AntMiner)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on January 24, 2014, 08:38:58 PM
cgminer 3.5.1, which is the last version to support scrypt mining.

cgminer 3.7.2 is the last version with GPU/scrypt support.


Any chance this can be updated to support showing temps for KnCMiner and Hashfast ASIC machines?

I can see the die temp of a Hashfast Babyjet if I dig around in the raw stats table for the machine in ANUBIS, but i'd be nice for the temp to be working on the main page.

regarding ASICs, does KnCMiner and Hashfast work with the oficial cgminer release or are they using forked version (like Bitmain AntMiner)


oh ok, 3.7.2 fixed my anubis issue

with the ASIC's i'm not sure


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Batteryman on January 25, 2014, 11:52:25 AM
Has anyone got this working with Bitmain Antminer S1 or similar?



 


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: gigica viteazu` on January 25, 2014, 10:08:45 PM
Has anyone got this working with Bitmain Antminer S1 or similar?

yes but you have to modify some of the files (ANUBIS`s files) because the cgminer fork used in AntMiner reports the speed in Ghs instead of Mhs


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: xjack on January 26, 2014, 12:01:40 AM
I'm on the 12.12 ANT firmware with the mineninja build and it's working fine.  I've read the API is broken on the cgminer version that's included in the later ANT firmware, but can't confirm.

https://dl.dropboxusercontent.com/u/30721962/Anubis_Ant1.jpg

https://dl.dropboxusercontent.com/u/30721962/Anubis_Ant2.jpg

https://dl.dropboxusercontent.com/u/30721962/Anubis_Ant3.jpg




Dial changes in /var/www/anubis/index.php

https://dl.dropboxusercontent.com/u/30721962/Anubis_Ant5.jpg


ssh into the S1 and add your anubis IP the following line in /etc/config/cgminer

Code:
option api_allow 'W:127.0.0.1,W:192.168.2.22'

restart the S1



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Batteryman on January 26, 2014, 11:06:09 AM

OK great, I'll look into that.

Anubis reports temp fan speed but some of the other data is wrong or missing.

I like the speedo guage, I'll look at that as well.

Batteryman.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: coincowboy on January 27, 2014, 05:50:25 PM
Is it possible to have the MineNinja enhancements running without all of the BeagleBone code?  I'm really just looking for a nice clean interface integrated with Anubis that I can easily switch and prioritize pools and have more functionality control over the interface.  Anubis by itself doesn't give that.

If it is possible, could instructions be provided?  I don't want to use lighthttpd.

Thanks


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: xjack on January 29, 2014, 12:44:52 AM
Is it possible to have the MineNinja enhancements running without all of the BeagleBone code?  I'm really just looking for a nice clean interface integrated with Anubis that I can easily switch and prioritize pools and have more functionality control over the interface.  Anubis by itself doesn't give that.

If it is possible, could instructions be provided?  I don't want to use lighthttpd.

Thanks

Installs just like Anubis, instructions for Apache are in this thread. 

MineNinja git

https://github.com/slayersoft/MineNinja/tree/master/WebUI


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: helipotte on February 01, 2014, 04:22:47 AM
Is there any way to make the MH/s avg column work in MineNinja with an Antminer S1.  All else seems to work great.  is it an API problem?

Running the latest F/W that includes CGminer 3.8.5-1.

Thanks!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: gigica viteazu` on February 01, 2014, 03:24:52 PM
Is there any way to make the MH/s avg column work in MineNinja with an Antminer S1.  All else seems to work great.  is it an API problem?

Running the latest F/W that includes CGminer 3.8.5-1.

Thanks!

the forked cgminer used on S1 report speed in Ghs instead of Mhs... so you could modify MinerNinja to handle that accordingly


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: helipotte on February 03, 2014, 12:44:56 AM
Is there any way to make the MH/s avg column work in MineNinja with an Antminer S1.  All else seems to work great.  is it an API problem?

Running the latest F/W that includes CGminer 3.8.5-1.

Thanks!

the forked cgminer used on S1 report speed in Ghs instead of Mhs... so you could modify MinerNinja to handle that accordingly

Pardon my lack of coding skills but how would you do that?  I have been able to change many things but not this.

Thanks for any info.

Edit: Figured out how to change to make MH/avg work but now my other miners(no antminer S1's) don't display!  Any way to add both MH and GH entries together?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: linked67 on February 03, 2014, 09:02:55 AM
I like anubis a lot but have a question, don't know if it's a bug. When i go into a rig details, i can see pools and can switch them with a button near it.
But on some rigs, i have no button. Can someone tell me where to look at ? The cgminer config file seems the same for thoses with our without button.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: evolvia31 on February 03, 2014, 03:48:46 PM
Hi,

i don't understand the column "util" on the main page of Anubis.

Hashrate given by cgminer is:
(60s):741.7K (avg):721.5Kh/s | A:14720  R:0  HW:0  WU:626.3/m

But Anubis give:
util column : 5.1596 (602.6690)
KH/s avg: 733.5

i don't understand the gap between this infos.

Could anyone tell me what this column indicate really ?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: linked67 on February 07, 2014, 08:48:52 AM
I like anubis a lot but have a question, don't know if it's a bug. When i go into a rig details, i can see pools and can switch them with a button near it.
But on some rigs, i have no button. Can someone tell me where to look at ? The cgminer config file seems the same for thoses with our without button.

Just found that i have to write multiple W: like this:
Code:
--api-allow W:192.168.1.11,W:192.168.1.22


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Blisk on February 07, 2014, 08:54:23 PM
I just have one question, will this work if I have one worker for 3 pc-miners?
This ninja-web software is just for monitornig cgminer?
What about changing settings of miner?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: dwolfx on February 08, 2014, 09:11:25 AM
A lot of times... say 2 ~ 3 computers crash at the same time , Anubis loads a lot slower and does not show hosts connected (after the list).
Say A1 is fine A2 is fine A3 crashes A4 Crashes A5 is working Anubis won't load past A1 and A2.
Anyway to fix this and make it more robust?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Blisk on February 08, 2014, 09:34:14 AM
Is there any software where I can change cgminer settings not just watch it?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: 2GOOD on February 10, 2014, 03:37:16 PM
Is there any software where I can change cgminer settings not just watch it?

CGRemote


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Blisk on February 10, 2014, 04:02:59 PM
Is there any software where I can change cgminer settings not just watch it?

CGRemote
works only for 5 miners


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on February 21, 2014, 07:11:16 PM
Anyone know how to get accounts.php to use prices from bitstamp instead of mtgox?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: kano on February 22, 2014, 12:10:29 PM
Is there any software where I can change cgminer settings not just watch it?
miner.php that comes with cgminer.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: grana on February 26, 2014, 03:00:43 PM
Hi, i have a problem "Connection to 127.0.0.1:4028 failed: 'Permission denied'". How to fiks it, cgminer 3.12 on centos?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: grana on February 27, 2014, 11:51:48 AM
Hi, i have a problem "Connection to 127.0.0.1:4028 failed: 'Permission denied'". How to fiks it, cgminer 3.12 on centos?

Problem SOLVED, yust need to disable or Remove SELinux!!!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Flashpunk on March 01, 2014, 02:41:33 AM
Hey there, I would love to get this working, but i'm getting this error:

Warning: socket_read() [function.socket-read]: unable to read from socket [104]: Connection reset by peer in .....

My port seems to be open, I seem to be able to ping it with http://ping.eu/port-chk/, and I can see the network activity on my router, but for some reason the script isn't able to access my network from my server (hosted on MediaTemple on a Grid Server).

Any help would be much appreciated!


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: itraxe on March 08, 2014, 01:52:46 PM
how to add pool to all my miners at 1 action ?

or how to change pool to all my miners at 1 action ?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: jmordica on March 14, 2014, 03:02:05 AM
how to add pool to all my miners at 1 action ?

or how to change pool to all my miners at 1 action ?

This would be a nice feature. Is this possible?

Also, does ANUBIS have the ability to change the actual cgminer.conf so that when when cgminer restarts, the pool doesn't change from what you set?

Or even better, if it was built into MineNinja :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: gigica viteazu` on March 14, 2014, 04:49:44 PM

Also, does ANUBIS have the ability to change the actual cgminer.conf so that when when cgminer restarts, the pool doesn't change from what you set?

ANUBIS can command the miner via API to save the .conf file


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: jmordica on March 14, 2014, 07:05:26 PM

Also, does ANUBIS have the ability to change the actual cgminer.conf so that when when cgminer restarts, the pool doesn't change from what you set?

ANUBIS can command the miner via API to save the .conf file

I see. But when this is done, the "gridseed-options" aren't written into the config :(


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: dwolfx on March 26, 2014, 12:48:12 PM
Is there anyway to make anubis skip over rigs that are D/C'd, shits slow whenever ther is a rig down.
Or is there anyway to tweak wamp or xamp to make it faster?
Maybe plugins that are needed that would make it work better?


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cgminermonitor on April 03, 2014, 12:38:46 PM
Here is alternative solution for both windows and linux, with easier setup (no php installation or ports forwarding) and works even if miner will be completely frozen/dead.
https://bitcointalk.org/index.php?topic=553947.0


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: cryptonator on April 11, 2014, 09:41:48 AM
After trying the whole day i just could not get ANUBIS to work... installed lamp server, checked the localhost says it works. Installed ANUBIS and i got internal server error. Followed youtube tutorial, online guides non works... i really want to work with this so please help me out :)


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: pjcltd on April 15, 2014, 01:56:00 PM
~Hi
i got this working on my server
but it will not display any information on the gridseeds
im useing cgminer 3.7.2

Web page loads fine i can add hosts
it dose display currant sped of the host witch its correct.




any help would be grate



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: Internet151 on April 17, 2014, 10:40:01 AM
Anyone ever figure out how to get the MH/s 5s and MH/s average fields for antminers to work properly? Also, the temperature reported in anubis appears to be the current average temp instead of the current max temp.


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: mitak64 on April 18, 2014, 03:58:58 PM
"MH/s average" is displayed correctly if you update to Kano's firmware.

https://github.com/kanoi/cgminer-binaries/tree/master/AntS1 (https://github.com/kanoi/cgminer-binaries/tree/master/AntS1)

http://i.imgur.com/FKiUHsc.png


Note Ant-4, still running the factory firmware.
Rest run on Kano's .


Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: dlasher on July 29, 2014, 10:03:15 PM
Here is alternative solution for both windows and linux, with easier setup (no php installation or ports forwarding) and works even if miner will be completely frozen/dead.
https://bitcointalk.org/index.php?topic=553947.0

Looks amazing, however, as mentioned on the thread, no client for embedded miners like Antiminer, KNC, etc... yet.. :)



Title: Re: ANUBIS - a CGMINER Web Frontend
Post by: magcoin-crypto on August 06, 2014, 06:40:27 PM
I'm on the 12.12 ANT firmware with the mineninja build and it's working fine.  I've read the API is broken on the cgminer version that's included in the later ANT firmware, but can't confirm.

https://dl.dropboxusercontent.com/u/30721962/Anubis_Ant1.jpg

https://dl.dropboxusercontent.com/u/30721962/Anubis_Ant2.jpg

https://dl.dropboxusercontent.com/u/30721962/Anubis_Ant3.jpg




Dial changes in /var/www/anubis/index.php

https://dl.dropboxusercontent.com/u/30721962/Anubis_Ant5.jpg


ssh into the S1 and add your anubis IP the following line in /etc/config/cgminer

Code:
option api_allow 'W:127.0.0.1,W:192.168.2.22'

restart the S1



Oh my lord, that's a nice interface to look at. Beats a console by LEAGUES.