2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

better field name to avoid errors

This commit is contained in:
Nils 2017-07-01 17:32:08 +02:00
parent 3298c34c74
commit 1fe90e4cac

View File

@ -73,9 +73,9 @@ if command == 'config':
print("graph_info ethermine.org Mining Pool Hashrate for {}_{}".format(eth_address, miner))
print("graph_vlabel Ethermine Hashrate")
print("graph_category other")
print("{}_{}.warning 20:".format(eth_address, miner))
print("{}_{}.critical 10:".format(eth_address, miner))
print("{}_{}.label MH/s:".format(eth_address, miner))
print("ethermine_mhs_{}_{}.warning 20:".format(eth_address, miner))
print("ethermine_mhs_{}_{}.critical 10:".format(eth_address, miner))
print("ethermine_mhs_{}_{}.label MH/s:".format(eth_address, miner))
sys.exit(0)
@ -111,4 +111,4 @@ for worker in workers:
if workers[worker]['worker'] == miner:
hash_rate = workers[worker]['hashrate']
hash_rate = hash_rate.replace(" MH/s", "")
print("{}_{}.value {}".format(eth_address, miner, hash_rate))
print("ethermine_mhs_{}_{}.value {}".format(eth_address, miner, hash_rate))