From 5a45d49760d74aa36b5c3bad112010beef01f502 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Wed, 28 Mar 2018 04:31:16 +0200 Subject: [PATCH] plugin categories: other -> htc (crypto currencies) --- plugins/currency/bitcoin/bitcoind_ | 2 +- plugins/currency/bitcoin/btcguild_hashrate_ | 2 +- plugins/currency/bitcoin/slush_hashrate_ | 2 +- plugins/currency/bitcoin/slush_reward_ | 2 +- plugins/currency/ethereum/ethermine_hashrate_ | 4 ++-- plugins/currency/ethereum/etherscan_balance_ | 2 +- plugins/currency/nanopool/nanopool_ | 10 +++++----- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/plugins/currency/bitcoin/bitcoind_ b/plugins/currency/bitcoin/bitcoind_ index bcb50aa0..5b5408dd 100755 --- a/plugins/currency/bitcoin/bitcoind_ +++ b/plugins/currency/bitcoin/bitcoind_ @@ -70,7 +70,7 @@ def main(): return if command == 'config': - print 'graph_category other' + print 'graph_category htc' print 'graph_title Bitcoin %s' % labels[0] print 'graph_vlabel %s' % labels[1] for label in line_labels: diff --git a/plugins/currency/bitcoin/btcguild_hashrate_ b/plugins/currency/bitcoin/btcguild_hashrate_ index 33d72d7e..25e9f2a0 100755 --- a/plugins/currency/bitcoin/btcguild_hashrate_ +++ b/plugins/currency/bitcoin/btcguild_hashrate_ @@ -28,7 +28,7 @@ if command == 'config': print "graph_title BTCGuild Hashrate" print "graph_args --upper-limit 3000 -l 0" print "graph_vlabel MHash/s" - print "graph_category other" + print "graph_category htc" for worker in workers: label = workers[worker]['worker_name'] print label + ".label " + label diff --git a/plugins/currency/bitcoin/slush_hashrate_ b/plugins/currency/bitcoin/slush_hashrate_ index 59533b19..b07493fc 100755 --- a/plugins/currency/bitcoin/slush_hashrate_ +++ b/plugins/currency/bitcoin/slush_hashrate_ @@ -25,7 +25,7 @@ if command == 'config': print "graph_title Slush Hashrate" print "graph_args --upper-limit 3000 -l 0" print "graph_vlabel MHash/s" - print "graph_category other" + print "graph_category htc" for worker in workers: label = worker.replace(".","_") print label + ".label " +label diff --git a/plugins/currency/bitcoin/slush_reward_ b/plugins/currency/bitcoin/slush_reward_ index 28629f97..2986ea00 100755 --- a/plugins/currency/bitcoin/slush_reward_ +++ b/plugins/currency/bitcoin/slush_reward_ @@ -24,7 +24,7 @@ if command == 'config': print "graph_title Slush Rewards" print "graph_args -l 0" print "graph_vlabel BTC" - print "graph_category other" + print "graph_category htc" print "unconfirmed_reward.label Unconfirmed Reward" print "estimated_reward.label Estimeated Reward" print "confirmed_reward.label Confirmed Reward" diff --git a/plugins/currency/ethereum/ethermine_hashrate_ b/plugins/currency/ethereum/ethermine_hashrate_ index ca0bc038..4b640409 100755 --- a/plugins/currency/ethereum/ethermine_hashrate_ +++ b/plugins/currency/ethereum/ethermine_hashrate_ @@ -72,7 +72,7 @@ if command == 'config': print("graph_title Ethermine {}".format(miner)) print("graph_info ethermine.org Mining Pool Hashrate for {}_{}".format(eth_address, miner)) 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_{}_{}.critical 10:".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: hash_rate = workers[worker]['hashrate'] hash_rate = hash_rate.replace(" MH/s", "") - print("ethermine_mhs_{}_{}.value {}".format(eth_address, miner, hash_rate)) \ No newline at end of file + print("ethermine_mhs_{}_{}.value {}".format(eth_address, miner, hash_rate)) diff --git a/plugins/currency/ethereum/etherscan_balance_ b/plugins/currency/ethereum/etherscan_balance_ index 497889f4..03c323d3 100755 --- a/plugins/currency/ethereum/etherscan_balance_ +++ b/plugins/currency/ethereum/etherscan_balance_ @@ -81,7 +81,7 @@ if command == 'config': print("graph_title Ether {}".format(eth_address)) print("graph_info Ethereum Account Balance for Address {}".format(eth_address)) 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_{}.label ETH".format(eth_address)) sys.exit(0) diff --git a/plugins/currency/nanopool/nanopool_ b/plugins/currency/nanopool/nanopool_ index 08bfa036..3bc8bed0 100755 --- a/plugins/currency/nanopool/nanopool_ +++ b/plugins/currency/nanopool/nanopool_ @@ -148,7 +148,7 @@ def write_config_worker(): print("graph_title Hashrate in Mh/s per worker ({0})".format(account_address)) print("graph_args --base 1000 -l 0") print("graph_vlabel Mh/s") - print("graph_category other") + print("graph_category htc") print("graph_scale no") for val in worker_data: @@ -166,7 +166,7 @@ def write_config_worker(): print("graph_title Hashrate in Mh/s of worker {0}".format(worker_name)) print("graph_args --base 1000 -l 0") print("graph_vlabel Mh/s") - print("graph_category other") + print("graph_category htc") print("graph_scale no") print("whashrate.label hashrate") print("whashrate.type GAUGE") @@ -179,7 +179,7 @@ def write_config_worker(): print("graph_title Number of accepted shares ({0})".format(account_address)) print("graph_args --base 1000 -l 0") print("graph_vlabel Shares per ${graph_period}") - print("graph_category other") + print("graph_category htc") print("graph_scale no") print("graph_period minute") @@ -198,7 +198,7 @@ def write_config_worker(): print("graph_title Number of accepted shares {0}".format(worker_name)) print("graph_args --base 1000 -l 0") print("graph_vlabel Shares per ${graph_period}") - print("graph_category other") + print("graph_category htc") print("graph_scale no") print("graph_period minute") print("wshares.label shares") @@ -247,7 +247,7 @@ def write_config(): params = GRAPH_TYPES[graph_type] for item in params: print("graph_title {0}".format(item["title"])) - print("graph_category other") + print("graph_category htc") if "info" in item: print("graph_info {0}".format(item["info"])) if "scale" in item: