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