This monitor watches for various events logged by TFS Object Model and sets the health state of TFS Collection instance based on these events.
The TFS Object Model logs various events to the Windows event log to signal connectivity issues with TFS. This monitor watches for these events and sets the health state of TFS Collection instance based on these events.
The monitor will automatically reset the health state to Healthy when connectivity to TFS is restored. You can see the monitor health history to analyze past connectivity issues.
This monitor controls the health state of TFS Collection instance and generates alerts related to TFS connectivity, when new TFS work items are created:
1101 "TFS Object Model is not installed on the server"
1102 "Team Foundation services are not available from server (url)"
1104 "TF30063: You are not authorized to access <server>"
TF26193: The team project does not exist. Check the team project name and try again.
Any other TFS errors or module failures that have "TF[N]", where "N" stands for the TFS Object Model error code.
The "TFS collection was not found" alert might occur when the template was manually deleted. The Operations Manager administrator needs to delete "System Center TFS Work Item Synchronization Management Pack" using the Operations Manager console.
If you see "TFS Object Model is not installed on the server", you need to install TFS Object Model on all servers in the selected machine pool. For more information, see TFS Object Model download page.
If you see "Cannot access "TFS server", verify that your TFS server is running and accessible from all servers in the machine pool that are selected in the template.
If you see "TFS projects access denied" or any other TFS security error, the account specified in the template does not have sufficient rights to access the TFS project. Grant the account user the required TFS permissions to view projects and create/modify work items.
The "TFS collection was not found" alert might occur when the template was manually deleted. The Operations Manager administrator needs to delete "TFS Work Item Synchronization Management Pack" using the Operations Manager console
Target | Microsoft.SystemCenter.TfsWISync.TfsServer | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | Custom | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.2SingleEventLog2StateMonitorType | ||
Remotable | True | ||
Accessibility | Internal | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.SystemCenter.TfsWISync.TfsServer.Creation.Monitor" Accessibility="Internal" Enabled="true" Target="Microsoft.SystemCenter.TfsWISync.TfsServer" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.TfsWISync.TfsServer.Creation.Monitor_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data[Default='']/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Error" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="Success" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>.</FirstComputerName>
<FirstLogName>Operations Manager</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[6]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">TFS WI Synchronization</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Health Service Modules Ex</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>1101|1102|1104</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[7]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="Microsoft.SystemCenter.TfsWISync.TfsServer"]/Url$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>.</SecondComputerName>
<SecondLogName>Operations Manager</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[6]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">TFS WI Synchronization</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Health Service Modules Ex</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1103</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>