From: Peter Palfrader Date: Fri, 25 Aug 2017 16:46:23 +0000 (+0200) Subject: dsa-update-unowned-file-status: ignore autofs and nfs4 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-nagios.git;a=commitdiff_plain;h=a8795924aea59f36f7e0ccf68ba0f96ab73170c3 dsa-update-unowned-file-status: ignore autofs and nfs4 --- diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 8b83fb2..146f451 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -3,6 +3,7 @@ dsa-nagios-checks (111) UNRELEASED; urgency=medium * Rename dsa-check_puppet_agent -> dsa-check-puppet_agent * dsa-check-dnssec-delegation: Net::DNS::RR::DNSKEY no longer has an is_sep() method. Update. + * dsa-update-unowned-file-status: ignore autofs and nfs4 -- Peter Palfrader Mon, 20 Mar 2017 09:46:50 +0100 diff --git a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status index 65034a9..89ac5f6 100755 --- a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status +++ b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status @@ -31,7 +31,7 @@ if command -v ionice >/dev/null 2>&1; then prefix="ionice -c 3 -t" # idle priority, ignore errors fi -$prefix find / -ignore_readdir_race \( -fstype proc -o -fstype sysfs -o -fstype fdescfs \) -prune -o \( -nouser -print \) | head -n "$CUTOFF" > "$tmp" +$prefix find / -ignore_readdir_race \( -fstype proc -o -fstype sysfs -o -fstype fdescfs -o -fstype autofs -o -fstype nfs4 \) -prune -o \( -nouser -print \) | head -n "$CUTOFF" > "$tmp" if [ -s "$tmp" ]; then echo "WARN"