內容目錄磁碟空間

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

Knowledge Base article:

摘要

WSUS 更新內容的儲存需要足夠的磁碟空間。

解決方式

含有資料庫或更新內容的磁碟機可用空間用盡。

可能的解決方式包括:

使用 [磁碟清理] 移除不需要的檔案

使用 [伺服器清理精靈] 移除舊電腦、更新程式及更新檔案。 此精靈包含在 WSUS 系統管理主控台中。

使用 wsusutil.exe 將更新內容目錄移動到另一個磁碟機。此工具會更新伺服器,使其指向新內容路徑並選擇性移動內容。

WSUS SQL 資料庫移動至其他磁碟機。請參考 SQL Server 文件以取得卸離 SUSDB 資料庫以及重新附加資料庫的步驟。

其他

尋找對應的錯誤事件

Element properties:

TargetMicrosoft.Windows.Server.UpdateServices.2012.R2.Server
Parent MonitorMicrosoft.Windows.Server.UpdateServices.2012.R2.Server.CoreRollup
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.3SingleEventLog3StateUnitMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
內容目錄磁碟空間
可疑的內容目錄磁碟空間狀態
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.UpdateServices.2012.R2.Server.ContentDirectoryDiskSpaceState" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.UpdateServices.2012.R2.Server" ParentMonitorID="Microsoft.Windows.Server.UpdateServices.2012.R2.Server.CoreRollup" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.3SingleEventLog3StateUnitMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.UpdateServices.2012.R2.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>