mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
better field name to avoid errors
This commit is contained in:
parent
3298c34c74
commit
1fe90e4cac
1 changed files with 4 additions and 4 deletions
|
@ -73,9 +73,9 @@ if command == 'config':
|
||||||
print("graph_info ethermine.org Mining Pool Hashrate for {}_{}".format(eth_address, miner))
|
print("graph_info ethermine.org Mining Pool Hashrate for {}_{}".format(eth_address, miner))
|
||||||
print("graph_vlabel Ethermine Hashrate")
|
print("graph_vlabel Ethermine Hashrate")
|
||||||
print("graph_category other")
|
print("graph_category other")
|
||||||
print("{}_{}.warning 20:".format(eth_address, miner))
|
print("ethermine_mhs_{}_{}.warning 20:".format(eth_address, miner))
|
||||||
print("{}_{}.critical 10:".format(eth_address, miner))
|
print("ethermine_mhs_{}_{}.critical 10:".format(eth_address, miner))
|
||||||
print("{}_{}.label MH/s:".format(eth_address, miner))
|
print("ethermine_mhs_{}_{}.label MH/s:".format(eth_address, miner))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
@ -111,4 +111,4 @@ for worker in workers:
|
||||||
if workers[worker]['worker'] == miner:
|
if workers[worker]['worker'] == miner:
|
||||||
hash_rate = workers[worker]['hashrate']
|
hash_rate = workers[worker]['hashrate']
|
||||||
hash_rate = hash_rate.replace(" MH/s", "")
|
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))
|
Loading…
Add table
Add a link
Reference in a new issue