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
- On the All Devices view North-pane, select the device.
- Go to the Checks tab.
- Click Add Check.
- Choose Add 247 > Disk Space Check.
- Select the Disk from the drop-down and enter the Threshold value and unit of measurement: Bytes, MBytes, Gbytes or Percent.
- To run an Automated Task when the Check fails choose Assign a Task after creating the Check
- Select OK to save and apply.
- If you selected Assign a Task after creating the Check:
- Select the Automated Task script and select Next to configure.
- Enter any required Command Line parameters or Script parameters and select Next.
- Set maximum permitted execution time for the script (optional).
- Select Finish to save and apply.
Edit
- On the All Devices view North-pane, select the device.
- Go to the Checks tab.
- Right-click the target Drive Space Check and select Edit Check.
- Configure the settings.
- Click OK to save and apply.
Delete
- On the All Devices view North-pane, select the device.
- Go to the Checks tab.
- Right-click the target Drive Space Check and select Delete Check.
- Enter the password you used to sign into N-sight RMM to confirm removal.
- 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.
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:
- Log on to the target device
- Open the Run dialog (Windows button +R)
- Type: powershell then OK
- Type Get-WmiObject Win32_LogicalDisk
- Hit enter on your keyboard
- 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