Module: check_mk
Branch: master
Commit: 82f5acdb5efe6f76023d18549d90875b506f754a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=82f5acdb5efe6f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 30 15:17:55 2011 +0200
FIX: Fixed not updating pnp graphs on dashboard in some browsers (like chrome)
---
ChangeLog | 1 +
web/htdocs/dashboard.py | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0e4a5eb..5eaa53a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
Multisite:
* FIX: fix rescheduling of host check
* FIX: fix exception when using status_host while local site is offline
+ * FIX: Fixed not updating pnp graphs on dashboard in some browsers (like chrome)
* Added some missing i18n strings in general HTML functions
* Added display_option "w" to disable limit messages and livestatus errors
in views
* Service Perfdata Sorters are sorting correctly now
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index dbf649c..3c67735 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -24,7 +24,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-import config, defaults, htmllib, pprint
+import config, defaults, htmllib, pprint, time
from lib import *
import wato
@@ -541,7 +541,7 @@ def render_pnpgraph(site, host, service=None, source=0):
else:
base_url = html.site_status[site]["site"]["url_prefix"]
- img_url = base_url +
"image?host=%s&srv=%s&view=0&source=%d&theme=multisite" % \
- (pnp_cleanup(host), pnp_cleanup(service), source)
+ img_url = base_url +
"image?host=%s&srv=%s&view=0&source=%d&theme=multisite&_t=%d"
% \
+ (pnp_cleanup(host), pnp_cleanup(service), source, int(time.time()))
html.write('<img src="%s">' % img_url)