[Watchdog] Return score with Rspamd check
parent
380e41a0f9
commit
c8a72bf642
|
@ -709,10 +709,10 @@ From: watchdog@localhost
|
||||||
Empty
|
Empty
|
||||||
' | usr/bin/curl --max-time 10 -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd/scan | jq -rc .default.required_score)
|
' | usr/bin/curl --max-time 10 -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd/scan | jq -rc .default.required_score)
|
||||||
if [[ ${SCORE} != "9999" ]]; then
|
if [[ ${SCORE} != "9999" ]]; then
|
||||||
echo "Rspamd settings check failed" 2>> /tmp/rspamd-mailcow 1>&2
|
echo "Rspamd settings check failed, score returned: ${SCORE}" 2>> /tmp/rspamd-mailcow 1>&2
|
||||||
err_count=$(( ${err_count} + 1))
|
err_count=$(( ${err_count} + 1))
|
||||||
else
|
else
|
||||||
echo "Rspamd settings check succeeded" 2>> /tmp/rspamd-mailcow 1>&2
|
echo "Rspamd settings check succeeded, score returned: ${SCORE}" 2>> /tmp/rspamd-mailcow 1>&2
|
||||||
fi
|
fi
|
||||||
# A dirty hack until a PING PONG event is implemented to worker proxy
|
# A dirty hack until a PING PONG event is implemented to worker proxy
|
||||||
# We expect an empty response, not a timeout
|
# We expect an empty response, not a timeout
|
||||||
|
|
Loading…
Reference in New Issue