PIKT

Samples: Disk Capacity Limits

PIKT Logo
Home FAQ News Intro Samples Tutorial Reference Software Authors Licensing SiteSearch


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 DiskCapEmergency 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% :

[For more examples, see Samples.]

Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software | Authors | Licensing | SiteSearch
Links | SiteIndex | Pikt-Users | Pikt-Workers | Contribute | ContactUs | Top of Page
Page best viewed at 1024x768.   Page last updated 2005-06-22.
This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.
Copyright © 1998-2005 Robert Osterlund.  All rights reserved.

Computer Books at Amazon.com

Performance Tuning for Linux Servers
Performance Tuning for Linux Servers

Red Hat Enterprise Linux 4 For Dummies
Red Hat Enterprise Linux 4 For Dummies