From 8676f76212d452f2d81d230a88251717b36ebcf04305c4694a31c67601e71c1a Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Sat, 4 Jan 2020 22:31:00 +0000 Subject: [PATCH] fix OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-contentage?expand=0&rev=8 --- check_contentage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_contentage b/check_contentage index 5159b14..3e6611b 100644 --- a/check_contentage +++ b/check_contentage @@ -116,7 +116,7 @@ sub check_dir($$$$){ print "Working in $dir\n" if ($DEBUG); for my $file (readdir(DIR)) { # if ($recursive){ -# &check_dir("$dir/$file",$secwarn,$seccrit) if (-d "$dir/$_"); +# &check_dir("$dir/$file",$secwarn,$seccrit) if (-d "$dir/$file"); # } $count++; next if (! -f "$dir/$file"); @@ -127,7 +127,7 @@ sub check_dir($$$$){ my $mtime=stat("$dir/$file")->mtime; my $age = time() - $mtime; my $time=strftime("%a %b %e %H:%M:%S %Y",localtime($mtime)); - print "$_ : $mtime : $age sec\n" if ($DEBUG); + print "$dir/$file : $mtime : $age sec\n" if ($DEBUG); if ( $age < 0 ){ $res{'errorstr'}.="$dir/$file was modified in the future!\n"; $res{'level'}=$ERRORS{'CRITICAL'};