From 911501e6bf91292effdc7b83f49cd44e4301891e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 8 Dec 2010 10:46:25 +0000 Subject: Slightly change the DEL detection rule in nagios-check-libs git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@467 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-libs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nagios-check-libs') 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/#; -- cgit v1.2.3