forked from lthn/blockchain
munin: poolstate_data_file_size changed to reflect LMDB/MDBX options
This commit is contained in:
parent
980621ad72
commit
967586a2a8
4 changed files with 35 additions and 19 deletions
|
|
@ -12,7 +12,7 @@ rm -f aliases
|
||||||
rm -f alt_blocks_count
|
rm -f alt_blocks_count
|
||||||
rm -f block_size
|
rm -f block_size
|
||||||
rm -f blockchain_lmdb_data_file_size
|
rm -f blockchain_lmdb_data_file_size
|
||||||
#rm -f blockchain_mdbx_data_file_size
|
rm -f blockchain_mdbx_data_file_size
|
||||||
rm -f db_map_size
|
rm -f db_map_size
|
||||||
rm -f db_transactions_count
|
rm -f db_transactions_count
|
||||||
rm -f emission
|
rm -f emission
|
||||||
|
|
@ -29,7 +29,8 @@ rm -f performance_transaction
|
||||||
rm -f performance_transaction_inp
|
rm -f performance_transaction_inp
|
||||||
rm -f performance_transaction_inp_loop
|
rm -f performance_transaction_inp_loop
|
||||||
rm -f performance_transaction_inp_loop_scan_loop
|
rm -f performance_transaction_inp_loop_scan_loop
|
||||||
rm -f poolstate_data_file_size
|
rm -f poolstate_lmdb_data_file_size
|
||||||
|
rm -f poolstate_mdbx_data_file_size
|
||||||
rm -f pos_block_ts_shift_vs_actual
|
rm -f pos_block_ts_shift_vs_actual
|
||||||
rm -f pos_dif_to_total_coins
|
rm -f pos_dif_to_total_coins
|
||||||
rm -f pos_difficulty
|
rm -f pos_difficulty
|
||||||
|
|
@ -67,7 +68,8 @@ ln -s /home/project/zano_for_munin/utils/munin_plugins/performance_transaction
|
||||||
ln -s /home/project/zano_for_munin/utils/munin_plugins/performance_transaction_inp
|
ln -s /home/project/zano_for_munin/utils/munin_plugins/performance_transaction_inp
|
||||||
ln -s /home/project/zano_for_munin/utils/munin_plugins/performance_transaction_inp_loop
|
ln -s /home/project/zano_for_munin/utils/munin_plugins/performance_transaction_inp_loop
|
||||||
ln -s /home/project/zano_for_munin/utils/munin_plugins/performance_transaction_inp_loop_scan_loop
|
ln -s /home/project/zano_for_munin/utils/munin_plugins/performance_transaction_inp_loop_scan_loop
|
||||||
ln -s /home/project/zano_for_munin/utils/munin_plugins/poolstate_data_file_size
|
ln -s /home/project/zano_for_munin/utils/munin_plugins/poolstate_lmdb_data_file_size
|
||||||
|
#ln -s /home/project/zano_for_munin/utils/munin_plugins/poolstate_mdbx_data_file_size
|
||||||
ln -s /home/project/zano_for_munin/utils/munin_plugins/pos_block_ts_shift_vs_actual
|
ln -s /home/project/zano_for_munin/utils/munin_plugins/pos_block_ts_shift_vs_actual
|
||||||
ln -s /home/project/zano_for_munin/utils/munin_plugins/pos_dif_to_total_coins
|
ln -s /home/project/zano_for_munin/utils/munin_plugins/pos_dif_to_total_coins
|
||||||
ln -s /home/project/zano_for_munin/utils/munin_plugins/pos_difficulty
|
ln -s /home/project/zano_for_munin/utils/munin_plugins/pos_difficulty
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
case $1 in
|
|
||||||
config)
|
|
||||||
cat <<'EOM'
|
|
||||||
graph_title poolstate_data_file_size
|
|
||||||
graph_vlabel poolstate_data_file_size
|
|
||||||
graph_category daemon
|
|
||||||
poolstate_data_file_size.label poolstate_data_file_size
|
|
||||||
EOM
|
|
||||||
exit 0;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
printf "poolstate_data_file_size.value "
|
|
||||||
#sudo ls -l /tmp/ttt | cut -d" " -f5
|
|
||||||
sudo ls -l /root/.Zano/poolstate/data.mdb | cut -d" " -f5
|
|
||||||
15
utils/munin_plugins/poolstate_lmdb_data_file_size
Executable file
15
utils/munin_plugins/poolstate_lmdb_data_file_size
Executable file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
config)
|
||||||
|
cat <<'EOM'
|
||||||
|
graph_title poolstate_lmdb_data_file_size
|
||||||
|
graph_vlabel poolstate_lmdb_data_file_size
|
||||||
|
graph_category daemon
|
||||||
|
poolstate_lmdb_data_file_size.label poolstate_lmdb_data_file_size
|
||||||
|
EOM
|
||||||
|
exit 0;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
printf "poolstate_lmdb_data_file_size.value "
|
||||||
|
sudo ls -l /root/.Zano/poolstate_lmdb_v1/data.mdb | cut -d" " -f5
|
||||||
15
utils/munin_plugins/poolstate_mdbx_data_file_size
Executable file
15
utils/munin_plugins/poolstate_mdbx_data_file_size
Executable file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
config)
|
||||||
|
cat <<'EOM'
|
||||||
|
graph_title poolstate_mdbx_data_file_size
|
||||||
|
graph_vlabel poolstate_mdbx_data_file_size
|
||||||
|
graph_category daemon
|
||||||
|
poolstate_mdbx_data_file_size.label poolstate_mdbx_data_file_size
|
||||||
|
EOM
|
||||||
|
exit 0;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
printf "poolstate_mdbx_data_file_size.value "
|
||||||
|
sudo ls -l /root/.Zano/poolstate_mdbx_v1/mdbx.dat | cut -d" " -f5
|
||||||
Loading…
Add table
Reference in a new issue