projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1d3b450
)
Apply Aurelien's nfs patch to the dsa-check-libs copy in puppet also
author
Peter Palfrader
<peter@palfrader.org>
Fri, 11 Sep 2015 08:20:10 +0000
(10:20 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Fri, 11 Sep 2015 08:20:10 +0000
(10:20 +0200)
modules/nagios/files/dsa-check-libs
patch
|
blob
|
history
diff --git
a/modules/nagios/files/dsa-check-libs
b/modules/nagios/files/dsa-check-libs
index
807796f
..
77b3780
100755
(executable)
--- 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 $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.
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.