From: Tollef Fog Heen Date: Sun, 29 Nov 2015 03:51:19 +0000 (+0100) Subject: dsa-update-unowned-file-status: ignore fdescfs, used for /dev/fd on FreeBSD. X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=6fc39a31b3b783ed569c2fc7af8e2f03f81ae20b;p=mirror%2Fdsa-nagios.git dsa-update-unowned-file-status: ignore fdescfs, used for /dev/fd on FreeBSD. --- diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 3c00a3f..5f13718 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -13,6 +13,10 @@ dsa-nagios-checks (108+XXXX) UNRELEASED; urgency=medium * dsa-check-libs: accept -v as short for --verbose. * dsa-check-libs: ignore deleted CWDs. + [ Tollef Fog Heen ] + * dsa-update-unowned-file-status: ignore fdescfs, used for /dev/fd on + FreeBSD. + -- Peter Palfrader Fri, 11 Sep 2015 10:21:15 +0200 dsa-nagios-checks (108) unstable; urgency=medium diff --git a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status index 1caaaeb..e3caea2 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 \) -prune -o -nouser | head -n "$CUTOFF" > "$tmp" +$prefix find / -ignore_readdir_race \( -fstype proc -o -fstype sysfs -o -fstype fdescfs \) -prune -o -nouser | head -n "$CUTOFF" > "$tmp" if [ -s "$tmp" ]; then echo "WARN"