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:
parent
43eef62704
commit
e7f9ec0613
@ -10,9 +10,11 @@ working_dir="$(dirname $(realpath $0))"
|
|||||||
LOCK_DIR="/tmp/$(basename $0).LOCK"
|
LOCK_DIR="/tmp/$(basename $0).LOCK"
|
||||||
|
|
||||||
service_name="sympa"
|
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)"
|
sender_address="check_${service_name}@$(hostname -f)"
|
||||||
|
|
||||||
|
content_type='Content-Type: text/plain;\n charset="utf-8"'
|
||||||
|
|
||||||
sympa_commands="
|
sympa_commands="
|
||||||
/usr/local/sympa/bin/sympa_msg.pl
|
/usr/local/sympa/bin/sympa_msg.pl
|
||||||
/usr/local/sympa/bin/bulk.pl
|
/usr/local/sympa/bin/bulk.pl
|
||||||
|
@ -10,9 +10,11 @@ working_dir="$(dirname $(realpath $0))"
|
|||||||
LOCK_DIR="/tmp/$(basename $0).LOCK"
|
LOCK_DIR="/tmp/$(basename $0).LOCK"
|
||||||
|
|
||||||
service_name="wwsympa"
|
service_name="wwsympa"
|
||||||
alert_email_arr="ckubu@oopen.de"
|
alert_email_arr="argus@oopen.de"
|
||||||
sender_address="check_${service_name}@$(hostname -f)"
|
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"
|
wwsympa_commands="/usr/local/sympa/bin/wwsympa.fcgi"
|
||||||
|
|
||||||
check_string_ps="$wwsympa_commands"
|
check_string_ps="$wwsympa_commands"
|
||||||
|
Loading…
Reference in New Issue
Block a user