DFS-R:参数有效性

Microsoft.Windows.FileServer.DFSR.InvalidConfigParameterMonitor (UnitMonitor)

此对象可监视 Active Directory 域服务 (AD DS) 和本地数据库中的 DFS 复制配置,如果它检测到无效的配置参数,将会创建“严重”警报。

Knowledge Base article:

摘要

此对象可监视 Active Directory 域服务 (AD DS) 和本地数据库中的 DFS 复制配置,如果它检测到无效的配置参数,将会创建“严重”警报。通过查找是否存在 DFS 复制事件 6008 来实现。

原因

此监视器的不正常状态表示由于配置(AD DS 或本地配置)中存在不正确的字符串或参数,DFS 复制禁用了受影响的对象。

解决方案

等待使用 AD DS 复制配置更改

DFS 复制将重试此操作,通常会在通过 AD DS 进行配置更改复制后自动解决此问题。

若要立即轮询配置更改,请打开命令提示符窗口,然后为复制组中的每位成员分别键入一次以下命令,其中 [domain] 是服务器所在的域,而 [server] 是服务器名称:

Dfsrdiag PollAD /Member:[domain\server]

如果此问题仍然存在,请验证 AD DS 复制是否正常运行以及此服务是否能够访问域控制器。如果此问题持续存在 8 小时,则 DFS Replication 服务将禁用连接并记录 DFS 复制事件 5016。

重新创建配置

如果该问题没有自行解决,请删除引发错误的配置并重新创建配置。要执行此操作,请检查警报或 DFS 复制事件 6008 以确定受影响的对象,然后使用 DFS 复制或 dfsradmin 命令来删除并重新创建该对象。

注意:要更改 DFS 复制配置,您必须是已配置复制组的域中的 Domain Admins 组成员、复制组的创建者或已被委派了相应权限。

验证

此监视器将在问题解决后自动重置为正常状态。

其他

DFS 复制事件 6008 (http://go.microsoft.com/fwlink/?LinkId=187154)

Element properties:

TargetMicrosoft.Windows.FileServer.DFSR.Service
Parent MonitorSystem.Health.ConfigurationState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
DFS-R:在配置中检测到错误的参数
DFS 复制检测到无效的配置参数。DFS 复制无法从此错误中恢复,并且在该参数得到修复之前,将禁用有问题的对象。
其他信息:对象名称:{0} 对象类型:{1} 对象 GUID:{2} 参数名称:{3} 错误:{4} 源域控制器: {5}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServer.DFSR.InvalidConfigParameterMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSR.Service" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.FileServer.DFSR.InvalidConfigParameterMonitor_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Params/Param[1]$</AlertParameter1>
<AlertParameter2>$Data/Context/Params/Param[5]$</AlertParameter2>
<AlertParameter3>$Data/Context/Params/Param[2]$</AlertParameter3>
<AlertParameter4>$Data/Context/Params/Param[3]$</AlertParameter4>
<AlertParameter5>$Data/Context/Params/Param[4]$</AlertParameter5>
<AlertParameter6>$Data/Context/Params/Param[6]$</AlertParameter6>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>DFS Replication</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">6008</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DFSR</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>DFS Replication</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DFSR</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">6608</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">6604</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">6014</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1004</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1104</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>