jceminer / cn_cpu_miner

Cryptonote CPU Miner
35 stars 23 forks source link

monitor multiple JCEMiner in a few CPU #15

Open adiangga opened 5 years ago

adiangga commented 5 years ago

how to monitor multiple JCE miner that runs in a few cpu? i want to know if the miner in certain cpu have stopped. thank you

jceminer commented 5 years ago

Hello,

JCE embbeds a HTTP micro server you can enable with --mport X where X is the network port of your choice. then if you read http://A:X Where A is the ip of your mining computer and X the port specified above, you get a JSON text with hashrate of all cpu. if you're in a local network, of course you can use the computer local name as A, or even localhost on the same computer.

adiangga commented 5 years ago

i mean, i have planted jceminer on a few pc, how to know if one miner is down??i'd like a list of ip PC that using Jce that shows the status of jce, whether it is down or up

On Tue, Jul 31, 2018 at 12:56 PM jceminer notifications@github.com wrote:

Hello,

JCE embbeds a HTTP micro server you can enable with --mport X where X is the network port of your choice. then if you read http://A:X Where A is the ip of your mining computer and X the port specified above, you get a JSON text with hashrate of all cpu. if you're in a local network, of course you can use the computer local name as A, or even localhost on the same computer.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jceminer/cn_cpu_miner/issues/15#issuecomment-409103983, or mute the thread https://github.com/notifications/unsubscribe-auth/AhdecyWhtigi-yEkSpflEpO-dc6obqdZks5uL_GTgaJpZM4VixYS .

jceminer commented 5 years ago

yes, that's what i'm taking about. let's say you choose port 1234. So you pass parameter --mport 1234 to all jce you run. You run jce on pc 1 whose ip is 192.168.0.1 (that's a lan ip for example) pc 2 has ip 192.168.0.2 and so on to know if pc 2 has jce running, open in a browser and go to http://192.168.0.2:1234 if you get some text, so jce is running on pc 2

adiangga commented 5 years ago

what if i have 20 pc that run jceminer, so i should type each ip manually to check whose miner is dead?

jceminer commented 5 years ago

if you have so many PC better write a little script (in Python or whatever) that, given a list of your 20 ip will request each and give you back a report about which one is online or offline. there are lots of monitoring tools for miners, like Forager or Awesome miner, i don't know if they directly provide such remote monitoring but you may take a look.

another way is to use a pool with per-miner report like hashvault.pro you can give each of your miner a name you pass as password (parameter in jce -p) and on your pool Dashboard you can see the list of 20 miners, their respective hashrate and share found. if one is missing from the list, so the miner is down. it requires they all mine to same wallet, but that's probably what you already do.