1
0
Fork 0
forked from lthn/blockchain

Merge remote-tracking branch 'origin/master' into frontend

This commit is contained in:
wildkif 2019-01-22 18:00:15 +02:00
commit bb3cd84b56
37 changed files with 48 additions and 42 deletions

View file

@ -99,7 +99,7 @@
#define BLOCKS_IDS_SYNCHRONIZING_DEFAULT_COUNT 2000 //by default, blocks ids count in synchronizing
#define BLOCKS_SYNCHRONIZING_DEFAULT_COUNT 200 //by default, blocks count in blocks downloading
#define BLOCKS_SYNCHRONIZING_DEFAULT_SIZE 2000000 //by default keep synchronizing packets not bigger then 2MB
#define CURRENCY_PROTOCOL_HOP_RELAX_COUNT 3 //value of hop, after which we use only announce of new block
#define CURRENCY_PROTOCOL_MAX_BLOCKS_REQUEST_COUNT 500
#define CURRENCY_ALT_BLOCK_LIVETIME_COUNT (CURRENCY_BLOCKS_PER_DAY*7)//one week

View file

@ -357,6 +357,12 @@ namespace currency
template<class t_core>
int t_currency_protocol_handler<t_core>::handle_request_get_objects(int command, NOTIFY_REQUEST_GET_OBJECTS::request& arg, currency_connection_context& context)
{
if (arg.blocks.size() > CURRENCY_PROTOCOL_MAX_BLOCKS_REQUEST_COUNT)
{
LOG_ERROR_CCONTEXT("Requested objects count is to big (" << arg.blocks.size() <<")expected not more then " << CURRENCY_PROTOCOL_MAX_BLOCKS_REQUEST_COUNT);
m_p2p->drop_connection(context);
}
NOTIFY_RESPONSE_GET_OBJECTS::request rsp;
if(!m_core.handle_get_objects(arg, rsp, context))
{

2
utils/munin_plugins/aliases Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "alias_count.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000000" | grep alias_count | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000000" | grep alias_count | cut -d ' ' -f2

2
utils/munin_plugins/alt_blocks_count Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "alt_blocks_count.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000000" | grep alt_blocks_count | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000000" | grep alt_blocks_count | cut -d ' ' -f2

4
utils/munin_plugins/block_size Normal file → Executable file
View file

@ -13,6 +13,6 @@ EOM
esac
printf "last_block_size.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000800" | grep last_block_size| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000800" | grep last_block_size| cut -d ' ' -f2
printf "current_max_allowed_block_size.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000000" | grep current_max_allowed_block_size| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000000" | grep current_max_allowed_block_size| cut -d ' ' -f2

0
utils/munin_plugins/blockchain_data_file_size Normal file → Executable file
View file

2
utils/munin_plugins/db_map_size Normal file → Executable file
View file

@ -13,4 +13,4 @@ EOM
esac
printf "db_map_size.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000010000" | grep db_map_size | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000010000" | grep db_map_size | cut -d ' ' -f2

4
utils/munin_plugins/db_transactions_count Normal file → Executable file
View file

@ -13,6 +13,6 @@ EOM
esac
printf "db_tx_count.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000010000" | grep db_tx_count | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000010000" | grep db_tx_count | cut -d ' ' -f2
printf "writer_tx_count.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000010000" | grep db_writer_tx_count| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000010000" | grep db_writer_tx_count| cut -d ' ' -f2

4
utils/munin_plugins/emission Normal file → Executable file
View file

@ -13,6 +13,6 @@ EOM
esac
printf "total_coins.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000400" | grep total_coins| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000400" | grep total_coins| cut -d ' ' -f2
printf "pos_diff_in_coins.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000001" | grep pos_difficulty_in_coins| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000001" | grep pos_difficulty_in_coins| cut -d ' ' -f2

2
utils/munin_plugins/grey_peerlist_size Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "grey_peerlist_size.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000000" | grep grey_peerlist_size | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000000" | grep grey_peerlist_size | cut -d ' ' -f2

4
utils/munin_plugins/hashrate Normal file → Executable file
View file

@ -13,6 +13,6 @@ EOM
esac
printf "hashrate_50.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000008" | grep current_network_hashrate_50 | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000008" | grep current_network_hashrate_50 | cut -d ' ' -f2
printf "hashrate_350.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000010" | grep current_network_hashrate_350 | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000010" | grep current_network_hashrate_350 | cut -d ' ' -f2

2
utils/munin_plugins/height Normal file → Executable file
View file

@ -13,4 +13,4 @@ EOM
esac
printf "height.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000000" | grep height | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000000" | grep height | cut -d ' ' -f2

2
utils/munin_plugins/incoming_connections_count Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "incoming_connections_count.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000000" | grep incoming_connections_count | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000000" | grep incoming_connections_count | cut -d ' ' -f2

2
utils/munin_plugins/market Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "offers_count.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000010000" | grep market_size| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000010000" | grep market_size| cut -d ' ' -f2

2
utils/munin_plugins/outgoing_connections_count Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "outgoing_connections_count.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000000" | grep outgoing_connections_count | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000000" | grep outgoing_connections_count | cut -d ' ' -f2

2
utils/munin_plugins/outs_stat Normal file → Executable file
View file

@ -22,7 +22,7 @@ EOM
exit 0;;
esac
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --getinfo_flags_hex=0x0000000000008000 --rpc_get_daemon_info)"
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --getinfo-flags-hex=0x0000000000008000 --rpc-get-daemon-info)"
# printf "$CONN_TOOL_OUT"
printf "outs_0_001.value "

