Setting Up and Starting Monitoring of Disk Space Usage

To configure and start monitoring disk space usage:

  1. Go to Extensions > Watchdog > the Disks tab.

    All connected (mounted) devices will be listed.

    An icon in the S (status) column shows whether a hard disk partition or storage device is currently monitored by Watchdog and it indicates the current disk space usage rate:

    • - the disk drive or partition is not currently monitored.
    • - you started monitoring but the disk or partition has not yet been checked.
    • - the disk drive or partition is monitored and Watchdog reports that disk space usage has not reached the threshold you defined.
    • - the disk drive or partition is monitored and Watchdog reports that disk space usage has reached the threshold you defined and soon there will be no free space left on that disk or partition.

    An icon in the M (monitoring) column shows whether you set Watchdog to monitor disk space usage on a storage device or disk partition:

    • - you did not set Watchdog to monitor the disk space or partition.
    • - you set Watchdog to monitor the disk space or partition.

    The Device and Mount point columns show information on storage device and the partition mount point. The Mount point column shows hyphen (-) if a partition is no longer connected to the file system: when the partition is reconnected to the system, Watchdog will resume monitoring it.

    The Disk space usage rate column shows the amount of disk space that can be used without drawing your attention. You can specify the amount of disk space either in percentage from total amount or in measurement units: gigabytes, megabytes or kilobytes. When the specified amount is reached, Watchdog will notify you and run the command you defined. A hyphen (-) in this column shows that the partition or device is not monitored.

    The Files number rate column shows the amount of files or directories that can be stored on the file system without drawing your attention. The number of files or directories is limited not only by disk space, but also by the file system capacity. You can specify either the exact number of files and directories (if you know it) or a percent from the total amount. Watchdog will notify you when the specified amount is reached. A hyphen (-) in this column shows that the partition or device is not monitored.

    The Command column shows the command that Watchdog will run when the disk space threshold is reached.

  2. Specify the hard drive partitions that should be monitored and specify monitoring preferences:
    1. Click a partition or device name.
    2. Specify the amount of disk space that can be used without drawing your attention. When this threshold is reached, Watchdog will send you an alert and run the command you specified. We would recommend leaving the 80 % value selected.
    3. Specify the number of files and directories that can be created on the server without drawing your attention. When this threshold is reached, Watchdog will send you an alert. We would recommend leaving the 80 % value selected. You can specify the exact number of files, if you know the total capacity of your file system: to find it out, log in as root to the server and run the command dumpe2fs <device name> from shell.
    4. Specify the command that Watchdog will run when the specified disk space threshold is reached. This can be a command to run a disk space cleaning utility like a tmpwatch on RedHat Linux systems.
    5. Click OK.
    6. Repeat the procedure to configure monitoring for all the partitions you need.
  3. Once you have specified all partitions you would like Watchdog to monitor, click the Enable icon in the Tools group.

To stop monitoring a specific partition:

  1. Go to Extensions > Watchdog > the Disks tab.
  2. Click an icon corresponding to the partition you would like Watchdog to stop monitoring.

To stop monitoring all partitions:

  1. Go to Extensions > Watchdog > the Disks tab.
  2. Click the Disable icon in the Tools group.

Important: Performing this action affects the whole monitoring service, meaning that not only all disk partitions, but all system services will stop being monitored.