Disk Capacity Limits

This DiskCaps.obj example sets disk capacity limits, which when exceeded might trigger alert messages, and possibly also automatic disk cleanups.  The DiskCaps.obj file is referenced by the DiskCap script, and sources from the example diskcaps_objects.cfg file.

/                 : 100% :  95% :  90% :  75% : 999% :
                    /bin/mv /core /tmp 2>/dev/null
/var              : 100% :  95% :  90% :  75% : 999% :
                  /usr/bin/find /var/tmp -mtime +1 -exec /bin/rm {} \; 2>/dev/null
/usr              : 999% : 999% : 100% :  95% : 999% :
                  /usr/bin/find /usr/tmp -mtime +1 -exec /bin/rm {} \; 2>/dev/null
/home             : 100% :  95% :  90% :  75% : 999% : 
/var/spool/mail   : 999% : 100% :  95% :  90% :  75% : 
DEFAULT           : 999% : 999% : 999% : 100% :  90% :

Open Hand For more examples, see Samples.

 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2008-03-27.   This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.   Copyright © 1998-2008 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
full disks
Pikt script