Below instructions for installing Perl monitor script as a cronjob on Ubuntu server for EOS Testnet node: We assume installation under /opt/monitor folder (if you use different folder - adjust accordingly). Assuming Perl is installed in system (usually default for Ubuntu). Otherwise install Perl. 0. Start by cd /opt/monitor 1. wget https://raw.githubusercontent.com/EOSTribe/arrowhead/master/monitor.pl 2. chmod +x monitor.pl 3. Install Perl modules used by script (not installed by default): cpan install LWP::UserAgent cpan install Sys::Info 4. Try running it passing EOS node data-dir folder to test it works: perl /opt/monitor/monitor.pl /opt/arrowhead* *) Substitute arrowhead for your path. If everything is OK - you get no errors and script runs and exits with no output. 5) Install cronjob to run every 10 mins: crontab -e Add following line: 0,10,20,30,40,50 * * * * perl /opt/monitor/monitor.pl /opt/arrowhead And you are done! Besides reporting server stats to out report server, the script also checks if nodeos process is running and starts it if it stoped due to failure, etc. I will make performance reports for all nodes available shortly.
author | eluzgin |
---|---|
permlink | how-to-configure-performance-monitor-for-testnet-node |
category | eos |
json_metadata | {"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["eos","testnet","monitor","performance"],"links":["https://raw.githubusercontent.com/EOSTribe/arrowhead/master/monitor.pl"]} |
created | 2018-04-21 01:06:27 |
last_update | 2018-04-21 01:06:27 |
depth | 0 |
children | 4 |
last_payout | 2018-04-28 01:06:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.096 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,171 |
author_reputation | 48,344,025,750 |
root_title | "How to configure performance monitor for Testnet node" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 51,218,122 |
net_rshares | 16,807,337,757 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
eluzgin | 0 | 10,785,468,264 | 100% | ||
kleyk | 0 | 75,328,659 | 100% | ||
tsto | 0 | 3,118,705,446 | 100% | ||
sf2 | 0 | 913,884,709 | 100% | ||
sosolean | 0 | 579,493,650 | 100% | ||
igorls | 0 | 612,238,221 | 100% | ||
biteosdev | 0 | 122,505,672 | 100% | ||
eostribe | 0 | 599,713,136 | 100% |
Hi Eluzgin, ran it and it exited with no errors, but before I add it to cronjob how do I see the published output it is sending?
author | bodget |
---|---|
permlink | re-eluzgin-how-to-configure-performance-monitor-for-testnet-node-20180422t111938940z |
category | eos |
json_metadata | {"tags":["eos"],"community":"busy","app":"busy/2.4.0"} |
created | 2018-04-22 11:19:15 |
last_update | 2018-04-22 11:19:15 |
depth | 1 |
children | 1 |
last_payout | 2018-04-29 11:19:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 128 |
author_reputation | 84,435,500,752 |
root_title | "How to configure performance monitor for Testnet node" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 51,467,900 |
net_rshares | 0 |
GET http://eosslc.com:3000/bpstats/[your producer name]
author | eluzgin |
---|---|
permlink | re-bodget-re-eluzgin-how-to-configure-performance-monitor-for-testnet-node-20180423t051740972z |
category | eos |
json_metadata | {"tags":["eos"],"community":"busy","app":"busy/2.4.0"} |
created | 2018-04-23 05:17:42 |
last_update | 2018-04-23 05:20:30 |
depth | 2 |
children | 0 |
last_payout | 2018-04-30 05:17:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 56 |
author_reputation | 48,344,025,750 |
root_title | "How to configure performance monitor for Testnet node" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 51,610,738 |
net_rshares | 0 |
Let me add that you can verify that your data is being sent by calling REST endpoint: GET http://eosslc.com:3000/bpstats/[your-producer-name] For example: GET http://eosslc.com:3000/bpstats/constantine [ { "_id": "5adc68dab78e4a3e62607b1b", "producer": "constantine", "node_status": "running", "os_name": "Ubuntu Linux", "hostname": "rev-115", "external_ip": "209.41.67.115", "internal_ip": "209.41.67.115 ", "server_uptime": "26.72 days", "cpu_info": "16 x Intel(R) Xeon(R) CPU X5570 @ 2.93GHz", "cpu_speed": "2925.924 MHz", "cpu_count": "16", "cpu_load": "0.11", "ram_total": "64414", "ram_used": "3902", "ram_free": "38554", "ram_cache": "21958", "ram_available": "59248", "timestamp": "Sun Apr 22 04:50:02 2018", "__v": 0 }, ... ]
author | eluzgin |
---|---|
permlink | re-eluzgin-how-to-configure-performance-monitor-for-testnet-node-20180423t052011663z |
category | eos |
json_metadata | {"tags":["eos"],"community":"busy","app":"busy/2.4.0"} |
created | 2018-04-23 05:20:15 |
last_update | 2018-04-23 05:20:15 |
depth | 1 |
children | 0 |
last_payout | 2018-04-30 05:20:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 897 |
author_reputation | 48,344,025,750 |
root_title | "How to configure performance monitor for Testnet node" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 51,611,062 |
net_rshares | 0 |
author | sf2 |
---|---|
permlink | re-eluzgin-how-to-configure-performance-monitor-for-testnet-node-20180421t055241351z |
category | eos |
json_metadata | {"tags":["eos"],"app":"steemit/0.1"} |
created | 2018-04-21 05:52:42 |
last_update | 2018-04-21 05:52:42 |
depth | 1 |
children | 0 |
last_payout | 2018-04-28 05:52:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.063 HBD |
curator_payout_value | 0.007 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 10 |
author_reputation | 514,366,813,598 |
root_title | "How to configure performance monitor for Testnet node" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 51,250,477 |
net_rshares | 11,680,796,938 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
eluzgin | 0 | 10,785,468,264 | 100% | ||
sf2 | 0 | 895,328,674 | 100% |