Module: check_mk
Branch: master
Commit: cb769bd59146ff96d6211b9a9e499782c40e3c1a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cb769bd59146ff…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 5 11:14:01 2016 +0100
Small code change to be able to see response content in crash reports
---
web/htdocs/sites.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/sites.py b/web/htdocs/sites.py
index cd0e700..0e7844d 100644
--- a/web/htdocs/sites.py
+++ b/web/htdocs/sites.py
@@ -111,10 +111,13 @@ def _connect_multiple_sites():
# Fetch status of sites by querying the version of Nagios and livestatus
# This may be cached by a proxy for up to the next configuration reload.
_live.set_prepend_site(True)
- for site_id, v1, v2, ps, num_hosts, num_services in _live.query(
+ for response in _live.query(
"GET status\n"
"Cache: reload\n"
"Columns: livestatus_version program_version program_start num_hosts
num_services"):
+
+ site_id, v1, v2, ps, num_hosts, num_services = response
+
_update_site_status(site_id, {
"state" : "online",
"livestatus_version" : v1,