[Nagiosplug-help] Directory Size
Andreas Ericsson
ae at op5.se
Tue Oct 26 00:54:02 CEST 2004
barry.maclean wrote:
> I'm looking for a script that I can monitor the size of a directory.
>
Are you looking for the number of attached inodes or just size in bytes?
Each directory on an ext3 filesystem can contain a maximum of 32768
files. For the size in bytes you should go with the du option.
du -bsh should give you decent output even on mounted filesystems. Be
warned though that the info is usually cached if you run the check too
often, and will most likely take quite a while to run on large directories.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
More information about the Help
mailing list