check_sympa_service.sh,check_wwsympa_service.sh: fix error in sending alert - add missing content-type to mail header.

This commit is contained in:
Christoph 2019-01-20 04:12:10 +01:00
parent 43eef62704
commit e7f9ec0613
2 changed files with 6 additions and 2 deletions

View File

@ -10,9 +10,11 @@ working_dir="$(dirname $(realpath $0))"
LOCK_DIR="/tmp/$(basename $0).LOCK"
service_name="sympa"
alert_email_arr="ckubu@oopen.de ckubu@gmx.de"
alert_email_arr="argus@oopen.de"
sender_address="check_${service_name}@$(hostname -f)"
content_type='Content-Type: text/plain;\n charset="utf-8"'
sympa_commands="
/usr/local/sympa/bin/sympa_msg.pl
/usr/local/sympa/bin/bulk.pl

View File

@ -10,9 +10,11 @@ working_dir="$(dirname $(realpath $0))"
LOCK_DIR="/tmp/$(basename $0).LOCK"
service_name="wwsympa"
alert_email_arr="ckubu@oopen.de"
alert_email_arr="argus@oopen.de"
sender_address="check_${service_name}@$(hostname -f)"
content_type='Content-Type: text/plain;\n charset="utf-8"'
wwsympa_commands="/usr/local/sympa/bin/wwsympa.fcgi"
check_string_ps="$wwsympa_commands"