Module: check_mk
Branch: master
Commit: c6129da6201ed022ec667c464859e836c4e60980
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c6129da6201ed0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 25 12:13:21 2013 +0100
Debug output when piggy files are outdated
---
modules/check_mk_base.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 7fd93c1..aa3d5de 100755
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -414,6 +414,9 @@ def get_piggyback_info(hostname):
file_path = dir + "/" + sourcehost
if cachefile_age(file_path) > piggyback_max_cachefile_age:
+ if opt_debug:
+ sys.stderr.write("Piggyback file %s is outdated by %d
seconds. Deleting it.\n" %
+ (file_path, cachefile_age(file_path) -
piggyback_max_cachefile_age))
os.remove(file_path)
continue