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