Bitcoin Forum
May 12, 2024, 07:51:03 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Cgminer Überwachen per Http ? Windows  (Read 631 times)
Th3Trax (OP)
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
January 26, 2014, 12:33:50 PM
 #1

Hallo,

Habe seit kurzen auch ein Mining PC mit 3 x 7950 Wink
Habe zuerst Smos 1.2 installiert aber habe die Lüftersteuerung irgendwie nicht richtig zum laufen bekommen!
Jetzt habe ich Windows installiert und habe als Lüftersteuerung Afterburner laufen gleich 5-8° kühler. Als Miner läuft cgminer 3.7.2 jetzt würde ich gerne den PC auch von der Ferne aus überwachen können ohne die ganze zeit einem Remote Verbindung haben zu müssen.Bei SMOS war ja gleich eine http Seite die ich durch routen konnte integriert.
Kennt jemand da eine Sicher Lösung für Windows am besten mit ner kleinen Anleitung ? Weil so ganz ohne aufsicht will ich ihn ja nicht laufen lassen und per Http kann man das auch vom Handy aus machen Wink



 

 
1715500263
Hero Member
*
Offline Offline

Posts: 1715500263

View Profile Personal Message (Offline)

Ignore
1715500263
Reply with quote  #2

1715500263
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715500263
Hero Member
*
Offline Offline

Posts: 1715500263

View Profile Personal Message (Offline)

Ignore
1715500263
Reply with quote  #2

1715500263
Report to moderator
eddlow
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
January 27, 2014, 04:28:30 AM
 #2

Wie wärs, wenn du einen Apache Webserver auf der Mining Maschine zum laufen bringst und ihn damit überwachst? Also du schaltest beim cgminer die logging Funktion ein, logging-Output wird dann über ein Batch-Programm in den htdocs Ordner von Apache kopiert und du kannst dann über jedes Gerät auf die Output Datei zugreifen. Was du also nachschauen müsstest:

- Apache installieren und configurieren
- Cgminer logging aktivieren*
- Batch Datei erstellen (ist ganz einfach)

Gibt vermutlich elegantere Methoden, aber dies ist mal ein Vorschlag. Sonst schau dir mal "Proxy Mining" an.

* Logging
cgminer will log to stderr if it detects stderr is being redirected to a file.
To enable logging simply add 2>logfile.txt to your command line and logfile.txt
will contain the logged output at the log level you specify (normal, verbose,
debug etc.)

In other words if you would normally use:
./cgminer -o xxx -u yyy -p zzz
if you use
./cgminer -o xxx -u yyy -p zzz 2>logfile.txt
it will log to a file called logfile.txt and otherwise work the same.

There is also the -m option on linux which will spawn a command of your choice
and pipe the output directly to that command.


If you start cgminer with the --sharelog option, you can get detailed
information for each share found. The argument to the option may be "-" for
standard output (not advisable with the ncurses UI), any valid positive number
for that file descriptor, or a filename.

To log share data to a file named "share.log", you can use either:
./cgminer --sharelog 50 -o xxx -u yyy -p zzz 50>share.log
./cgminer --sharelog share.log -o xxx -u yyy -p zzz

For every share found, data will be logged in a CSV (Comma Separated Value)
format:
    timestamp,disposition,target,pool,dev,thr,sharehash,sharedata
For example (this is wrapped, but it's all on one line for real):
    1335313090,reject,
    ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000,
    http://localhost:8337,GPU0,0,
    6f983c918f3299b58febf95ec4d0c7094ed634bc13754553ec34fc3800000000,
    00000001a0980aff4ce4a96d53f4b89a2d5f0e765c978640fe24372a000001c5
    000000004a4366808f81d44f26df3d69d7dc4b3473385930462d9ab707b50498
    f681634a4f1f63d01a0cd43fb338000000000080000000000000000000000000
    0000000000000000000000000000000000000000000000000000000080020000

Quelle: https://bitcointalk.org/index.php?topic=28402.0
hekiman
Full Member
***
Offline Offline

Activity: 237
Merit: 114


View Profile
January 29, 2014, 09:51:52 AM
 #3

bei cgminer ist eine miner.php dabei. Mit der kann man den cgminer (oder auch mehrere) prima überwachen. Du brauchst halt einen Webserver mit php. der muss nicht zwangsweise auf dem selben rechner laufen.


Filehoster anonym mit Bitcoins bezahlen: Volumenkontingent
trade-with-you.com
Newbie
*
Offline Offline

Activity: 196
Merit: 0


View Profile
January 29, 2014, 11:39:10 AM
 #4

bei cgminer ist eine miner.php dabei. Mit der kann man den cgminer (oder auch mehrere) prima überwachen. Du brauchst halt einen Webserver mit php. der muss nicht zwangsweise auf dem selben rechner laufen.




miner.php einfach auf den Webserver legen?
oder muss man da noch einstellungen vornehmen, und wenn ja, welche?
hekiman
Full Member
***
Offline Offline

Activity: 237
Merit: 114


View Profile
January 29, 2014, 02:50:48 PM
 #5


miner.php einfach auf den Webserver legen?
oder muss man da noch einstellungen vornehmen, und wenn ja, welche?

cgminer mit folgenden optionen starten:
--api-listen --api-network --api-port 4029   
der port ist optional, braucht man nur wenn man mehrere cgminer am selben rechner laufen hat.
mit --api-allow kann man den zugriff beschränken. wenn man das nicht angibt hat man über die api nur lesende rechte. ist übrigens in der readme.txt vom cgminer beschrieben

in der miner.php folgendes konfigurieren:
Code:
#
# Set $rigs to an array of your cgminer rigs that are running
#  format: 'IP:Port' or 'Host:Port' or 'Host:Port:Name'
$rigs = array('10.0.0.1:4028', '10.0.0.2:4029');

Filehoster anonym mit Bitcoins bezahlen: Volumenkontingent
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!