Content Directory Disk Space

Microsoft.Windows.Server.UpdateServices.2012.Server.ContentDirectoryDiskSpaceState (UnitMonitor)

Knowledge Base article:

Summary

WSUS update content storage needs adequate disk space.

Resolutions

The drive containing the database or update content is running out of free disk space.

Possible resolutions include:

Use Disk Cleanup to remove files you do not need

Use the Server Cleanup Wizard to remove old computers, updates, and update files. This wizard is part of the WSUS administration console.

Use wsusutil.exe to move the update content directory to another drive. The tool will update the server to point to the new content path and optionally move the content.

Move the WSUS SQL database to another drive. Consult your SQL Server documentation for steps to detach the SUSDB database and reattach the database.

Additional

Look for the corresponding error event

Element properties:

TargetMicrosoft.Windows.Server.UpdateServices.2012.Server
Parent MonitorMicrosoft.Windows.Server.UpdateServices.2012.Server.CoreRollup
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.3SingleEventLog3StateUnitMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Content Directory Disk Space
Suspicious content directory disk Space state
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.UpdateServices.2012.Server.ContentDirectoryDiskSpaceState" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.UpdateServices.2012.Server" ParentMonitorID="Microsoft.Windows.Server.UpdateServices.2012.Server.CoreRollup" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.3SingleEventLog3StateUnitMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.UpdateServices.2012.Server.ContentDirectoryDiskSpaceState.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="DiskSpaceError" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="DiskSpaceWarn" MonitorTypeStateID="SecondEventRaised" HealthState="Warning"/>
<OperationalState ID="DiskSpaceOK" MonitorTypeStateID="ThirdEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>Application</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Windows Server Update Services</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>10042</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>Application</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Windows Server Update Services</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>10041</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</SecondExpression>
<ThirdComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ThirdComputerName>
<ThirdLogName>Application</ThirdLogName>
<ThirdExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Windows Server Update Services</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(10040|501|10000)$</Pattern>
</RegExExpression>
</Expression>
</And>
</ThirdExpression>
</Configuration>
</UnitMonitor>