Fix for unknown state

This commit is contained in:
Patrick Van der Veken 2019-03-15 22:14:11 +01:00
parent 39906cee49
commit fec2f92040

View File

@ -127,10 +127,14 @@ case "${_ES_STATUS}" in
_MSG="state of ES instance at ${_ES_URL} is OK [${_ES_STATUS}]" _MSG="state of ES instance at ${_ES_URL} is OK [${_ES_STATUS}]"
_STC=0 _STC=0
;; ;;
*) yellow|red)
_MSG="state of ES instance at ${_ES_URL} is NOK [${_ES_STATUS}]" _MSG="state of ES instance at ${_ES_URL} is NOK [${_ES_STATUS}]"
_STC=1 _STC=1
;; ;;
*)
_MSG="state of ES instance at ${_ES_URL} is NOK [unknown]"
_STC=1
;;
esac esac
if (( _LOG_HEALTHY > 0 || _STC > 0 )) if (( _LOG_HEALTHY > 0 || _STC > 0 ))
then then