Skype for Business Server 2015, Persistent Chat Compliance compliance logging

Microsoft.LS.2015.Monitoring.UnitMonitor.PairedEvent.PersistentChatCompliance.GC_COMPLIANCE_MGCCOMP_DATABASE_CONNECTION_LOST (UnitMonitor)

Knowledge Base article:

Summary

The Persistent Chat compliance database connection was lost.

Causes

An unexpected error occurred that caused the loss of the Persistent Chat Compliance database connection.

Resolutions

Check the state of the mgccomp database.

Element properties:

TargetMicrosoft.LS.2015.Component.PersistentChatCompliance
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.LS.2015.MonitorType.PairedEvent.Simple
RemotableTrue
AccessibilityPublic
Alert Message
[Skype] The Persistent Chat compliance database connection was lost.
{0}

Please see the 'Product Knowledge' and the 'Alert Context' tab on Alert Properties view for more information.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.LS.2015.Monitoring.UnitMonitor.PairedEvent.PersistentChatCompliance.GC_COMPLIANCE_MGCCOMP_DATABASE_CONNECTION_LOST" Accessibility="Public" Enabled="true" Target="Microsoft.LS.2015.Component.PersistentChatCompliance" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.LS.2015.MonitorType.PairedEvent.Simple" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Alert_The_Persistent_Chat_compliance_database_connection_was_lost.">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Microsoft.LS.2015.Monitoring.UnitMonitor.PairedEvent.PersistentChatCompliance.GC_COMPLIANCE_MGCCOMP_DATABASE_CONNECTION_LOST.Success" MonitorTypeStateID="SuccessEventRaised" HealthState="Success"/>
<OperationalState ID="Microsoft.LS.2015.Monitoring.UnitMonitor.PairedEvent.PersistentChatCompliance.GC_COMPLIANCE_MGCCOMP_DATABASE_CONNECTION_LOST.Error" MonitorTypeStateID="ErrorEventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Lync Server</LogName>
<SuccessExpression>
<Or>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">53120</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">LS Persistent Chat Compliance Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">53102</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">LS Persistent Chat Compliance Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Or>
</SuccessExpression>
<ErrorExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">53119</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">LS Persistent Chat Compliance Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</ErrorExpression>
</Configuration>
</UnitMonitor>