arvicco-avalon 0.0.12 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +19 -8
- data/lib/avalon/monitor.rb +5 -0
- data/lib/avalon/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
-
#
|
1
|
+
# arvicco-avalon
|
2
2
|
|
3
|
-
Helper scripts for Bitcoin
|
3
|
+
Helper scripts for Bitcoin mining units management...
|
4
4
|
|
5
5
|
## Description
|
6
6
|
|
7
|
-
Congrats, you've got a few
|
7
|
+
Congrats, you've got a few Bitcoin miners. It's all nice and dandy, but now you need to keep an eye on them to make sure they are always online and their valuable hashes are not wasted. This set of scripts is written to do just that. You run a monitor scipt non-stop and it keeps an eye on your mining units, your (private) pool and your Internet connection, and alerts you in case of any problems. The scripts should work on OSX and Linux (Windows users, move on).
|
8
|
+
|
9
|
+
Initially, the scripts were used to manage an installation of Avalon miners, but they work just as well with any cgminer (or bfgminer) based device with known IP address and cgminer API enabled. It's been proven to work on such exotic devices as Raspberry Pi attached to Block Eruptor Blades as well as normal computers with FPGA or GPU attached. So, you can easily monitor all your mining zoo from one central location.
|
8
10
|
|
9
11
|
## Usage
|
10
12
|
|
@@ -18,17 +20,17 @@ Scripts:
|
|
18
20
|
|
19
21
|
- Transcodes raw transaction from base64 (mtgox) to hex (blockchain) format
|
20
22
|
|
21
|
-
## Installation
|
23
|
+
## Script Installation
|
22
24
|
|
23
25
|
You need Ruby 1.9 to install the scripts. Once the Ruby is installed, it's just:
|
24
26
|
|
25
27
|
$ gem install arvicco-avalon
|
26
28
|
|
27
|
-
You need to
|
29
|
+
You also need to enable cgminer API in your miners and create ~/.avalon/monitor.yml config file, see below.
|
28
30
|
|
29
|
-
## Configuration
|
31
|
+
## Monitor Configuration
|
30
32
|
|
31
|
-
|
33
|
+
Monitor script is periodically polling the mining units and other types of objects to be monitored (called Nodes). If any Node does not respond or returns an error, the monitor prints error message and sounds alert. You need to tell the monitor about your Miners and other Nodes to be polled via config file. Please note sample monitor config file for production environment below. Modify it, add your own Nodes to be monitored (for miners, you have to indicate their IP address and min hashrate in Gh/s):
|
32
34
|
|
33
35
|
------- ~/.avalon/monitor.yml --------
|
34
36
|
# Prod configuration (default)
|
@@ -45,8 +47,17 @@ Sample monitor config file for production environment below. Modify it, add your
|
|
45
47
|
:nodes:
|
46
48
|
- [miner, 192.168.1.151, 70] # type, ip, gh/s
|
47
49
|
- [miner, 192.168.1.152, 70]
|
48
|
-
- [eloipool, 192.168.1.13, 4] # frequency of old block updates (once per X polls)
|
49
50
|
- [internet, www.google.com, www.speedtest.net]
|
51
|
+
- [eloipool, 192.168.1.13, 4] # frequency of old block updates (once per X polls)
|
52
|
+
|
53
|
+
## Miner/Node Configuration
|
54
|
+
|
55
|
+
The Mining units need to be configured so that monitor is able to poll them. Specifically you need to make cgminer API accessible from the IP address your Monitor script runs on. Normally, it is done by running cgminer with an option like: "--api-allow W:192.168.1.13" where 192.168.1.13 is IP address of your Monitor. For Avalon Miners, this can be configured via WebGui->CGminer Configuration->API Allow field.
|
56
|
+
|
57
|
+
Detailed description of cgminer API and relevant startup options can be found here:
|
58
|
+
https://github.com/ckolivas/cgminer/blob/master/API-README
|
59
|
+
|
60
|
+
For any Pool or Bitcoind nodes you'd like to monitor, you need to be able to ssh with public keys (that is, no password required) into this Node, otherwise the Monitor won't be able to poll it. How to make it work is beyound the scope of this Readme, just google 'ssh without password'.
|
50
61
|
|
51
62
|
## License
|
52
63
|
|
data/lib/avalon/monitor.rb
CHANGED
data/lib/avalon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arvicco-avalon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|