From: Aurelien Jarno Date: Wed, 26 Aug 2015 09:48:36 +0000 (+0200) Subject: dsa-check-libs: also ignore files that are open via normal file handles on NFS. X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=e64ee9382ef72c0d37f07f32c2b7f093474be242;p=mirror%2Fdsa-nagios.git dsa-check-libs: also ignore files that are open via normal file handles on NFS. --- diff --git a/dsa-nagios-checks/checks/dsa-check-libs b/dsa-nagios-checks/checks/dsa-check-libs index 5d49855..d1a96c7 100755 --- a/dsa-nagios-checks/checks/dsa-check-libs +++ b/dsa-nagios-checks/checks/dsa-check-libs @@ -170,7 +170,7 @@ LINE: for my $line (@lsof) { my $inode = $fields{i}; my $path = $fields{n}; if ($path =~ m/\.dpkg-/ || $path =~ m/\(deleted\)/ || $path =~ /path inode=/ || $path =~ m#/\.nfs# || $fd eq 'DEL') { - my $deleted_in_path = ($path =~ m/\(deleted\)/); + my $deleted_in_path = ($path =~ m/\(deleted\)/ || $path =~ m/\.nfs/); next if ($deleted_in_path && $fd =~ /^[0-9]*$/); # Ignore deleted files that are open via normal file handles. $path =~ s/^\(deleted\)//; # in some cases "(deleted)" is at the beginning of the string diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 7b42604..16cadb7 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -1,9 +1,14 @@ dsa-nagios-checks (108+XXXX) UNRELEASED; urgency=medium + [ Peter Palfrader ] * dsa-check-dabackup: use old logfile if lockfile indicates da-backup still running. * dsa-check-soas: on soa disagreement, list nameservers. + [ Aurelien Jarno ] + * dsa-check-libs: also ignore files that are open via normal file handles + on NFS. + -- Peter Palfrader Thu, 06 Aug 2015 09:37:24 +0200 dsa-nagios-checks (108) unstable; urgency=medium