Module: check_mk
Branch: master
Commit: 81b5963b053cdac52c3afaa0a0c582a98fbee755
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=81b5963b053cda…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Jun 26 15:21:33 2011 +0200
Make use of new column host_filename
---
web/htdocs/dashboard.py | 2 +-
web/plugins/views/wato.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index c3111dd..857afab 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -455,7 +455,7 @@ def render_statistics(what, table, filter):
filename = html.var("filename")
if filename and filename != "/":
# filter += "Filter: host_state = 0"
- filter += "Filter: host_custom_variables ~ FILENAME ^%s\n" %
filename.replace("\n", "")
+ filter += "Filter: host_filename ~ ^%s\n" %
filename.replace("\n", "")
query = "GET %s\n" % what
for entry in table:
diff --git a/web/plugins/views/wato.py b/web/plugins/views/wato.py
index e8e27df..4d9bba6 100644
--- a/web/plugins/views/wato.py
+++ b/web/plugins/views/wato.py
@@ -40,7 +40,7 @@ class FilterWatoFile(Filter):
def filter(self, infoname):
current = html.var(self.name)
if current and current in self.path_to_tree:
- return "Filter: host_custom_variables ~ FILENAME ^%s\n" %
current.replace("\n", "") # prevent insertions attack
+ return "Filter: host_filename ~ ^%s\n" %
current.replace("\n", "") # prevent insertions attack
else:
return ""