Révision 1fe90e4c
better field name to avoid errors
| plugins/currency/ethereum/ethermine_hashrate_ | ||
|---|---|---|
| 73 | 73 |
print("graph_info ethermine.org Mining Pool Hashrate for {}_{}".format(eth_address, miner))
|
| 74 | 74 |
print("graph_vlabel Ethermine Hashrate")
|
| 75 | 75 |
print("graph_category other")
|
| 76 |
print("{}_{}.warning 20:".format(eth_address, miner))
|
|
| 77 |
print("{}_{}.critical 10:".format(eth_address, miner))
|
|
| 78 |
print("{}_{}.label MH/s:".format(eth_address, miner))
|
|
| 76 |
print("ethermine_mhs_{}_{}.warning 20:".format(eth_address, miner))
|
|
| 77 |
print("ethermine_mhs_{}_{}.critical 10:".format(eth_address, miner))
|
|
| 78 |
print("ethermine_mhs_{}_{}.label MH/s:".format(eth_address, miner))
|
|
| 79 | 79 |
sys.exit(0) |
| 80 | 80 |
|
| 81 | 81 |
|
| ... | ... | |
| 111 | 111 |
if workers[worker]['worker'] == miner: |
| 112 | 112 |
hash_rate = workers[worker]['hashrate'] |
| 113 | 113 |
hash_rate = hash_rate.replace(" MH/s", "")
|
| 114 |
print("{}_{}.value {}".format(eth_address, miner, hash_rate))
|
|
| 114 |
print("ethermine_mhs_{}_{}.value {}".format(eth_address, miner, hash_rate))
|
|
Formats disponibles : Unified diff