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