From 4e31c4ffa8e4c5b5c336114bee42b0da3a496272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 9 Oct 2019 10:10:31 +0200 Subject: [PATCH] Prepare for a new script for files probe --- xymon/xymon.alert.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xymon/xymon.alert.sh b/xymon/xymon.alert.sh index 1773a17..7014ca4 100755 --- a/xymon/xymon.alert.sh +++ b/xymon/xymon.alert.sh @@ -1,7 +1,7 @@ #!/bin/sh # Purpose {{{ ## If Xymon server says that a probe is in error on a remote host, try to call the appropriate script. -## For debugging messages, you can check xymon's logs (/var/log/xymon/alert.log +## For debugging messages, you can check xymon's logs (/var/log/xymon/alert.log) ## How-to use : {{{ ### Define an alert in Xymon configuration file (/etc/xymon/alerts.cfg) @@ -15,6 +15,7 @@ DEBUG=1 script_path="$(dirname -- ${0})" script_apt="${script_path}/xymon.apt.alert.sh" +script_files="${script_path}/xymon.files.alert.sh" script_libs="${script_path}/xymon.libs.alert.sh" script_procs="${script_path}/xymon.procs.alert.sh" # }}} @@ -26,6 +27,9 @@ case "${BBSVCNAME}" in 'apt' ) script_to_run="${script_apt}" ;; + 'files' ) + script_to_run="${script_files}" + ;; 'libs' ) script_to_run="${script_libs}" ;; @@ -39,7 +43,6 @@ case "${BBSVCNAME}" in esac # }}} - # Call the next script if managed {{{ if [ "${script_to_run}" != "NOT.MANAGED" ]; then # Export vars {{{