From 6fc39a31b3b783ed569c2fc7af8e2f03f81ae20b Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 29 Nov 2015 04:51:19 +0100 Subject: [PATCH] dsa-update-unowned-file-status: ignore fdescfs, used for /dev/fd on FreeBSD. --- dsa-nagios-checks/debian/changelog | 4 ++++ dsa-nagios-checks/sbin/dsa-update-unowned-file-status | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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" -- 2.20.1