X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-dnssec-delegation;h=ff8f9202de4ebc889d533e1f86552078e257581a;hb=3ba5f9f245f7343b9c9ebd9f4e808e9af7aa1d19;hp=ce56d81744c175135c5d54366087eb66b9de3920;hpb=c54ba0b9990aaa955e0b6ef9b0c1fb1d59e140f6;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-dnssec-delegation b/dsa-nagios-checks/checks/dsa-check-dnssec-delegation index ce56d81..ff8f920 100755 --- a/dsa-nagios-checks/checks/dsa-check-dnssec-delegation +++ b/dsa-nagios-checks/checks/dsa-check-dnssec-delegation @@ -42,7 +42,7 @@ sub get_tag_generic { return () unless $pkt->answer; for my $rr ($pkt->answer) { next unless ($rr->type eq $type); - next unless ($rr->name eq $zone); + next unless (lc($rr->name) eq lc($zone)); # only handle KSKs, i.e. keys with the SEP flag set next if ($type eq 'DNSKEY' && !($rr->is_sep)); @@ -73,7 +73,7 @@ sub usage { my $exit = shift; print $fd "Usage: $PROGRAM_NAME overview|check-dlv|check-ds zone [zone...]\n"; - print $fd " $PROGRAM_NAME --dir overview|check-dlv|check-ds zone [zone...]\n"; + print $fd " $PROGRAM_NAME --dir overview|check-dlv|check-ds\n"; print $fd " $PROGRAM_NAME --help\n"; exit $exit; }