Manage apt alert

This commit is contained in:
Jeremy Gardais 2018-08-28 16:21:44 +02:00
parent d09250d088
commit 6ecb6df66e
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@
DEBUG=1 DEBUG=1
script_path="$(dirname -- ${0})" script_path="$(dirname -- ${0})"
script_apt="${script_path}/xymon.apt.alert.sh"
script_libs="${script_path}/xymon.libs.alert.sh" script_libs="${script_path}/xymon.libs.alert.sh"
script_procs="${script_path}/xymon.procs.alert.sh" script_procs="${script_path}/xymon.procs.alert.sh"
# }}} # }}}
@ -22,6 +23,9 @@ script_procs="${script_path}/xymon.procs.alert.sh"
# Match probe name with the script {{{ # Match probe name with the script {{{
case "${BBSVCNAME}" in case "${BBSVCNAME}" in
'apt' )
script_to_run="${script_apt}"
;;
'libs' ) 'libs' )
script_to_run="${script_libs}" script_to_run="${script_libs}"
;; ;;