summaryrefslogtreecommitdiff
path: root/nagios-check-libs
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2010-07-04 20:17:05 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2010-07-04 20:17:05 +0000
commit859d4335dfbcf10ffd774151ff7cc40950478e72 (patch)
treef9f5ae888c1c590c3f6d0ef7d4e4ede7aad94f44 /nagios-check-libs
parent030b5363115ebf794602536c3b6299e2416e173f (diff)
ignore dev/zero
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@452 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 3bfd837..1ad3458 100755
--- a/nagios-check-libs
+++ b/nagios-check-libs
@@ -116,6 +116,7 @@ for my $line (@lsof) {
next if $path =~ m#^/proc/#;
next if $path =~ m#^/var/tmp/#;
next if $path =~ m#^/SYS#;
+ next if $path =~ m#^/dev/zero#;
next if ($INVSERVER && ($process eq 'init') && ($pid == 1) && ($user eq 'root'));
#$processes{$user}->{$process} = [] unless defined $processes{$user}->{$process};
$processes{$user}->{$process}->{$pid} = 1;