From 84670e0759eb75a098e2574af08c70ea406c04cd Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 15 Apr 2014 08:27:17 +0200 Subject: [PATCH] dsa-check-zone-rrsig-expiration-many: Initialize exit properly --- dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration-many | 2 +- dsa-nagios-checks/debian/changelog | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 376ba48..ec97557 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 = 255; +my $exit = 0; my %state_mapping = ( 'unknown' => 255, 'critical' => 2, diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 2a60276..ad83be0 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -2,7 +2,7 @@ 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 + * dsa-check-zone-rrsig-expiration-many: Initialize exit properly, in case it does not get set later. [ George Kargiotakis ] -- 2.20.1