From 1ed852d1805cf82231482e910a31836ee220b06c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 17 Aug 2018 11:46:03 +0200 Subject: [PATCH] Fix probe test for libs --- xymon/xymon.libs.alert.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xymon/xymon.libs.alert.sh b/xymon/xymon.libs.alert.sh index a9b0c7f..76d1370 100755 --- a/xymon/xymon.libs.alert.sh +++ b/xymon/xymon.libs.alert.sh @@ -32,10 +32,10 @@ if [ ! -d "${temp_dir}" ] ; then fi # }}} -[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : ${BBHOSTNAME} — ${BBSVCNAME} error" > "${debug_stdout}" - # Manage only libs probe {{{ -if [ "${BBSVCNAME}" != "libs" ]; then +if [ "${BBSVCNAME}" = "libs" ]; then + [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : ${BBHOSTNAME} — ${BBSVCNAME} error" > "${debug_stdout}" +else [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : ${BBHOSTNAME} — ${BBSVCNAME} probe is not managed." > "${debug_stdout}" [ "${DEBUG}" -eq "0" ] || rm -rf -- "${temp_dir}" exit 0