From 81cb710ec45e99036a1d3600d0ed585f40ed1453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 11 Mar 2020 12:01:46 +0100 Subject: [PATCH] Fix comments about cleaning logfiles --- xymon/plugins/client/ext/smartoverall | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xymon/plugins/client/ext/smartoverall b/xymon/plugins/client/ext/smartoverall index f1c6866..c7a5040 100755 --- a/xymon/plugins/client/ext/smartoverall +++ b/xymon/plugins/client/ext/smartoverall @@ -126,7 +126,8 @@ is_disk_support_smart() { ## Clean temp files ### 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. +### the end of the script. They will be emptied, reused or regenerate (if oldest +### than the expected interval) at the next run. } ## ]]] @@ -160,6 +161,7 @@ choose_correct_type() { # Create or empty previous files true > "${plugin_result}" true > "${plugin_state}" +## Create or empty previous file only if older than 24h (1440 minutes) regenerate_if_too_old "${device_list}" 1440 regenerate_if_too_old "${drivedb_list}" 1440 @@ -284,8 +286,9 @@ $(< "${plugin_state}" cut -c2-) $(cat "${plugin_result}") " -# Clean temp files -## 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. +## Clean temp files +### 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, reused or regenerate (if oldest +### than the expected interval) at the next run. exit 0