[icinga-checkins] icinga.org: icinga-web/master: Added host_customvariable_* to host dql views

git at icinga.org git at icinga.org
Thu Aug 30 11:36:30 CEST 2012


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

Author: Jannis Moßhammer <jannis.mosshammer at netways.de>
Date:   Wed Aug 29 20:49:01 2012 +0200

Added host_customvariable_* to host dql views

---

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

diff --git a/app/modules/Api/config/views/host.xml b/app/modules/Api/config/views/host.xml
index 0b69a54..a29dbf7 100644
--- a/app/modules/Api/config/views/host.xml
+++ b/app/modules/Api/config/views/host.xml
@@ -60,7 +60,16 @@
                 <join>h.customvariables cvh</join>
                 <select>cvh.varvalue AS customvariable_value</select>
             </filter>
+            <filter name="host_customvariable_name" type="dql">
+                <join>h.customvariables cvh</join>
+                <select>cvh.varname AS host_customvariable_name</select>
+            </filter>
 
+            <filter name="host_customvariable_value" type="dql">
+                <join>h.customvariables cvh</join>
+                <select>cvh.varvalue AS host_customvariable_value</select>
+            </filter>
+            
             <filter name="hostgroup_name" type="dql">
                 <join>h.hostgroups hg</join>
                 <join>hg.object ohg</join>





More information about the icinga-checkins mailing list