From 30852e80bcf2dd59471922b2c431553d72045736 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 9 Jan 2020 15:12:16 +0100 Subject: crypt-expiry-check: recognize "Network is unreachable" error --- crypt-expiry-check.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crypt-expiry-check.in b/crypt-expiry-check.in index 100ff0c..419222e 100755 --- a/crypt-expiry-check.in +++ b/crypt-expiry-check.in @@ -268,6 +268,11 @@ check_server_status() { prints ${1} ${2} "Connection refused" "Unknown" | ${TEE} -a ${MAILOUT_TMP} >> ${STDOUT_TMP} set_retcode 3 + elif ${GREP} -iq "Network is unreachable" ${ERROR_TMP} + then + prints ${1} ${2} "Network is unreachable" "Unknown" | ${TEE} -a ${MAILOUT_TMP} >> ${STDOUT_TMP} + set_retcode 3 + elif ${GREP} -iq "No route to host" ${ERROR_TMP} then prints ${1} ${2} "No route to host" "Unknown" | ${TEE} -a ${MAILOUT_TMP} >> ${STDOUT_TMP} -- cgit v1.2.3