From e7f9ec061336ed22a5e99632c8a2b877d18b3eac Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 20 Jan 2019 04:12:10 +0100 Subject: [PATCH] check_sympa_service.sh,check_wwsympa_service.sh: fix error in sending alert - add missing content-type to mail header. --- check_sympa_service.sh | 4 +++- check_wwsympa_service.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/check_sympa_service.sh b/check_sympa_service.sh index 5f18db5..9fda6fb 100755 --- a/check_sympa_service.sh +++ b/check_sympa_service.sh @@ -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 diff --git a/check_wwsympa_service.sh b/check_wwsympa_service.sh index 2fa6c49..2b91a47 100755 --- a/check_wwsympa_service.sh +++ b/check_wwsympa_service.sh @@ -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"