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 All Devices view 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. Select OK to save and apply.
  8. If you selected Assign a Task after creating the Check:
    1. Select the Automated Task script and select Next to configure.
    2. Enter any required Command Line parameters or Script parameters and select Next.
    3. Set maximum permitted execution time for the script (optional).
    4. Select Finish to save and apply.

Edit

  1. On the All Devices view North-pane, select the device.
  2. Go to the Checks tab.
  3. Right-click the target Drive Space Check and select Edit Check.
  4. Configure the settings.
  5. Click OK to save and apply.

Delete

  1. On the All Devices view North-pane, select the device.
  2. Go to the Checks tab.
  3. Right-click the target Drive Space Check and select Delete Check.
  4. Enter the password you used to sign into N-sight RMM to confirm removal.
  5. Click OK to delete.

More information

Once uploaded to the N-sight RMM user interface, 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