diff options
Diffstat (limited to 'crypt-expiry-check.in')
-rwxr-xr-x | crypt-expiry-check.in | 5 |
1 files changed, 5 insertions, 0 deletions
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} |