|
|
@ -213,7 +213,8 @@ fn_alert_email_template_logs(){ |
|
|
|
} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${emaillog}" > /dev/null 2>&1 |
|
|
|
} |
|
|
|
|
|
|
|
fn_print_dots "Sending alert to ${email}" |
|
|
|
fn_print_dots "Sending alert: ${email}" |
|
|
|
fn_script_log_info "Sending alert: ${email}" |
|
|
|
info_distro.sh |
|
|
|
info_config.sh |
|
|
|
info_glibc.sh |
|
|
@ -232,9 +233,9 @@ fn_alert_email_template_logs |
|
|
|
mail -s "${alertsubject}" "${email}" < "${emaillog}" |
|
|
|
exitcode=$? |
|
|
|
if [ "${exitcode}" == "0" ]; then |
|
|
|
fn_print_ok_nl "Sending alert to ${email}" |
|
|
|
fn_script_log_pass "Sending alert to ${email}" |
|
|
|
fn_print_ok "Sending alert: ${email}" |
|
|
|
fn_script_log_pass "Sending alert: ${email}" |
|
|
|
else |
|
|
|
fn_print_fail_nl "Sending alert to ${email}" |
|
|
|
fn_script_log_fatal "Sending alert to ${email}" |
|
|
|
fn_print_fail "Sending alert: ${email}" |
|
|
|
fn_script_log_fatal "Sending alert: ${email}" |
|
|
|
fi |