[icinga-checkins] icinga.org: icinga-web/master: Fixed missing servicegroup filter in host view

git at icinga.org git at icinga.org
Tue Oct 9 16:24:59 CEST 2012


Module: icinga-web
Branch: master
Commit: 01a1c434a810cd6b746bd9272985f4411aa1b99e
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=01a1c434a810cd6b746bd9272985f4411aa1b99e

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Tue Oct  9 16:24:26 2012 +0200

Fixed missing servicegroup filter in host view
fixes #2867

---

 app/modules/Api/config/views/host.xml |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/app/modules/Api/config/views/host.xml b/app/modules/Api/config/views/host.xml
index f5559de..30d72e2 100755
--- a/app/modules/Api/config/views/host.xml
+++ b/app/modules/Api/config/views/host.xml
@@ -84,6 +84,23 @@
                 <select>ohg.object_id AS hostgroup_object_id</select>
                 <groupby>h.host_object_id</groupby>                
             </filter>
+            
+            <filter name="servicegroup_name" type="dql">
+                <join>h.services s</join>
+                <join>s.servicegroups sg</join>
+                <join>sg.object osg</join>
+                <select>osg.name1 AS servicegroup_name</select>
+                <groupby>h.host_object_id</groupby>
+            </filter>
+            
+            <filter name="hostgroup_object_id" type="dql">
+                <join>h.services s</join>
+                <join>s.servicegroups sg</join>
+                <join>sg.object osg</join>
+                <select>osg.object_id AS servicegroup_object_id</select>
+                <groupby>h.host_object_id</groupby>
+            </filter>
+
 
             <filter name="host_is_pending" type="dql">
                 <resolve>((hs.has_been_checked-1)*-1)</resolve>





More information about the icinga-checkins mailing list