How to configure performance monitor for Testnet node

in #eos7 years ago

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.

  1. Start by cd /opt/monitor
  2. wget https://raw.githubusercontent.com/EOSTribe/arrowhead/master/monitor.pl
  3. chmod +x monitor.pl
  4. Install Perl modules used by script (not installed by default):
    cpan install LWP::UserAgent
    cpan install Sys::Info
  5. 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.
  1. 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.

Sort:  

Nice work!

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?

GET http://eosslc.com:3000/bpstats/[your producer name]

Loading...

Coin Marketplace

STEEM 0.21
TRX 0.26
JST 0.040
BTC 99158.52
ETH 3524.89
USDT 1.00
SBD 3.25