Specifications
88 Chapter 7 Working with Disks and Volumes
The configuration file is /etc/diskspacemonitor/diskspacemonitor.conf. You can specify
how often you want to monitor disk space, and the thresholds to use for determining
when to take the actions in the scripts.
By default, disks are checked every 10 minutes, an alert script is executed when disks
are 75% full, and a recovery script is executed when disks are 85% full.
To edit the configuration file, log in to the server as an administrator and use a text
editor to open the file. For additional information, see the comments in the file.
By default, two predefined action scripts are executed when the thresholds are
reached.
The default alert script is /etc/diskspacemonitor/action/alert. It runs in accord with
instructions in the configuration file /etc/diskspacemonitor/alert.conf. It sends mail to
recipients you specify.
The default recovery script is /etc/diskspacemonitor/action/recover. It runs in accord
with instructions in the configuration file /etc/diskspacemonitor/recover.conf.
For more information, see the comments in the script and configuration files.
To provide your own alert and recovery scripts, put your alert script in
/etc/diskspacemonitor/action/alert.local and your recovery script in /etc/
diskspacemonitor/action/recovery.local. Your scripts are executed before the default
scripts when the thresholds are reached.
To configure the scripts on a server from a remote Mac OS X computer, open a Terminal
window and log in to the remote computer using SSH.
Reclaiming Disk Space Using Log-Rolling Scripts
The following scripts are executed to reclaim space used on your server:
 The script /etc/periodic/daily/600.daily.server runs daily. Its configuration file is
/etc/diskspacemonitor/daily.server.conf.
 The script /etc/periodic/weekly/600.weekly.server runs weekly, but is empty.
Its configuration file is /etc/diskspacemonitor/weekly.server.conf.
 The script /etc/periodic/monthly/600.monthly.server runs monthly, but is empty.
Its configuration file is /etc/diskspacemonitor/monthly.server.conf.