diff options
author | Peter Palfrader <peter@palfrader.org> | 2015-01-29 09:24:30 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2015-01-29 09:24:30 +0100 |
commit | 1793a91990a889ccab399dabd11812d19faa8acb (patch) | |
tree | 1d3535d7260e8cca2a9fe268c28e3806e1380459 /nagios-checks | |
parent | 8e233f74d3e218de01003a88a4e34d681001f712 (diff) |
nagios-check-libs: find nfs files
Diffstat (limited to 'nagios-checks')
-rwxr-xr-x | nagios-checks/nagios-check-libs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nagios-checks/nagios-check-libs b/nagios-checks/nagios-check-libs index 4406413..77707d9 100755 --- a/nagios-checks/nagios-check-libs +++ b/nagios-checks/nagios-check-libs @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -# Copyright (C) 2005, 2006, 2007, 2008, 2012 Peter Palfrader <peter@palfrader.org> +# Copyright (C) 2005, 2006, 2007, 2008, 2012, 2015 Peter Palfrader <peter@palfrader.org> # 2012 Uli Martens <uli@youam.net> # # Permission is hereby granted, free of charge, to any person obtaining @@ -169,7 +169,7 @@ LINE: for my $line (@lsof) { my $fd = $fields{f}; my $inode = $fields{i}; my $path = $fields{n}; - if ($path =~ m/\.dpkg-/ || $path =~ m/\(deleted\)/ || $path =~ /path inode=/ || $fd eq 'DEL') { + if ($path =~ m/\.dpkg-/ || $path =~ m/\(deleted\)/ || $path =~ /path inode=/ || $path =~ m#/\.nfs# || $fd eq 'DEL') { $path =~ s/^\(deleted\)//; # in some cases "(deleted)" is at the beginning of the string for my $i (@{$config->{'ignorelist'}}) { my $ignore = eval($i); |