dsa-check-zone-rrsig-expiration-many: add --debug option to pass through
authorPeter Palfrader <peter@palfrader.org>
Tue, 20 May 2014 11:54:52 +0000 (13:54 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 20 May 2014 11:57:00 +0000 (13:57 +0200)
dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration-many
dsa-nagios-checks/debian/changelog

index ec97557..b97cb09 100755 (executable)
@@ -71,6 +71,7 @@ sub check_one {
 
        my @cmd = ($check, '-w', $params->{'warn'}, '-c', $params->{'critical'});
        push(@cmd, '-r', $extra->{'initial_refs'}) if exists $extra->{'initial_refs'};
+       push(@cmd, '-d') if $params->{'debug'};
        push(@cmd, $zone);
        open(P, '-|', @cmd) or die ("Cannot run $CHECK for $zone\n");
        my @p = <P>;
@@ -82,13 +83,14 @@ sub check_one {
        return ($res, \@p);
 }
 
-my $USAGE = "Usage: $PROGRAM_NAME [--help] | [--timeout=<nn>] [--warn=<nn>] [--critical=<nn>] [--geozonedir=<geodir>] <indir>\n";
+my $USAGE = "Usage: $PROGRAM_NAME [--help] | [--debug] [--timeout=<nn>] [--warn=<nn>] [--critical=<nn>] [--geozonedir=<geodir>] <indir>\n";
 my $params = { 'timeout' => 45, 'warn' => '14d', 'critical' => '7d' };
 Getopt::Long::config('bundling');
 GetOptions (
        '--help' => \$params->{'help'},
        '--timeout=i' => \$params->{'timeout'},
        '--warn=s' => \$params->{'warn'},
+       '--debug' => \$params->{'debug'},
        '--critical=s' => \$params->{'critical'},
        '--geozonedir=s' => \$params->{'geozonedir'},
 ) or die ($USAGE);
index 8441ea0..60e3e4a 100644 (file)
@@ -1,8 +1,8 @@
 dsa-nagios-checks (101) UNRELEASED; urgency=low
 
-  *
+  * dsa-check-zone-rrsig-expiration-many: add --debug option to pass through.
 
- -- Peter Palfrader <weasel@debian.org>  Mon, 19 May 2014 12:37:41 +0200
+ -- Peter Palfrader <weasel@debian.org>  Tue, 20 May 2014 13:54:29 +0200
 
 dsa-nagios-checks (100) unstable; urgency=low