[icinga-checkins] icinga.org: icinga-reports/mluebben/r1.5: Fix Bug in host availability report

git at icinga.org git at icinga.org
Tue Jun 14 16:48:39 CEST 2011


Module: icinga-reports
Branch: mluebben/r1.5
Commit: cca5bd3bff2941a81515a271b8de8480ec59aefe
URL:    https://git.icinga.org/?p=icinga-reports.git;a=commit;h=cca5bd3bff2941a81515a271b8de8480ec59aefe

Author: Michael Luebben <michael_luebben at web.de>
Date:   Tue Jun 14 16:48:02 2011 +0200

Fix Bug in host availability report

---

 jasperreports/package/icinga-reports.zip           |  Bin 245773 -> 245774 bytes
 .../sub/service/availabilityInGivenTime.jrxml      |   11 ++++-------
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/jasperreports/package/icinga-reports.zip b/jasperreports/package/icinga-reports.zip
index 02b72d6..57955d1 100644
Binary files a/jasperreports/package/icinga-reports.zip and b/jasperreports/package/icinga-reports.zip differ
diff --git a/jasperreports/templates/sub/service/availabilityInGivenTime.jrxml b/jasperreports/templates/sub/service/availabilityInGivenTime.jrxml
index d364ee1..142000f 100644
--- a/jasperreports/templates/sub/service/availabilityInGivenTime.jrxml
+++ b/jasperreports/templates/sub/service/availabilityInGivenTime.jrxml
@@ -2,7 +2,7 @@
 <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Service availability sub report in given time" language="groovy" pageWidth="555" pageHeight="842" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
 	<property name="ireport.zoom" value="1.0"/>
 	<property name="ireport.x" value="0"/>
-	<property name="ireport.y" value="48"/>
+	<property name="ireport.y" value="0"/>
 	<subDataset name="graph_availability">
 		<parameter name="p_service_object_id" class="java.lang.String">
 			<defaultValueExpression><![CDATA[$P{p_service_object_id}]]></defaultValueExpression>
@@ -139,14 +139,11 @@ GROUP BY state_one]]>
 from icinga_objects,
   icinga_services
 where icinga_objects.object_id  = icinga_services.service_object_id
+and icinga_services.config_type = 1
 and icinga_objects.object_id    = $P{p_service_object_id}]]>
 	</queryString>
-	<field name="name2" class="java.lang.String">
-		<fieldDescription><![CDATA[]]></fieldDescription>
-	</field>
-	<field name="period" class="java.lang.Long">
-		<fieldDescription><![CDATA[]]></fieldDescription>
-	</field>
+	<field name="name2" class="java.lang.String"/>
+	<field name="period" class="java.lang.Long"/>
 	<background>
 		<band splitType="Stretch"/>
 	</background>





More information about the icinga-checkins mailing list