列印多工緩衝處理器:檢查 Windows 資源

Microsoft.Windows.Server.10.0.PrintServer.PrintSpoolerService.PrintSpoolerStatus.System.CheckWindowsresources.EventBased.UnitMonitor (UnitMonitor)

檢查 Windows 資源。

Knowledge Base article:

摘要

Windows 列印無法為某項操作配置足夠的資源,或是正在處理升級。不需要立即採取任何動作。

設定

監視器採用單一設定參數,來控制啟用「Microsoft-Windows-PrintService/Admin 與 Microsoft-Windows-PrintService/Operational」事件記錄時是否應監視 “Print Spooler”,以及重新啟動事件記錄服務。根據預設,只會在「Microsoft-Windows-PrintService/Admin 與 Microsoft-Windows-PrintService/Operational」啟用時監視 “Print Spooler” 監視器。

解決方式

如果問題仍然發生,請判斷電腦的系統資源是否不足,例如 CPU 資源、磁碟 I/O 效能或記憶體。

若要找出造成系統資源不足的原因,您可以使用「可靠性和效能監視器」產生「系統診斷報告」,或是使用「資源監視器」判斷 (即時) 哪些應用程式或服務使用太多系統資源。

若要產生其中將提供收集 60 秒系統資訊的「系統診斷報告」,請使用下一小節 (「產生系統診斷報告」) 中的程序。若要使用資源監視器即時監視系統資源,請使用「啟動資源監視器」小節中的程序。

若要執行此程序,您必須有 Administrators 的成員資格,或者必須已被委派適當的權限。

產生系統診斷報告

若要收集系統資訊 60 秒並產生「系統診斷報告」:

啟動資源監視器

若要啟動資源監視器:

重要:資源監視器會在產生系統診斷報告時停止收集資訊。若要在「系統診斷報告」完成後開始收集資訊,請在監視器中按一下 [啟動]。

Element properties:

TargetMicrosoft.Windows.Server.10.0.PrintServerRole
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
列印多工緩衝處理器狀態警示依據:檢查 Windows 資源
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.10.0.PrintServer.PrintSpoolerService.PrintSpoolerStatus.System.CheckWindowsresources.EventBased.UnitMonitor" Accessibility="Public" Enabled="false" Target="Microsoft.Windows.Server.10.0.PrintServerRole" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.10.0.PrintServer.PrintSpoolerService.PrintSpoolerStatus.System.CheckWindowsresources.EventBased.UnitMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Negative" MonitorTypeStateID="FirstEventRaised" HealthState="Warning"/>
<OperationalState ID="Success" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>Microsoft-Windows-PrintService/Admin</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-PrintService</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(362|369)$</Pattern>
</RegExExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>Microsoft-Windows-PrintService/Operational</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-PrintService</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(312|313)$</Pattern>
</RegExExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>