Bitcoin Forum

Bitcoin => Hardware => Topic started by: RealMalatesta on April 26, 2014, 12:45:43 AM



Title: Hardware monitoring
Post by: RealMalatesta on April 26, 2014, 12:45:43 AM
I've got my different miners at different locations. Ant most of the time, I can't be everywhere (yeah, from time to time, I've got to go home...). Now it would be handy if there would be some solution which would enable me - and probably others - to monitor all miners remotely and - if necessary - restart them. Does such a thing exist?


Title: Re: Hardware monitoring
Post by: ck on April 26, 2014, 07:26:51 AM
Yeah I'll be interested in something like that too. Maybe a unified web interface where I can manage miners located all over the place. Would probably help save a lot of manual time too


Title: Re: Hardware monitoring
Post by: dogie on April 26, 2014, 08:51:14 AM
Teamviewer to a $150 laptop sitting on the same network as the miners. There's also network controlled PDUs for manually restarting miners.


Title: Re: Hardware monitoring
Post by: gagalady on April 26, 2014, 09:28:27 AM
Yep, team viewer should work fine for this, I'm sure there similar programs to TV. But  i used for operations like these TV and It worked fine.


Title: Re: Hardware monitoring
Post by: JWU42 on April 26, 2014, 12:10:55 PM
Cgminer's miner.php for using API calls via a web interface...


Title: Re: Hardware monitoring
Post by: RealMalatesta on April 26, 2014, 12:15:34 PM
Teamviewer to a $150 laptop sitting on the same network as the miners. There's also network controlled PDUs for manually restarting miners.

Thanks. TV is not an option for me, for several reasons. First, I don't like it :-) Second: I have several miners in several networks, so I would need like 10+ cheap laptops. And now that summer is coming, I'll have to put miners on other places, too.

There are obviously some programs around like CGRemote which looks great, however, it an environment like mine which is kind of wild, it would also mean a lot of work to set everything up. And I AM a lazy bastard...

Walking the dog, I had the following idea: Wouldn't it be possible to write a script which reads out the main data, ftp's it to a server where it will be digested by a php-script?

Hm, I'll give it a try this weekend for the ant-miners.

Or are there reasons why this shouldn't work?


Title: Re: Hardware monitoring
Post by: RealMalatesta on April 26, 2014, 12:26:00 PM
Cgminer's miner.php for using API calls via a web interface...

Although this looks good, it won't work in my environment due to the fact that I can't open a port or do port forwarding on some of the routers :-( Well, I would do it if my boss would agree, though :-)


Title: Re: Hardware monitoring
Post by: JWU42 on April 26, 2014, 12:27:16 PM
Cgminer's miner.php for using API calls via a web interface...

Although this looks good, it won't work in my environment due to the fact that I can't open a port or do port forwarding on some of the routers :-( Well, I would do it if my boss would agree, though :-)

I'll just pretend I didn't read this...  ;)


Title: Re: Hardware monitoring
Post by: helipotte on April 26, 2014, 12:27:57 PM
You could try something like Anubis if you have a computer that is on anyway.  It listens for api calls from cgminer/bfgminer.

https://bitcointalk.org/index.php?topic=57342.0 (https://bitcointalk.org/index.php?topic=57342.0)

edit: you can set the api port to whatever you like.  this should get you around a firewall. ;)



Title: Re: Hardware monitoring
Post by: scriptcloud on April 26, 2014, 12:28:06 PM
i remember an application called cg watcher


Title: Re: Hardware monitoring
Post by: RealMalatesta on April 26, 2014, 12:34:06 PM
Cgminer's miner.php for using API calls via a web interface...

Although this looks good, it won't work in my environment due to the fact that I can't open a port or do port forwarding on some of the routers :-( Well, I would do it if my boss would agree, though :-)

I'll just pretend I didn't read this...  ;)

Thanks. Boss? You here??? :-p


Title: Re: Hardware monitoring
Post by: tolip_wen on May 01, 2014, 02:14:22 AM
Teamviewer to a $150 laptop sitting on the same network as the miners. There's also network controlled PDUs for manually restarting miners.

Thanks. TV is not an option for me, for several reasons. First, I don't like it :-) Second: I have several miners in several networks, so I would need like 10+ cheap laptops. And now that summer is coming, I'll have to put miners on other places, too.

There are obviously some programs around like CGRemote which looks great, however, it an environment like mine which is kind of wild, it would also mean a lot of work to set everything up. And I AM a lazy bastard...

Walking the dog, I had the following idea: Wouldn't it be possible to write a script which reads out the main data, ftp's it to a server where it will be digested by a php-script?

Hm, I'll give it a try this weekend for the ant-miners.

Or are there reasons why this shouldn't work?

I have posted a bfgminer/KnCMiner specific method of query using only stock busybox commands.
It is bfgminer specific as written, as I query KnC specific core data unavailable with cgminer.
https://bitcointalk.org/index.php?topic=313978.msg5767968#msg5767968

Saving an API query to a file is possible using common tools.
The relevant info from that post.

Code:
echo "procs|" > /tmp/procs.cmd
nc localhost 4028 < /tmp/procs.cmd > /tmp/nc.procs.out

Change "procs|" above to whatever API query you want.

It would be trivial to tftp the output from bfg or cg out for remote processing.
(stock KnC *nix does not have ftp but has tftp if you could make it work within your security needs)
scp would be a better choice.
A RasPi might be needed depending on the flexability of different miner OS etc.

For basic monitoring cg or bfg should work equally.
I feed the output from the API query into awk (it's what I had on a stock miner) and print some stats etc.

Remotely you have your choice of processing method.

YMMV
:)


Title: Re: Hardware monitoring
Post by: alh on May 01, 2014, 09:46:06 PM
Assuming your miners are associated with a Mining Pool (e.g. Slush, BTC Guild), then an almost
zero cost way is to assign each one a different worker Id. You then log into the web page for
the Mining Pool, and you'll see hash rates for each worker. You'll know if somebody went down.

Not clever or detailed, but it's a start.