Manage Xymon's procs alert

This commit is contained in:
Jeremy Gardais 2018-08-21 16:37:37 +02:00
parent 0f404c3a33
commit 4720c28fcf
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ DEBUG=1
script_path="$(dirname -- ${0})" script_path="$(dirname -- ${0})"
script_libs="${script_path}/xymon.libs.alert.sh" script_libs="${script_path}/xymon.libs.alert.sh"
script_procs="${script_path}/xymon.procs.alert.sh"
# }}} # }}}
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: ${BBHOSTNAME}${BBSVCNAME} is in error." [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: ${BBHOSTNAME}${BBSVCNAME} is in error."
@ -24,6 +25,9 @@ case "${BBSVCNAME}" in
'libs' ) 'libs' )
script_to_run="${script_libs}" script_to_run="${script_libs}"
;; ;;
'procs' )
script_to_run="${script_procs}"
;;
# default # default
* ) * )
script_to_run="NOT.MANAGED" script_to_run="NOT.MANAGED"