Module: check_mk
Branch: master
Commit: 87d6f765bea6229ef36406f415c4f2c3d1289e87
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=87d6f765bea622…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Oct 26 14:30:07 2017 +0200
5420 FIX diskspace cleanup: Fixed exception when "Delete additional files when disk
space is below" is enabled
Change-Id: I44a6e0da464f61ea813d726610d2c7bf035a8a84
---
.werks/5420 | 10 ++++++++++
omd/packages/maintenance/diskspace | 1 +
2 files changed, 11 insertions(+)
diff --git a/.werks/5420 b/.werks/5420
new file mode 100644
index 0000000..9c72ff0
--- /dev/null
+++ b/.werks/5420
@@ -0,0 +1,10 @@
+Title: diskspace cleanup: Fixed exception when "Delete additional files when disk
space is below" is enabled
+Level: 1
+Component: omd
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1509020904
+Class: fix
+
+
diff --git a/omd/packages/maintenance/diskspace b/omd/packages/maintenance/diskspace
index 4502395..9824482 100755
--- a/omd/packages/maintenance/diskspace
+++ b/omd/packages/maintenance/diskspace
@@ -203,6 +203,7 @@ def cleanup_oldest_files():
return
# check diskspace against configuration
+ bytes_free = get_free_space()
if not opt_force and above_threshold(bytes_free):
verbose('Free space is above threshold of %s. Nothing to be done.' %
fmt_bytes(min_free_bytes))