Disk Space Check

The Disk Space Check fails when the available free space on the specified disk drops below the defined Bytes, MBytes, Gbytes or Percent threshold figure.

Disk Space Check configuration examples:

  • Threshold: less than 25%. Disk Space Check fails when free space remaining falls below 25%
  • Threshold: less than 5 GB. Disk Space Check fails when free space remaining is less than 5 GB.

Check configuration

Add

  1. On the N-sight RMM Dashboard North-pane, select the device
  2. Go to the Checks tab
  3. Click Add Check
  4. Choose Add 247 > Disk Space Check
  5. Select the Disk from the drop-down and enter the Threshold value and unit of measurement: Bytes, MBytes, Gbytes or Percent

  6. To run an Automated Task when the Check fails choose Assign a Task after creating the Check
  7. OK to save and apply
  8. Where Assign a Task after creating the Check is selected:
    1. Select the script
    2. Click Next to configure
  9. Enter the Command Line parameters (if required)
  10. Set a Script timeout in the range 1 - 3600 seconds (default 120 seconds)
  11. Click Finish to save and apply

Edit

  1. On the N-sight RMM Dashboard North-pane, select the device
  2. Go to the Checks tab
  3. Select the target Disk Space Check
  4. From the Check drop-down
  5. Click Edit Check (also available from the Check's right-click menu)
  6. Configure the settings
  7. Click OK to save and apply

Delete

  1. On the N-sight RMM Dashboard North-pane, select the device
  2. Go to the Checks tab
  3. Select the target Disk Space Check
  4. From the Check drop-down
  5. Click Delete Check (also available from the Check's right-click menu)
  6. Enter the password you have logged into the Dashboard under to confirm removal
  7. Click OK to delete

Dashboard

Once uploaded to the Dashboard the More Information column containing the Total and Free space values reported by the Check, whilst clicking on this link opens the More Information... dialog.

This dialog includes the overall file system Capacity, the Used space and Free space values along with a graphical representation of this information; the Space percentage is displayed when hovering over the Free space or Used space portion of the graph.

win_disk_space

Monitoring templates

As the hard drive capacities may vary from machine to machine, we would suggest entering a specific threshold value rather than a percentage when adding a Disk Space Check to a monitoring template. For example you may wish to be alerted when the drive space falls below 10% on a 10 GByte drive but less concerned if it was 10% of a 1 TByte drive, but in general you would wish to know when the free space falls below 700 MBytes on any size drive.

Access Denied

An access denied message may be returned where the account the Agent service is running under does not have sufficient permissions to query the selected drive and to resolve this either change the Agent service account or change the permissions of the account the Agent service runs under to allow access to the drive.

Local Disks

Please be aware that only those logical drives identified by the computer as Local (DriveType 3) or Compact Disc (DriveType 5) are selectable in this Check. This Check does not support any other drive types included Network (DriveType 4) or Removable (DriveType 2).

The connected drives and their Windows assigned DriveType may be viewed on the device using Powershell:

  1. Log on to the target device
  2. Open the Run dialog (Windows button +R)
  3. Type: powershell then OK
  4. Type Get-WmiObject Win32_LogicalDisk
  5. Hit enter on your keyboard
  6. For each drive the DeviceID, DriveType along with additional information is returned

Example output fromGet-WmiObject Win32_LogicalDisk command

PS C:\Users\User101\Desktop> Get-WmiObject Win32_LogicalDisk

DeviceID     : C:

DriveType    : 3

ProviderName :

FreeSpace    : 40908886016

Size         : 241741852672

VolumeName   : OS

DeviceID     : H:

DriveType    : 2

ProviderName :

FreeSpace    :

Size         :

VolumeName   :

DeviceID     : Z:

DriveType    : 4

ProviderName : \\100.200.300.401\shares

FreeSpace    : 18536964096

Size         : 1798648623104

VolumeName   : Data

To format this information as a table: Get-WmiObject Win32_LogicalDisk | Format-Table -auto

To format this information as a table and output to a text file: Get-WmiObject Win32_LogicalDisk | Format-Table -auto | Out-File filename.txt -width 120

For additional details on this class, including the numeric value that corresponds to the logical disk (DriveType) please refer to the Microsoft article: Win32_LogicalDisk Class