From: Peter Palfrader Date: Fri, 11 Sep 2015 08:20:10 +0000 (+0200) Subject: Apply Aurelien's nfs patch to the dsa-check-libs copy in puppet also X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=6b183cf204cd8df9a8a967f1e709832968c50cbb Apply Aurelien's nfs patch to the dsa-check-libs copy in puppet also --- diff --git a/modules/nagios/files/dsa-check-libs b/modules/nagios/files/dsa-check-libs index 807796f4..77b37805 100755 --- a/modules/nagios/files/dsa-check-libs +++ b/modules/nagios/files/dsa-check-libs @@ -171,7 +171,7 @@ LINE: for my $line (@lsof) { my $inode = $fields{i}; my $path = $fields{n}; if ($path =~ m/\.dpkg-/ || $path =~ m/\(deleted\)/ || $path =~ /path inode=/ || $path =~ m#/\.nfs# || $fd eq 'DEL') { - my $deleted_in_path = ($path =~ m/\(deleted\)/); + my $deleted_in_path = ($path =~ m/\(deleted\)/ || $path =~ m/\.nfs/); next if ($deleted_in_path && $fd =~ /^[0-9]*$/); # Ignore deleted files that are open via normal file handles. next if ($deleted_in_path && $fd eq 'cwd'); # Ignore deleted directories that we happen to be in.