From cc433764c974d9a0f936ce0e7950c632c15b44d8 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 25 Jan 2007 15:27:42 +0000 Subject: Ignore files in /proc git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@252 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-libs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }; -- cgit v1.2.3