summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2010-12-08 10:46:25 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2010-12-08 10:46:25 +0000
commit911501e6bf91292effdc7b83f49cd44e4301891e (patch)
tree7435ff7ce8768ddd42833e504f18e26e6f6caa35
parent47ff5e39974bb8960cc8bf962f2bfe4c22b876be (diff)
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
-rwxr-xr-xnagios-check-libs3
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/#;