From fec2f9204099fb4033c1dcb05df58aa3c18a49c2 Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Fri, 15 Mar 2019 22:14:11 +0100 Subject: [PATCH] Fix for unknown state --- sources/lib/platform/linux/check_linux_es_status.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sources/lib/platform/linux/check_linux_es_status.sh b/sources/lib/platform/linux/check_linux_es_status.sh index f17293e..8514954 100644 --- a/sources/lib/platform/linux/check_linux_es_status.sh +++ b/sources/lib/platform/linux/check_linux_es_status.sh @@ -127,10 +127,14 @@ case "${_ES_STATUS}" in _MSG="state of ES instance at ${_ES_URL} is OK [${_ES_STATUS}]" _STC=0 ;; - *) + yellow|red) _MSG="state of ES instance at ${_ES_URL} is NOK [${_ES_STATUS}]" _STC=1 ;; + *) + _MSG="state of ES instance at ${_ES_URL} is NOK [unknown]" + _STC=1 + ;; esac if (( _LOG_HEALTHY > 0 || _STC > 0 )) then