0 Replies Latest reply on Sep 9, 2015 9:25 AM by JasonL143

    I added a feature of my own - better email functionality

    JasonL143 Lurker

      This will email only if there is an error but also have the option to email on certain days of the week no matter what. This is good because sometimes you need to know if the system is still sending emails.

       

      Line 103 and 104:

      # Email only if there is an error 1=yes, 0=no

      EMAIL_IF_ERROR_ONLY=1

       

      # Day of week to always send email

      # 0=Sunday...6=Saturday

      DAYOFWEEK_ALWAYS_EMAIL=0

       

      Line 1317:

      if ([ "${EMAIL_IF_ERROR_ONLY}" -eq 1 ] && [ "${LOG_STATUS}" != "OK" ] || [ "${DAYOFWEEK}" -eq "${DAYOFWEEK_ALWAYS_EMAIL}" ]) ; then

       

      Line 1337:

      fi