Monitor to detect event 4231 - Database Schema Exception
TFS Event 4231 occurred. This event is raised to indicate an error with the database schema: an upgrade is in progress, the schema is empty, or the schema versions have a mismatch.
Check if any pending upgrades are in process or if any manual changes have been made to the database. If changes were made, restore the database to before the changes were made.
Target | TeamFoundationServer2017.TfsAppComponentBase | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | SecurityHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | TeamFoundationServer2017.TfsSingleEventLogUnitMonitor | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="TeamFoundationServer2017.TfsEvent4231Monitor" Accessibility="Public" Enabled="true" Target="TeamFoundationServer2017.TfsAppComponentBase" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="TeamFoundationServer2017.TfsSingleEventLogUnitMonitor" ConfirmDelivery="true">
<Category>SecurityHealth</Category>
<AlertSettings AlertMessage="TeamFoundationServer2017.TfsEvent4231MonitorAlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="EventRaised" MonitorTypeStateID="EventRaised" HealthState="Error"/>
<OperationalState ID="TimerEventRaised" MonitorTypeStateID="TimerEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<EventDisplayNumber>4231</EventDisplayNumber>
<TimerWaitInSeconds>86400</TimerWaitInSeconds>
</Configuration>
</UnitMonitor>