[icinga-checkins] icinga.org: icinga-web/mhein/default: * Updated PNP Integration ( iframe view added)

git at icinga.org git at icinga.org
Thu Sep 16 17:14:04 CEST 2010


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

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Mon Sep 13 10:20:49 2010 +0200

* Updated PNP Integration (iframe view added)

---

 etc/contrib/PNP_Integration/.backup.dat            |  Bin 8629 -> 8872 bytes
 ...s_Cronks_data_xml_grid_icinga-host-template.xml |   55 ++++++++++++++++++++
 ...ronks_data_xml_grid_icinga-service-template.xml |   54 +++++++++++++++++++
 3 files changed, 109 insertions(+), 0 deletions(-)

diff --git a/etc/contrib/PNP_Integration/.backup.dat b/etc/contrib/PNP_Integration/.backup.dat
index f27c3b6..6dbb0aa 100644
Binary files a/etc/contrib/PNP_Integration/.backup.dat and b/etc/contrib/PNP_Integration/.backup.dat differ
diff --git a/etc/contrib/PNP_Integration/etc/xml/%PATH_Icinga%app_modules_Cronks_data_xml_grid_icinga-host-template.xml b/etc/contrib/PNP_Integration/etc/xml/%PATH_Icinga%app_modules_Cronks_data_xml_grid_icinga-host-template.xml
index f769a96..530d545 100644
--- a/etc/contrib/PNP_Integration/etc/xml/%PATH_Icinga%app_modules_Cronks_data_xml_grid_icinga-host-template.xml
+++ b/etc/contrib/PNP_Integration/etc/xml/%PATH_Icinga%app_modules_Cronks_data_xml_grid_icinga-host-template.xml
@@ -61,6 +61,61 @@
 						 <parameter name="enabled">false</parameter>
 					</order>
 		</field>
+
+		<field name="pnp4nagios_host_link">
+            <!-- datasource maps a data field from api call -->
+            <datasource>
+                <parameter name="field">HOST_NAME</parameter>
+            </datasource>
+
+            <display>
+                <parameter name="visible">true</parameter>
+                <parameter name="label">Perfdata</parameter>
+                <parameter name="width">55</parameter>
+
+                <parameter name="Ext.grid.Column">
+                        <parameter name="menuDisabled">true</parameter>
+                        <parameter name="fixed">true</parameter>
+                </parameter>
+
+                <parameter name="jsFunc">
+                        <!-- fnuction to display column with icon in host status grid view -->
+                        <parameter>
+                                <parameter name="namespace">Cronk.grid.ColumnRenderer</parameter>
+                                <parameter name="function">columnImage</parameter>
+                                <parameter name="type">renderer</parameter>
+
+                                <parameter name="arguments">
+                                                        <parameter name="image">images/icons/application_view_gallery.png</parameter>
+                                                        <parameter name="css">x-icinga-grid-link</parameter>
+                                                        <parameter name="attr">
+                                                                <parameter name="qtip">Show host perfdata for this host</parameter>
+                                                        </parameter>
+                                </parameter>
+                        </parameter>
+
+                        <!-- create cell click event for the previously defined column -->
+                        <parameter>
+                                <parameter name="namespace">Cronk.grid.IcingaColumnRenderer</parameter>
+                                <parameter name="function">iFrameCronk</parameter>
+                                <parameter name="type">cellclick</parameter>
+                                <parameter name="arguments">
+                                        <parameter name="title">Service perfdata for {service_name} on {host_name}</parameter>
+                                        <parameter name="url"><![CDATA[/pnp4nagios/index.php/graph?host={host_name}&srv=_HOST]]></parameter>
+                                        <parameter name="activateOnClick">true</parameter>
+                                </parameter>
+                        </parameter>
+                </parameter>
+            </display>
+
+            <filter>
+                <parameter name="enabled">false</parameter>
+            </filter>
+
+            <order>
+                <parameter name="enabled">false</parameter>
+            </order>
+        </field>
 	</fields>
 </template>
 
diff --git a/etc/contrib/PNP_Integration/etc/xml/%PATH_Icinga%app_modules_Cronks_data_xml_grid_icinga-service-template.xml b/etc/contrib/PNP_Integration/etc/xml/%PATH_Icinga%app_modules_Cronks_data_xml_grid_icinga-service-template.xml
index 451fb7b..a2e5ad1 100644
--- a/etc/contrib/PNP_Integration/etc/xml/%PATH_Icinga%app_modules_Cronks_data_xml_grid_icinga-service-template.xml
+++ b/etc/contrib/PNP_Integration/etc/xml/%PATH_Icinga%app_modules_Cronks_data_xml_grid_icinga-service-template.xml
@@ -60,6 +60,60 @@
 						 <parameter name="enabled">false</parameter>
 					</order>
 		</field>
+		<field name="pnp4nagios_service_link">
+            <!-- datasource maps a data field from api call -->
+            <datasource>
+                <parameter name="field">SERVICE_NAME</parameter>
+            </datasource>
+
+            <display>
+                <parameter name="visible">true</parameter>
+                <parameter name="label">Perfdata</parameter>
+                <parameter name="width">55</parameter>
+
+                <parameter name="Ext.grid.Column">
+                        <parameter name="menuDisabled">true</parameter>
+                        <parameter name="fixed">true</parameter>
+                </parameter>
+
+                <parameter name="jsFunc">
+                        <!-- fnuction to display column with icon in host status grid view -->
+                        <parameter>
+                                <parameter name="namespace">Cronk.grid.ColumnRenderer</parameter>
+                                <parameter name="function">columnImage</parameter>
+                                <parameter name="type">renderer</parameter>
+
+                                <parameter name="arguments">
+                                                        <parameter name="image">images/icons/application_view_gallery.png</parameter>
+                                                        <parameter name="css">x-icinga-grid-link</parameter>
+                                                        <parameter name="attr">
+                                                                <parameter name="qtip">Show host perfdata for this service</parameter>
+                                                        </parameter>
+                                </parameter>
+                        </parameter>
+
+                        <!-- create cell click event for the previously defined column -->
+                        <parameter>
+                                <parameter name="namespace">Cronk.grid.IcingaColumnRenderer</parameter>
+                                <parameter name="function">iFrameCronk</parameter>
+                                <parameter name="type">cellclick</parameter>
+                                <parameter name="arguments">
+                                        <parameter name="title">Service perfdata for {service_name} on {host_name}</parameter>
+                                        <parameter name="url"><![CDATA[/pnp4nagios/index.php/graph?host={host_name}&srv={service_name}]]></parameter>
+                                        <parameter name="activateOnClick">true</parameter>
+                                </parameter>
+                        </parameter>
+                </parameter>
+            </display>
+
+            <filter>
+                <parameter name="enabled">false</parameter>
+            </filter>
+
+            <order>
+                <parameter name="enabled">false</parameter>
+            </order>
+        </field>
 	</fields>
 </template>
 





More information about the icinga-checkins mailing list