Windows Azure Pack Site Unknown Error Monitor UsageCollector

WindowsAzurePack.Monitor.Error.UsageCollector (UnitMonitor)

Unknown error occurred in Site. This monitor is timed reset, you can overwrite the TimerWaitInSeconds parameter in the OM Console Override Properties dialog.

Knowledge Base article:

Summary

Checks for the occurrence of error Event 12.

Causes

Whenever the monitor is in Warning or Error state then an attempt to execute a request by the reporting WAP component failed or a worker job tried to execute and failed (job examples: Subscription creation, Plan updates, etc.). See the following conditions to decide if further investigation is required:

If the system is working correctly and the monitor is in Warning or Error then a transient network issue may have cause the event. No need to act on it.

If monitor is in Warning or Error and another alert has been reported then make note of the affected machine and component, open the Windows Event Log in that machine and look for the event log for the component: applications -> Microsoft -> Windows Azure Pack -> MgmtSvc-[component] -> Operational.

Some potential root causes include:

Windows Azure Pack Databases not available

Network failure

Access account credentials (or certificates) expired or account permissions were changed

Hardware failure

Power failure

Resolution

If Event 12 Alert (Unknown Exception) occurs in conjunction with other Error alerts, find the Event(s) in the affected server(s). The description will provide information as to what failed, this information in conjunction with any other error may provide the clues to the root cause of the problem. Once the issue has been resolved, you can manually close the alert or wait for 30 minutes when the alert will be reset automatically.

Configuration

For this monitor to work correctly, it must have permission to access the Event Log.

Element properties:

TargetWindowsAzurePack.UsageCollector
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeWindowsAzurePack.MonitorType.CustomSingleEventLogTimer2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Error: Windows Azure Pack Unknown Error Alert
Error: unknown error in Site. Refer to the Event Log event description for more information
RunAsDefault
CommentWAP Monitor Event for Machine

Source Code:

<UnitMonitor ID="WindowsAzurePack.Monitor.Error.UsageCollector" Accessibility="Public" Enabled="true" Target="WindowsAzurePack.UsageCollector" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="WindowsAzurePack.MonitorType.CustomSingleEventLogTimer2StateMonitorType" ConfirmDelivery="false" Comment="WAP Monitor Event for Machine">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="WindowsAzurePack.Monitor.Error.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ErrorEventRaised" MonitorTypeStateID="EventRaised" HealthState="Warning"/>
<OperationalState ID="TimerEventRaised" MonitorTypeStateID="TimerEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<!-- Computer name for the first event. We will use a variable to get the target computer name. -->
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<!-- Name of the log containing the first event. -->
<LogName>Microsoft-WindowsAzurePack-MgmtSvc-Usage/Operational</LogName>
<!-- Expression for the first event -->
<Expression>
<And>
<!-- Expression for the first event number -->
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">12</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<!-- Expression for the first event source -->
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-WindowsAzurePack-MgmtSvc-Usage</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
<TimerWaitInSeconds>3600</TimerWaitInSeconds>
</Configuration>
</UnitMonitor>