File Count Availability

Windows.Monitoring.FileSystem.FileCount (UnitMonitor)

Counts the number of Files in a Folder.
Has a specific threshold for the number of Files in a Folder.
Applies to All Files in a Folder.
Monitor is disabled by default.

Knowledge Base article:

Summary

Monitor that Counts the number of Files in a Folder.

Applies to All Files in a Folder.

Configuration

Use overrides to enable the monitor for a Folder or all Folders. Use the Override to set the Number of Files in a Folder.

Causes

The Number of Files in a Folder has been exceeded.

Additional

The monitor is disabled by default.

Element properties:

TargetWindows.Monitoring.FileSystem.Folder
Parent MonitorWindows.Monitoring.FileSystem.AllFilesinaFolder
CategoryStateCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeWindows.Monitoring.FileSystem.FileCount.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
FileCount exceeded Treshold
FileCount exceeded Treshold
RunAsDefault

Source Code:

<UnitMonitor ID="Windows.Monitoring.FileSystem.FileCount" Accessibility="Public" Enabled="false" Target="Windows.Monitoring.FileSystem.Folder" ParentMonitorID="Windows.Monitoring.FileSystem.AllFilesinaFolder" Remotable="true" Priority="Normal" TypeID="Windows.Monitoring.FileSystem.FileCount.MonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Windows.Monitoring.FileSystem.FileCount_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Windows.Monitoring.FileSystem.Folder"]/Name$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateId1e82e3c75b6345069a8b1b1d9edee796" MonitorTypeStateID="FolderOk" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateIdb4a5879a49dc477d87d3c2e4724f7314" MonitorTypeStateID="FolderNotOk" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>3600</IntervalSeconds>
<StrFolder>"$Target/Property[Type="Windows.Monitoring.FileSystem.Folder"]/Path$"</StrFolder>
<File>2</File>
</Configuration>
</UnitMonitor>