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.

    Watchdog_Disks

  2. Specify the hard drive partitions that should be monitored and specify monitoring preferences:
    1. Click an icon 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 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.

Important: 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.

    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:

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

    • disk_mon_status__notmonitored - you did not set Watchdog to monitor the disk space or partition.
    • Icon_Monitoring_enabled - 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.

 

Leave your feedback on this topic here

If you have questions or need support, please visit the Plesk forum or contact your hosting provider.
The comments below are for feedback on the documentation only. No timely answers or help will be provided.