[icinga-checkins] icinga.org: icinga-reports/mluebben/default: Fix Bug in perl Modul Availibility.pm

git at icinga.org git at icinga.org
Thu Jul 7 09:23:34 CEST 2011


Module: icinga-reports
Branch: mluebben/default
Commit: 4fe189b17fce8fca48713ce160ad51de1f5b6aba
URL:    https://git.icinga.org/?p=icinga-reports.git;a=commit;h=4fe189b17fce8fca48713ce160ad51de1f5b6aba

Author: Michael Luebben <mluebben at destiny.(none)>
Date:   Thu Jul  7 09:23:20 2011 +0200

Fix Bug in perl Modul Availibility.pm

---

 AvailReportParser/Modules/Parser/Availability.pm |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/AvailReportParser/Modules/Parser/Availability.pm b/AvailReportParser/Modules/Parser/Availability.pm
index 4d84462..5885615 100755
--- a/AvailReportParser/Modules/Parser/Availability.pm
+++ b/AvailReportParser/Modules/Parser/Availability.pm
@@ -724,7 +724,6 @@ sub parseContent {
 				$self->{errMessage} = "No HTML content for parsing found! Icinga/Nagios running?";
 				return -1;
 			} else {
-				#print Dumper($parsed);
 				$self->{host}->{up}->{unscheduled}->{time} = $self->splitTime($parsed->{element}[19][1]);
 				$self->{host}->{up}->{unscheduled}->{totaltime} = substr($parsed->{element}[20][1],0,-1);
 				$self->{host}->{up}->{unscheduled}->{knowntime} = substr($parsed->{element}[21][1],0,-1);
@@ -1103,7 +1102,7 @@ sub getParsedBreakdownValue {
 	my $ReportType = $self->getReportType();
 
 	# Check state
-	if ($state eq "ok" || $state eq "warning" || $state eq "critical" || $state eq "unknown" || $state eq "all" || $state eq "up"|| $state eq "down" || $state eq "unrachable") {
+	if ($state eq "ok" || $state eq "warning" || $state eq "critical" || $state eq "unknown" || $state eq "all" || $state eq "up"|| $state eq "down" || $state eq "unreachable") {
 		# Check type
 		if ($type eq "unscheduled" || $type eq "scheduled" || $type eq "total") {
 			# Check time





More information about the icinga-checkins mailing list