summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2010-10-28 14:40:06 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2010-10-28 14:40:06 +0000
commit47ff5e39974bb8960cc8bf962f2bfe4c22b876be (patch)
treedbb72ceb3e4157d780770931d73902699706d762
parentfc1c456f966a7a586abcfb38b775fa27bbc685c5 (diff)
Ignore open /drm (mm object) things that the xserver in squeeze likes to keep around
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@459 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xnagios-check-libs1
1 files changed, 1 insertions, 0 deletions
diff --git a/nagios-check-libs b/nagios-check-libs
index b041144..9aa2008 100755
--- a/nagios-check-libs
+++ b/nagios-check-libs
@@ -117,6 +117,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#^/drm$#; # xserver stuff
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};