Module: check_mk
Branch: master
Commit: fac913e82b3c10ad21c4e9935d649395d2e4b35d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fac913e82b3c10…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jun 6 11:06:24 2016 +0200
3540 FIX Fixed exception on reading cachefiles
This fixes the Check_MK agent error <i>%d format: a number is required, not
NoneType</i>
which was introduced in the last version.
---
.werks/3540 | 12 ++++++++++++
ChangeLog | 1 +
modules/check_mk_base.py | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/3540 b/.werks/3540
new file mode 100644
index 0000000..3b51078
--- /dev/null
+++ b/.werks/3540
@@ -0,0 +1,12 @@
+Title: Fixed exception on reading cachefiles
+Level: 2
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1465203854
+
+
+This fixes the Check_MK agent error <i>%d format: a number is required, not
NoneType</i>
+which was introduced in the last version.
diff --git a/ChangeLog b/ChangeLog
index fcbe92e..56a5788 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -258,6 +258,7 @@
* 3619 FIX: esx_vsphere_vm.mem_usage: add missing declaration for metrics, use
correct unit
* 2238 FIX: postfix_mailq: Fixed incorrect creation of RRDs, Fixed graphs of size and
length of queues...
* 3633 FIX: check_sql: minor cleanup in active check_sql, fixed performance data
handling
+ * 3540 FIX: Fixed exception on reading cachefiles...
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 312f2dd..f64246f 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -680,7 +680,7 @@ def read_cache_file(relpath, max_cache_age):
return result
else:
vverbose("Skipping cache file %s: Too old "
- "(age is %d sec, allowed is %d sec)\n" %
+ "(age is %d sec, allowed is %s sec)\n" %
(cachefile, cachefile_age(cachefile), max_cache_age))
if simulation_mode and not opt_no_cache: