stat the right file
authorPeter Palfrader <peter@palfrader.org>
Thu, 6 Aug 2015 20:28:28 +0000 (22:28 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 6 Aug 2015 20:28:28 +0000 (22:28 +0200)
dsa-nagios-checks/checks/dsa-check-dabackup

index 4facac4..ea5ecc4 100755 (executable)
@@ -141,7 +141,7 @@ for my $f (sort {$a cmp $b} keys %logfiles) {
        my $age = time - $stat[10];
 
        my $lockage = undef;
-       if (my @lockstat = stat("$logdir/$f")) {
+       if (my @lockstat = stat($LOCKFILE)) {
                $lockage = time - $lockstat[10];
        }