Monitor Inetpub Directory Size
Overview
Monitors the Inetpub directory size on IIS servers and generates an alert if it exceeds the specified threshold. If no threshold is provided, the default threshold is set to 20 GB.
Implementation
-
Download the component Monitor Inetpub Directory Size from the attachments.
-
After downloading the attached file, click on the
Importbutton -
Select the component just downloaded and add it to the Datto RMM interface.

Sample Run
To implement the component over a policy, follow these steps:
-
Under the
Policies> Monitoringsection, click on create policy.-
State the name of the policy
xPVAL - Monitor Inetpub directory size -
Provide the description.
-
State the Scope of the policy.

-
Within the Monitors section, click on
Add Monitor.
-
Under the
Monitor Type, click onSelectand then select theComponentoption.
.
-
Inorder to configure your
componentvia alerting, follow the below steps:- Click on
Select a Component Monitorand then select the componentMonitor Inetpub Directory Sizefrom the search bar. - Set the
ThresholdValue as per requirement. Leave it blank to set threshold to 20GB. - Set the interval to
execute the component monitor. - Select the
priority to raise an alert. - Select the time to
auto resolve the alert. - Select
Create TicketOption. - Set Subject line to
Inetpub directory size threshold exceeded

- Click on
Add Monitor.
- Click on
-
-
Click on
Add Targetto provide the targeted machines. -
Select
IIS Webserversfrom the Device Filters.
-
Click on
Save and Deploy Nowto save the policy.
Datto Variables
| Variable Name | Type | Default | Description |
|---|---|---|---|
| Threshold | String | 20 | Enter the directory size threshold in GB. The script will generate an error if the directory size exceeds the specified threshold. The default value is 20 GB. For example, enter 15 to set the monitoring threshold to 15 GB. |
Output
- stdOut
- stdError
Attachments
Monitor Inetpub Directory Size
Changelog
2026-10-20
- Added a custom variable to the script to configure the threshold.
2026-10-15
- Initial version of the document