From d32b720d7732f8f698f6e9fb7d4cf46d7f9bdc81 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Fri, 10 Feb 2012 22:37:53 +0100 Subject: [PATCH] Limit the number of unowned files we register in the state file to 40. --- dsa-nagios-checks/debian/changelog | 1 + dsa-nagios-checks/sbin/dsa-update-unowned-file-status | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index a0b2a95..f8df9f7 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -11,6 +11,7 @@ dsa-nagios-checks (9X) Xnstable; urgency=low [ Tollef Fog Heen ] * Make the unowned files check skip /proc. + * Limit the number of unowned files we register in the state file to 40. -- Peter Palfrader Wed, 08 Feb 2012 15:36:05 +0100 diff --git a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status index 9220888..57f47f7 100755 --- a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status +++ b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status @@ -17,4 +17,4 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA -find / -path /proc -prune -o -nouser > /var/cache/dsa/nagios/nouser +find / -path /proc -prune -o -nouser | head -n 40 > /var/cache/dsa/nagios/nouser -- 2.20.1