summaryrefslogtreecommitdiff
path: root/nagios-check-libs
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-08-21 07:57:45 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2008-08-21 07:57:45 +0000
commitd3db57b869d82196aa1630a2862c78ae3557ca87 (patch)
tree994f73c8afdcab1131147823711d4edab95121e3 /nagios-check-libs
parent41e0cbd2f0860f062343ae3ef941f6bc9bc558fa (diff)
Ignore files in /var/tmp
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@365 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'nagios-check-libs')
-rwxr-xr-xnagios-check-libs1
1 files changed, 1 insertions, 0 deletions
diff --git a/nagios-check-libs b/nagios-check-libs
index 860669d..dea848b 100755
--- a/nagios-check-libs
+++ b/nagios-check-libs
@@ -95,6 +95,7 @@ for my $line (@lsof) {
if ($line =~ m/\.dpkg-/ || $line =~ m/path inode=/) {
my ($process, $pid, $user, undef, undef, undef, undef, $path, $rest) = split /\s+/, $line;
next if $path =~ m#^/proc/#;
+ next if $path =~ m#^/var/tmp/#;
next if ($INVSERVER && ($process eq 'init') && ($pid == 1) && ($user eq 'root'));
#$processes{$user}->{$process} = [] unless defined $processes{$user}->{$process};
$processes{$user}->{$process}->{$pid} = 1;