服务器服务配置运行状况

Microsoft.Windows.Server.2008.OperatingSystem.ServerServiceConfiguration (UnitMonitor)

Knowledge Base article:

摘要

每当服务尝试以无效的配置启动时,此规则都将生成警报。 在这种情况下,警报具有警告级别的严重性,表示当服务的配置被检测为无效时,服务仍然能够成功启动。 但是,服务可能不会在所需配置下运行。

原因

当注册表中的服务配置参数无效时,将出现此警报。 由于以下原因,可能出现无效配置:

解决方法

解决此警报的第一步是确定它由何种服务生成。

若要确定服务名称,请参阅警报描述。 此描述包含以下信息: 服务器注册表项 %2 中名为 %1 的值无效并被忽略。

以上所列事件的 %1 和 %2 参数将包含在实际警报描述中。 第二个参数 (%2) 的第一部分是服务名称。

一旦确定了服务名称,即可通过第一个参数 (%1) 确定错误配置的参数。

获知服务和参数名称后,支持工程人员应尝试确定是否能够通过应用程序提供的用户界面来修改服务配置参数。 如果可以,这是修复配置的最好方法。 在某些情况下,配置必须先更改为备用的配置,然后更新为所需的配置,方可配置正确的设置。

如果未提供用户界面,支持工程人员可以选择直接修改相关参数。 这需在以下注册表位置处执行,并要求精通参数配置选项。

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\%ServiceName\Parameters\%Parameter Name%

如果这些选项无助于解决问题,应联系应用程序供应商寻求支持。

Element properties:

TargetMicrosoft.Windows.Server.2008.OperatingSystem
Parent MonitorSystem.Health.ConfigurationState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.SingleEventLogManualReset2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
服务器服务配置错误
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.2008.OperatingSystem.ServerServiceConfiguration" Accessibility="Public" Enabled="true" Target="Server2008!Microsoft.Windows.Server.2008.OperatingSystem" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.SingleEventLogManualReset2StateMonitorType" ConfirmDelivery="false">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.2008.OperatingSystem.ServerServiceConfiguration.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ManualReset" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
<OperationalState ID="ConfigError" MonitorTypeStateID="EventRaised" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventSourceName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>2506</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>