From 6184a1a061037503da781dc42d04a6d98f8e6a48 Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Fri, 1 Nov 2019 16:47:49 +0100 Subject: [PATCH] Fix in check_linux_httpd_status plugin --- opt/hc/lib/platform/linux/check_linux_httpd_status.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/opt/hc/lib/platform/linux/check_linux_httpd_status.sh b/opt/hc/lib/platform/linux/check_linux_httpd_status.sh index c022a1e..e16669e 100755 --- a/opt/hc/lib/platform/linux/check_linux_httpd_status.sh +++ b/opt/hc/lib/platform/linux/check_linux_httpd_status.sh @@ -106,6 +106,16 @@ then _HTTPD_BIN="${_CFG_HTTPD_BIN}" log "setting httpd path to {${_HTTPD_BIN}} (config override)" fi +_CFG_HEALTHY=$(_CONFIG_FILE="${_CONFIG_FILE}" data_get_lvalue_from_config 'log_healthy') +case "${_CFG_HEALTHY}" in + yes|YES|Yes) + _LOG_HEALTHY=1 + ;; + *) + # do not override hc_arg + (( _LOG_HEALTHY > 0 )) || _LOG_HEALTHY=0 + ;; +esac # log_healthy (( ARG_LOG_HEALTHY > 0 )) && _LOG_HEALTHY=1