Monitoring Disk Usage

Start or Stop Monitoring

To configure and start monitoring disk space usage:

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

    All connected (mounted) devices will be listed.

    image-Watchdog-Disks

  2. Specify the hard drive partitions that should be monitored and specify monitoring preferences:

    1. Click an icon image-disk-mon-status-notmonitored near the partition you would like Watchdog to monitor.
    2. Click a partition or device name.
    3. In the Disk space usage threshold field, 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. You can specify the amount of disk space either in percentage from total amount or in measurement units: gigabytes, megabytes or kilobytes. We would recommend leaving the 80 % value selected.
    4. In the Files number threshold field, 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. You can specify a percent from the total amount or an 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. We would recommend leaving the 80 % value selected.
    5. 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.
    6. Click OK.
    7. 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 image-Icon-Monitoring-enabled 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.

Note

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

View Disks Status

To view the status of hard disk drives and other connected storage devices:

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

    image-Watchdog-Disks-monitored

  2. View all connected (mounted) devices listed.

    Note

    Watchdog might not detect properly some mounted devices.

    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:

    • image-18426 - the disk drive or partition is not currently monitored.
    • image-disk-status-init - you started monitoring but the disk or partition has not yet been checked.
    • image-disk-status-normal - the disk drive or partition is monitored and Watchdog reports that disk space usage has not reached the threshold you defined.
    • image-disk-status-excess - 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:

    • image-disk-mon-status-notmonitored-0 - you did not set Watchdog to monitor the disk space or partition.
    • image-Icon-Monitoring-enabled-1 - 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 threshold column shows the amount of disk space that can be used without drawing your attention. 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 threshold 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. 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.