From e6eb4bbaff0bb31128372674484691810636cc87 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 4 Oct 2006 10:05:27 +0000 Subject: lsof is broken with links and stuff git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@187 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-libs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nagios-check-libs b/nagios-check-libs index 022c261..8c91fcd 100755 --- a/nagios-check-libs +++ b/nagios-check-libs @@ -73,7 +73,7 @@ if ($CHILD_ERROR) { # program failed }; for my $line (@lsof) { - if ($line =~ m/\.dpkg-/) { + if ($line =~ m/\.dpkg-/ || $line =~ m/path inode=/) { my ($process, $pid, $user, $rest) = split /\s+/, $line; #$processes{$user}->{$process} = [] unless defined $processes{$user}->{$process}; $processes{$user}->{$process}->{$pid} = 1; -- cgit v1.2.3