restarter.pl - Perl script for monitoring/restarting EOS node and sending SMS alerts oon restart and fail.
sudo cpan install String/CamelCase.pm
sudo cpan install Log::Log4perl
sudo cpan install JSON
sudo cpan install REST::Client
When running script - if you get message about missing module name, just run: sudo cpan install module_name.
3. Install TextMagic: https://github.com/textmagic/textmagic-rest-perl
4. Get account with TestMagic API: https://www.textmagic.com/docs/api/
NOTE: If restart fails - a flag file RESTART_FAILED is created and script stops running until file is removed.
monitor-logs.pl - Monitor nodeos log (stderr.txt) in tail mode and detect missed blocks by active producer, notify by SMS.
Author: Eugene Luzgin @ EOS Tribe Telegram: eluzgin Email: eugene@eostribe.io