How to configure performance monitor for Testnet node

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.

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now