From: Peter Palfrader Date: Tue, 15 Apr 2014 06:00:41 +0000 (+0200) Subject: dsa-check-zone-rrsig-expiration-many: Initialize exit to UNKNOWN, in case it does... X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=d619d2e77d5c32c363577732af512c0b2b4197b4;hp=43fcb98b62436744e00c38efd77f52718878d1eb;p=mirror%2Fdsa-nagios.git dsa-check-zone-rrsig-expiration-many: Initialize exit to UNKNOWN, in case it does not get set later. --- diff --git a/dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration-many b/dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration-many index 397bb83..376ba48 100755 --- a/dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration-many +++ b/dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration-many @@ -187,7 +187,7 @@ for my $k (keys %$count) { @{$count->{$k}} = sort {$a cmp $b} @{$count->{$k}}; } -my $exit; +my $exit = 255; my %state_mapping = ( 'unknown' => 255, 'critical' => 2, diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 896342e..2a60276 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -2,6 +2,8 @@ dsa-nagios-checks (100) UNRELEASED; urgency=low [ Peter Palfrader ] * dsa-check-running-kernel: Check from all compression tokens. + * dsa-check-zone-rrsig-expiration-many: Initialize exit to UNKNOWN, in case + it does not get set later. [ George Kargiotakis ] * dsa-check-hpacucli: Add Parity check for logical drives.