Manage Xymon's procs alert
This commit is contained in:
parent
0f404c3a33
commit
4720c28fcf
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue