Module: check_mk
Branch: master
Commit: 263fa838460559897425a02980b909f1a146adce
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=263fa838460559…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 12 08:29:49 2016 +0200
Better error message on distributed logwatch if slave core is outdated
---
web/htdocs/logwatch.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/web/htdocs/logwatch.py b/web/htdocs/logwatch.py
index 5a05518..3d77f8a 100644
--- a/web/htdocs/logwatch.py
+++ b/web/htdocs/logwatch.py
@@ -514,6 +514,11 @@ def logfiles_of_host(site, host_name):
"Filter: name = %s\n" % lqencode(host_name))
if site: # Honor site hint if available
sites.live().set_only_sites(None)
+ if file_names == None: # Not supported by that Livestatus version
+ raise MKGeneralException(
+ _("The monitoring core of the target site '%s' has the version
'%s'. That "
+ "does not support fetching logfile information. Please upgrade "
+ "to a newer version.") % (site,
sites.state(site)["program_version"]))
return file_names