Apple Mac OS X Server Network Card User Manual


 
86 Chapter 7 Working with Disks and Volumes
When enabled, diskspacemonitor uses information in a configuration file to determine
when to execute alert and recovery scripts for reclaiming disk space:
 The configuration file is /etc/diskspacemonitor/diskspacemonitor.conf. It lets you
specify how often you want to monitor disk space, and specify 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. See the comments in
the file for additional information.
 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 email
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.
See the comments in the script and configuration files for more information about
these files.
 If you want 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 will be 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
Three predefined scripts are executed automatically, in order to reclaim space used on
your server for log files generated by:
 Apple file service
 Windows service
 Web service
 Web performance cache
 Mail service
 Print service