2
utils/munin_plugins/performance_block Normal file → Executable file
View file

@ -35,7 +35,7 @@ EOM
exit 0;;
esac
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --getinfo_flags_hex=0x0000000000010000 --rpc_get_daemon_info)"
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --getinfo-flags-hex=0x0000000000010000 --rpc-get-daemon-info)"
# printf "$CONN_TOOL_OUT"
printf "block_processing_time_0.value "

2
utils/munin_plugins/performance_pool Normal file → Executable file
View file

@ -35,7 +35,7 @@ EOM
esac
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --getinfo_flags_hex=0x0000000000010000 --rpc_get_daemon_info)"
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --getinfo-flags-hex=0x0000000000010000 --rpc-get-daemon-info)"
# printf "$CONN_TOOL_OUT"
printf "pool_tx_processing_time.value "

2
utils/munin_plugins/performance_transaction Normal file → Executable file
View file

@ -37,7 +37,7 @@ EOM
exit 0;;
esac
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --getinfo_flags_hex=0x0000000000010000 --rpc_get_daemon_info)"
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --getinfo-flags-hex=0x0000000000010000 --rpc-get-daemon-info)"
# printf "$CONN_TOOL_OUT"
printf "tx_add_one_tx_time.value "

2
utils/munin_plugins/performance_transaction_inp Normal file → Executable file
View file

@ -16,7 +16,7 @@ EOM
exit 0;;
esac
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --getinfo_flags_hex=0x0000000000010000 --rpc_get_daemon_info)"
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --getinfo-flags-hex=0x0000000000010000 --rpc-get-daemon-info)"
# printf "$CONN_TOOL_OUT"
printf "tx_check_inputs_prefix_hash.value "

2
utils/munin_plugins/performance_transaction_inp_loop Normal file → Executable file
View file

@ -20,7 +20,7 @@ EOM
exit 0;;
esac
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --getinfo_flags_hex=0x0000000000010000 --rpc_get_daemon_info)"
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --getinfo-flags-hex=0x0000000000010000 --rpc-get-daemon-info)"
# printf "$CONN_TOOL_OUT"
printf "tx_check_inputs_loop_kimage_check.value "

View file

@ -16,7 +16,7 @@ EOM
exit 0;;
esac
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --getinfo_flags_hex=0x0000000000010000 --rpc_get_daemon_info)"
CONN_TOOL_OUT="$(connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --getinfo-flags-hex=0x0000000000010000 --rpc-get-daemon-info)"
# printf "$CONN_TOOL_OUT"
printf "tx_check_inputs_loop_scan_outputkeys_loop_get_subitem.value "

0
utils/munin_plugins/poolstate_data_file_size Normal file → Executable file
View file

2
utils/munin_plugins/pos_block_ts_shift_vs_actual Normal file → Executable file
View file

@ -14,4 +14,4 @@ EOM
esac
printf "pos_block_ts_shift_vs_actual.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000020000" | grep pos_block_ts_shift_vs_actual | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000020000" | grep pos_block_ts_shift_vs_actual | cut -d ' ' -f2

