X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-zone-rrsig-expiration;h=1b54970d76c79918c1c66af97217d5ba18aa059b;hb=3a002c0a3373df12af1cd23a45fcf63ee434b329;hp=3d5d584fbe8724281c0e3e8decdfd69e8952b3a9;hpb=b24070726f009d22a270de5b56cd484ab6154887;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration b/dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration index 3d5d584..1b54970 100755 --- a/dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration +++ b/dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration @@ -279,7 +279,7 @@ sub output { } sub usage { - print STDERR "usage: $0 [-d] [-w=] [-c=] [-t=] \n"; + print STDERR "usage: $0 [-d] [-w=] [-c=] [-t=] [-r=[,[,..]]] [-s=] \n"; exit 3; } @@ -309,7 +309,7 @@ sub get_nslist { my @nslist; foreach my $rr ($pkt->authority, $pkt->answer) { next unless ($rr->type eq 'NS'); - next unless ($rr->name eq $zone); + next unless lc($rr->name) eq lc($zone); push(@nslist, lc($rr->nsdname)); } return @nslist;