From 60217f1eecd02c59bee40a774cf4ecd047827a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 4 Mar 2020 09:57:20 +0100 Subject: [PATCH] Rename logfiles and keep them between each run --- xymon/plugins/client/ext/smartoverall | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xymon/plugins/client/ext/smartoverall b/xymon/plugins/client/ext/smartoverall index d622dca..ea121fe 100755 --- a/xymon/plugins/client/ext/smartoverall +++ b/xymon/plugins/client/ext/smartoverall @@ -32,9 +32,9 @@ c_reset='\033[0m' plugin_name=$(basename "${0}") -plugin_result="${XYMONTMP}/dres" -plugin_state="${XYMONTMP}/dcheck" -device_list="${XYMONTMP}/dscan" +plugin_result="${XYMONTMP}/${MACHINEDOTS}.smartoverall.plugin_result" +plugin_state="${XYMONTMP}/${MACHINEDOTS}.smartoverall.plugin_state" +device_list="${XYMONTMP}/${MACHINEDOTS}.smartoverall.dscan" # ]]] @@ -227,6 +227,7 @@ $(cat /tmp/dres) " # Clean temp files -rm -f -- "${plugin_result}" "${plugin_state}" "${device_list}" +## As the Xymon's tmpdir is used to store log files, no need to delete them at +## the end of the script. They will be emptied at the beginning of the next run. exit 0