托管数据库的驱动器上的可用磁盘空间监视器

Microsoft.Windows.Server.LDS.Service.DatabaseAndLogSize.DatabaseDriveSpace.Monitor (UnitMonitor)

此监视器检查 AD LDS 实例的数据库所在驱动器上的可用磁盘空间。

Element properties:

TargetMicrosoft.Windows.Server.LDS.Service
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.LDS.Service.DatabaseAndLogSize.DriveSpace.MonitorType
RemotableFalse
AccessibilityPublic
Alert Message
托管 AD LDS 数据库的驱动器可用磁盘空间不足
托管 AD LDS 数据库文件的驱动器超过了配置的“可用磁盘空间不足”警报阈值。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.LDS.Service.DatabaseAndLogSize.DatabaseDriveSpace.Monitor" Accessibility="Public" Enabled="true" Target="LDS!Microsoft.Windows.Server.LDS.Service" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="false" Priority="Normal" TypeID="Microsoft.Windows.Server.LDS.Service.DatabaseAndLogSize.DriveSpace.MonitorType" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.LDS.Service.DatabaseAndLogSize.DatabaseDriveSpace.Monitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="DatabaseDriveSpaceOK" MonitorTypeStateID="DriveSpaceOK" HealthState="Success"/>
<OperationalState ID="DatabaseDriveSpaceWarning" MonitorTypeStateID="DriveSpaceWarning" HealthState="Warning"/>
<OperationalState ID="DatabaseDriveSpaceError" MonitorTypeStateID="DriveSpaceError" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>120</TimeoutSeconds>
<DatabaseFile>$Target/Property[Type="LDS!Microsoft.Windows.Server.LDS.Service"]/DatabaseFile$</DatabaseFile>
<DatabaseLogPath>$Target/Property[Type="LDS!Microsoft.Windows.Server.LDS.Service"]/DatabaseLogPath$</DatabaseLogPath>
<LogSuccessEvent>false</LogSuccessEvent>
<WarningThreshold>8000000</WarningThreshold>
<ErrorThreshold>2000000</ErrorThreshold>
<CounterName>Database Drive Free Space</CounterName>
</Configuration>
</UnitMonitor>