[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Added additional filter fileds to hostgroup and servicegroup ( #resolves 748)

git at icinga.org git at icinga.org
Fri Sep 10 16:35:22 CEST 2010


Module: icinga-web
Branch: jmosshammer/default
Commit: d523c7eda0d5cf851c854a984f47c9cf8c090741
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=d523c7eda0d5cf851c854a984f47c9cf8c090741

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Thu Sep  9 15:21:05 2010 +0200

* Added additional filter fileds to hostgroup and servicegroup (#resolves 748)

---

 .../xml/grid/icinga-hostgroup-summary-template.xml |   64 ++++++++++++++++++--
 .../grid/icinga-servicegroup-summary-template.xml  |   21 ++++++-
 2 files changed, 78 insertions(+), 7 deletions(-)

diff --git a/app/modules/Cronks/data/xml/grid/icinga-hostgroup-summary-template.xml b/app/modules/Cronks/data/xml/grid/icinga-hostgroup-summary-template.xml
index 4dada13..09c27db 100644
--- a/app/modules/Cronks/data/xml/grid/icinga-hostgroup-summary-template.xml
+++ b/app/modules/Cronks/data/xml/grid/icinga-hostgroup-summary-template.xml
@@ -118,7 +118,37 @@
         	</parameter>
         	
         </parameter>
-        
+<!--
+		<parameter name="filter">
+        	<paramter name="hostgroup_alias">
+        		<parameter name="enabled">true</parameter>
+        		<parameter name="type">extjs</parameter>
+        		<parameter name="subtype">appkit.ext.filter.api</parameter>
+        		<parameter name="label">Alias</parameter>
+
+				 Operator type is needed because we don't know which type returned
+				<parameter name="operator_type">text</parameter>
+
+				<parameter name="api_target">hostgroup</parameter>
+				<parameter name="api_keyfield">HOSTGROUP_ALIAS</parameter>
+				<parameter name="api_valuefield">HOSTGROUP_ALIAS</parameter>
+
+        	</paramter>
+			<paramter name="hostgroup_alias">
+        		<parameter name="enabled">true</parameter>
+        		<parameter name="type">extjs</parameter>
+        		<parameter name="subtype">appkit.ext.filter.api</parameter>
+        		<parameter name="label">Alias</parameter>
+
+				 Operator type is needed because we don't know which type returned
+				<parameter name="operator_type">text</parameter>
+
+				<parameter name="api_target">hostgroup</parameter>
+				<parameter name="api_keyfield">HOSTGROUP_ALIAS</parameter>
+				<parameter name="api_valuefield">HOSTGROUP_ALIAS</parameter>
+
+        	</paramter>
+		</parameter>-->
     </option>
     
     <!-- 
@@ -269,9 +299,23 @@
                 <parameter name="label">Alias</parameter>
             </display>
             
+           
+
             <filter>
-                <parameter name="enabled">false</parameter>    
+                <parameter name="enabled">true</parameter>
+
+				<!-- Filter configuration -->
+                <parameter name="type">extjs</parameter>
+				<parameter name="subtype">appkit.ext.filter.api</parameter>
+
+				<!-- Operator type is needed because we don't know which type returned-->
+				<parameter name="operator_type">text</parameter>
+
+				<parameter name="api_target">hostgroup</parameter>
+				<parameter name="api_keyfield">HOSTGROUP_ALIAS</parameter>
+				<parameter name="api_valuefield">HOSTGROUP_ALIAS</parameter>
             </filter>
+
             
             <order>
                 <parameter name="enabled">true</parameter>
@@ -415,8 +459,15 @@
                 </parameter>
             </display>
         	
+          
             <filter>
-                <parameter name="enabled">false</parameter>    
+                <parameter name="enabled">true</parameter>
+
+                <!-- Filter configuration -->
+                <parameter name="type">extjs</parameter>
+                <parameter name="subtype">appkit.ext.filter.hoststatus</parameter>
+
+                <parameter name="no_operator">false</parameter>
             </filter>
             
             <order>
@@ -435,9 +486,12 @@
                 <parameter name="label">Count</parameter>
             </display>
             
-            <filter>
-                <parameter name="enabled">false</parameter>    
+           <filter>
+                <parameter name="enabled">false</parameter>
+
+				
             </filter>
+
             
             <order>
                 <parameter name="enabled">false</parameter>
diff --git a/app/modules/Cronks/data/xml/grid/icinga-servicegroup-summary-template.xml b/app/modules/Cronks/data/xml/grid/icinga-servicegroup-summary-template.xml
index e9242eb..929e169 100644
--- a/app/modules/Cronks/data/xml/grid/icinga-servicegroup-summary-template.xml
+++ b/app/modules/Cronks/data/xml/grid/icinga-servicegroup-summary-template.xml
@@ -267,7 +267,18 @@
             </display>
             
             <filter>
-                <parameter name="enabled">false</parameter>    
+                <parameter name="enabled">true</parameter>
+
+				<!-- Filter configuration -->
+                <parameter name="type">extjs</parameter>
+				<parameter name="subtype">appkit.ext.filter.api</parameter>
+
+				<!-- Operator type is needed because we don't know which type returned-->
+				<parameter name="operator_type">text</parameter>
+
+				<parameter name="api_target">servicegroup</parameter>
+				<parameter name="api_keyfield">SERVICEGROUP_ALIAS</parameter>
+				<parameter name="api_valuefield">SERVICEGROUP_ALIAS</parameter>
             </filter>
             
             <order>
@@ -358,7 +369,13 @@
             </display>
         	
             <filter>
-                <parameter name="enabled">false</parameter>    
+                <parameter name="enabled">true</parameter>
+
+                <!-- Filter configuration -->
+                <parameter name="type">extjs</parameter>
+                <parameter name="subtype">appkit.ext.filter.servicestatus</parameter>
+
+                <parameter name="no_operator">false</parameter>
             </filter>
             
             <order>





More information about the icinga-checkins mailing list