X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-zone-rrsig-expiration-many;h=4139b0da2e4261966e2efa2190544f23a1cedd69;hb=90b9a1d5360d73feebc844d67a8793b89c977e3d;hp=5d9342fd8c71bdb57a92dcbf504e5735b72d6174;hpb=986e59c71906e609f9d2c523e685365c3a3dcfc3;p=mirror%2Fdsa-nagios.git 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 5d9342f..4139b0d 100755 --- a/dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration-many +++ b/dsa-nagios-checks/checks/dsa-check-zone-rrsig-expiration-many @@ -177,7 +177,9 @@ while (time - $begin <= $params->{timeout}) { else { push @{$count->{'unknown'}}, $zone; }; delete $threads{$zone}; } - sleep(1) unless scalar keys %threads == 0; + last if scalar keys %threads == 0; + print STDERR (scalar keys %threads), " threads left: ", join(" ", keys %threads), "\n" if $params->{'debug'}; + sleep 1; } for my $zone (sort {$a cmp $b} keys %threads) { push @{$count->{'warn'}}, $zone;