2
utils/munin_plugins/pos_dif_to_total_coins Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "pos_diff_to_total_coins.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000401" | grep pos_diff_total_coins_rate| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000401" | grep pos_diff_total_coins_rate| cut -d ' ' -f2

2
utils/munin_plugins/pos_difficulty Normal file → Executable file
View file

@ -14,4 +14,4 @@ EOM
esac
printf "pos_difficulty.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000001" | grep pos_difficulty | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000001" | grep pos_difficulty | cut -d ' ' -f2

2
utils/munin_plugins/pow_difficulty Normal file → Executable file
View file

@ -13,4 +13,4 @@ EOM
esac
printf "pow_difficulty.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000002" | grep pow_difficulty | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000002" | grep pow_difficulty | cut -d ' ' -f2

4
utils/munin_plugins/reward Normal file → Executable file
View file

@ -14,6 +14,6 @@ EOM
esac
printf "block_reward.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000401" | grep block_reward| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000401" | grep block_reward| cut -d ' ' -f2
printf "last_block_reward.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000401" | grep last_block_total_reward| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000401" | grep last_block_total_reward| cut -d ' ' -f2

4
utils/munin_plugins/seconds_per_blocks Normal file → Executable file
View file

@ -13,6 +13,6 @@ EOM
esac
printf "seconds_per_10_blocks.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000020" | grep seconds_between_10_blocks | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000020" | grep seconds_between_10_blocks | cut -d ' ' -f2
printf "seconds_per_30_blocks.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000040" | grep seconds_between_30_blocks | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000040" | grep seconds_between_30_blocks | cut -d ' ' -f2

4
utils/munin_plugins/sequense_factor Normal file → Executable file
View file

@ -13,6 +13,6 @@ EOM
esac
printf "pos_sequense_factor.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000002000" | grep pos_sequense_factor | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000002000" | grep pos_sequense_factor | cut -d ' ' -f2
printf "pow_sequense_factor.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000004000" | grep pow_sequense_factor | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000004000" | grep pow_sequense_factor | cut -d ' ' -f2

4
utils/munin_plugins/timestamps Normal file → Executable file
View file

@ -14,6 +14,6 @@ EOM
esac
printf "last_pos_timestamp.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000100" | grep last_pos_timestamp | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000100" | grep last_pos_timestamp | cut -d ' ' -f2
printf "last_pow_timestamp.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000200" | grep last_pow_timestamp | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000200" | grep last_pow_timestamp | cut -d ' ' -f2

2
utils/munin_plugins/tx_count Normal file → Executable file
View file

@ -13,4 +13,4 @@ EOM
esac
printf "tx_count.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000000" | grep tx_count| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000000" | grep tx_count| cut -d ' ' -f2

2
utils/munin_plugins/tx_daily_count Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "tx_daily_count.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000080" | grep transactions_cnt_per_day | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000080" | grep transactions_cnt_per_day | cut -d ' ' -f2

2
utils/munin_plugins/tx_daily_volume Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "tx_daily_volume.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000080" | grep transactions_volume_per_day | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000080" | grep transactions_volume_per_day | cut -d ' ' -f2

2
utils/munin_plugins/tx_per_block Normal file → Executable file
View file

@ -12,6 +12,6 @@ EOM
esac
printf "tx_per_block.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000001000" | grep tx_count_in_last_block| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000001000" | grep tx_count_in_last_block| cut -d ' ' -f2

2
utils/munin_plugins/tx_pool_size Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "tx_pool_size.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000000" | grep tx_pool_size| cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000000" | grep tx_pool_size| cut -d ' ' -f2

2
utils/munin_plugins/white_peerlist_size Normal file → Executable file
View file

@ -12,4 +12,4 @@ EOM
esac
printf "white_peerlist_size.value "
connectivity_tool --ip=127.0.0.1 --rpc_port=$ZANO_RPC_PORT --timeout=1000 --rpc_get_daemon_info --getinfo_flags_hex="0x0000000000000000" | grep white_peerlist_size | cut -d ' ' -f2
connectivity_tool --ip=127.0.0.1 --rpc-port=$ZANO_RPC_PORT --timeout=1000 --rpc-get-daemon-info --getinfo-flags-hex="0x0000000000000000" | grep white_peerlist_size | cut -d ' ' -f2