mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Change category of currency-related plugins from 'other' to 'htc'
some categories were changed erroneously before: https://github.com/munin-monitoring/contrib/pull/855
This commit is contained in:
parent
388e42c535
commit
a48cf87333
6 changed files with 7 additions and 7 deletions
|
@ -70,7 +70,7 @@ def main():
|
||||||
return
|
return
|
||||||
|
|
||||||
if command == 'config':
|
if command == 'config':
|
||||||
print 'graph_category other'
|
print 'graph_category htc'
|
||||||
print 'graph_title Bitcoin %s' % labels[0]
|
print 'graph_title Bitcoin %s' % labels[0]
|
||||||
print 'graph_vlabel %s' % labels[1]
|
print 'graph_vlabel %s' % labels[1]
|
||||||
for label in line_labels:
|
for label in line_labels:
|
||||||
|
|
|
@ -28,7 +28,7 @@ if command == 'config':
|
||||||
print "graph_title BTCGuild Hashrate"
|
print "graph_title BTCGuild Hashrate"
|
||||||
print "graph_args --upper-limit 3000 -l 0"
|
print "graph_args --upper-limit 3000 -l 0"
|
||||||
print "graph_vlabel MHash/s"
|
print "graph_vlabel MHash/s"
|
||||||
print "graph_category other"
|
print "graph_category htc"
|
||||||
for worker in workers:
|
for worker in workers:
|
||||||
label = workers[worker]['worker_name']
|
label = workers[worker]['worker_name']
|
||||||
print label + ".label " + label
|
print label + ".label " + label
|
||||||
|
|
|
@ -25,7 +25,7 @@ if command == 'config':
|
||||||
print "graph_title Slush Hashrate"
|
print "graph_title Slush Hashrate"
|
||||||
print "graph_args --upper-limit 3000 -l 0"
|
print "graph_args --upper-limit 3000 -l 0"
|
||||||
print "graph_vlabel MHash/s"
|
print "graph_vlabel MHash/s"
|
||||||
print "graph_category other"
|
print "graph_category htc"
|
||||||
for worker in workers:
|
for worker in workers:
|
||||||
label = worker.replace(".","_")
|
label = worker.replace(".","_")
|
||||||
print label + ".label " +label
|
print label + ".label " +label
|
||||||
|
|
|
@ -24,7 +24,7 @@ if command == 'config':
|
||||||
print "graph_title Slush Rewards"
|
print "graph_title Slush Rewards"
|
||||||
print "graph_args -l 0"
|
print "graph_args -l 0"
|
||||||
print "graph_vlabel BTC"
|
print "graph_vlabel BTC"
|
||||||
print "graph_category other"
|
print "graph_category htc"
|
||||||
print "unconfirmed_reward.label Unconfirmed Reward"
|
print "unconfirmed_reward.label Unconfirmed Reward"
|
||||||
print "estimated_reward.label Estimeated Reward"
|
print "estimated_reward.label Estimeated Reward"
|
||||||
print "confirmed_reward.label Confirmed Reward"
|
print "confirmed_reward.label Confirmed Reward"
|
||||||
|
|
|
@ -72,7 +72,7 @@ if command == 'config':
|
||||||
print("graph_title Ethermine {}".format(miner))
|
print("graph_title Ethermine {}".format(miner))
|
||||||
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 htc")
|
||||||
print("ethermine_mhs_{}_{}.warning 20:".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_{}_{}.critical 10:".format(eth_address, miner))
|
||||||
print("ethermine_mhs_{}_{}.label MH/s:".format(eth_address, miner))
|
print("ethermine_mhs_{}_{}.label MH/s:".format(eth_address, miner))
|
||||||
|
@ -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("ethermine_mhs_{}_{}.value {}".format(eth_address, miner, hash_rate))
|
print("ethermine_mhs_{}_{}.value {}".format(eth_address, miner, hash_rate))
|
||||||
|
|
|
@ -81,7 +81,7 @@ if command == 'config':
|
||||||
print("graph_title Ether {}".format(eth_address))
|
print("graph_title Ether {}".format(eth_address))
|
||||||
print("graph_info Ethereum Account Balance for Address {}".format(eth_address))
|
print("graph_info Ethereum Account Balance for Address {}".format(eth_address))
|
||||||
print("graph_vlabel Ethereum Balance")
|
print("graph_vlabel Ethereum Balance")
|
||||||
print("graph_category other")
|
print("graph_category htc")
|
||||||
print("wei_balance_{0}.cdef wei_balance_{0},1000000000000000000,/".format(eth_address))
|
print("wei_balance_{0}.cdef wei_balance_{0},1000000000000000000,/".format(eth_address))
|
||||||
print("wei_balance_{}.label ETH".format(eth_address))
|
print("wei_balance_{}.label ETH".format(eth_address))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue