summaryrefslogtreecommitdiff
path: root/nagios-check-libs
diff options
context:
space:
mode:
Diffstat (limited to 'nagios-check-libs')
-rwxr-xr-xnagios-check-libs3
1 files changed, 2 insertions, 1 deletions
diff --git a/nagios-check-libs b/nagios-check-libs
index cdf94bc..e8c3203 100755
--- a/nagios-check-libs
+++ b/nagios-check-libs
@@ -74,7 +74,8 @@ if ($CHILD_ERROR) { # program failed
for my $line (@lsof) {
if ($line =~ m/\.dpkg-/ || $line =~ m/path inode=/) {
- my ($process, $pid, $user, $rest) = split /\s+/, $line;
+ my ($process, $pid, $user, undef, undef, undef, undef, $path, $rest) = split /\s+/, $line;
+ next if $path =~ m#^/proc/#;
#$processes{$user}->{$process} = [] unless defined $processes{$user}->{$process};
$processes{$user}->{$process}->{$pid} = 1;
};