Howto: storage node health check > discord + email alerting script

until v1.9.2 - feature and improvement releases:

most important new features:

  • added a check of the LOGMIN selected part of the log, if there are time lags larger than 3 mins between a started and finished download of GET_AUDIT; the script will alert you, in case there are time lags (which will quickly disqualify your node, if you miss to act!). the selection is done by satellite, so a count per satellite will be sent by email to have some more details for further analysis. referencing related topic in the forum.

  • when the script runs between 23:50-23:59 UTC, a push msg will be sent as a daily summary, in case discord is configured

  • optimised command line output and added extra param “-q” in order to distinguish verbose “-v” outputs from “quality checks”

  • success rates are only shown, when scores are below 98%; can be send detailed with new param “-o”

Other things optimised:

  • removed PUT_REPAIR from monitoring, as it should have no effect on the suspension and/or audit score(s)
  • removed an if-clause, which prevented the estimated payouts calculation is done at any time, not only, when param “-e” was provided
  • fixed if statement to enable push message EOD, which lead to not sending the push at all
  • fixed a typo in the mail templates
  • uploaded newer example screenshots
  • optimised OK case push message format
  • fixed date issues with leading zeros

cc thank you @Alexey