From 73b9396178bfba3fc8ef64f658f1404898aeea86 Mon Sep 17 00:00:00 2001 From: patvdv Date: Fri, 22 Mar 2019 18:31:49 +0100 Subject: [PATCH] Another --check-host fix --- sources/bin/check_health.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sources/bin/check_health.sh b/sources/bin/check_health.sh index 99391bd..826774b 100644 --- a/sources/bin/check_health.sh +++ b/sources/bin/check_health.sh @@ -1347,6 +1347,13 @@ case ${ARG_ACTION} in if (( CHILD_ERROR == 0 )) then log "executed HC: ${HC_RUN} [RC=${RUN_RC}]" + # call for display_init with extra code 'OK' because some plugin end + # successfully *without* any entries in $HC_MSG_FILE (so handle_hc will + # never get to display_init()) + if (( DO_DISPLAY_INIT == 1 )) && [[ ! -s "${HC_MSG_FILE}" ]] + then + display_init "${HC_RUN}" "" "OK" + fi else # call for display_init with extra code 'ERROR' if (( DO_DISPLAY_INIT == 1 ))