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% :
For more examples, see Samples.