From: Tollef Fog Heen Date: Fri, 10 Feb 2012 21:37:53 +0000 (+0100) Subject: Limit the number of unowned files we register in the state file to 40. X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=d32b720d7732f8f698f6e9fb7d4cf46d7f9bdc81;p=mirror%2Fdsa-nagios.git Limit the number of unowned files we register in the state file to 40. --- 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