Windows Azure 套件工作執行失敗監視器 TenantAPI

WindowsAzurePack.Monitor.JobExecutionFailed.TenantAPI (UnitMonitor)

錯誤,工作失敗。

Knowledge Base article:

摘要

執行定期維護工作時發生監視器錯誤。做法是定期檢查事件記錄檔中是否有此事件。

原因

如果這個監視器處於錯誤狀態,則 SQL Server 或對應的資料庫無法供報告此錯誤的網站存取。或其中有設定錯誤。

解決方式

檢查 SQL Server 及目標 db 是否可供呼叫網站存取。如需正確的設定步驟,請視需要使用《Windows Azure 套件設定指南》。

組態

這個監視器若要正常運作,它必須有權讀取事件記錄檔。

選項

定義

預設值

狀態警示

產生警示之監視器的健全狀況狀態。

監視器的健全狀況狀態處於嚴重狀態

警示優先順序

針對這個監視器產生之警示的優先順序。

警示嚴重性

針對這個監視器產生之警示的優先順序。

重大

自動解決警示

指定當監視器回到狀況良好的狀態時是否應自動解決警示。

True

啟用

指定是否應執行監視器。

True

產生警示

指定從警告狀態變成嚴重狀態時,監視器是否應產生警示。

True

間隔

監視器執行次數之間的分鐘數。

180

Element properties:

TargetWindowsAzurePack.TenantAPI
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeWindowsAzurePack.MonitorType.CustomSingleEventLogTimer2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
錯誤: Windows Azure 套件工作執行失敗警示
錯誤: 工作失敗。如需詳細資訊,請參閱事件記錄檔事件描述。
RunAsDefault
CommentWAP Monitor Event for Machine

Source Code:

<UnitMonitor ID="WindowsAzurePack.Monitor.JobExecutionFailed.TenantAPI" Accessibility="Public" Enabled="true" Target="WindowsAzurePack.TenantAPI" 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.JobExecutionFailed.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ErrorEventRaised" MonitorTypeStateID="EventRaised" HealthState="Error"/>
<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-TenantAPI/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">262</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-TenantAPI</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
<TimerWaitInSeconds>10800</TimerWaitInSeconds>
</Configuration>
</UnitMonitor>