Limit the number of unowned files we register in the state file to 40.
authorTollef Fog Heen <tfheen@err.no>
Fri, 10 Feb 2012 21:37:53 +0000 (22:37 +0100)
committerTollef Fog Heen <tfheen@err.no>
Fri, 10 Feb 2012 21:37:53 +0000 (22:37 +0100)
dsa-nagios-checks/debian/changelog
dsa-nagios-checks/sbin/dsa-update-unowned-file-status

index a0b2a95..f8df9f7 100644 (file)
@@ -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 <weasel@debian.org>  Wed, 08 Feb 2012 15:36:05 +0100
 
index 9220888..57f47f7 100755 (executable)
@@ -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