diff options
-rwxr-xr-x | nagios-check-libs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nagios-check-libs b/nagios-check-libs index 9aa2008..ae5bb51 100755 --- a/nagios-check-libs +++ b/nagios-check-libs @@ -112,7 +112,8 @@ if ($CHILD_ERROR) { # program failed }; for my $line (@lsof) { - if ($line =~ m/\.dpkg-/ || $line =~ m/path inode=/ || $line =~ m/ DEL /) { + my ($process, $pid, $user, $fd, undef, undef, undef, $path, $rest) = split /\s+/, $line; + if ($line =~ m/\.dpkg-/ || $line =~ m/path inode=/ || $fd eq 'DEL') { my ($process, $pid, $user, undef, undef, undef, undef, $path, $rest) = split /\s+/, $line; next if $path =~ m#^/proc/#; next if $path =~ m#^/var/tmp/#; |