TMG Server 無法初始化記錄檔佇列

Microsoft.Forefront.TMG.TMG_server_failed_to_initialize_the_log_queue.Rule (Rule)

當 TMG Server 無法初始化記錄檔佇列時,此規則會產生警示

Knowledge Base article:

摘要

Forefront TMG 無法初始化記錄檔佇列。 這可能會導致記錄網路流量失敗。 事件描述包含儲存之設定中指定的記錄檔佇列資料夾路徑,同時也會顯示目前用於記錄檔佇列的實際 (有效) 路徑。

原因

記錄檔佇列的初始化可能會因為下列其中一項原因而失敗:

解決方式

若要解決這個問題,請執行下列一個或多個操作:

Element properties:

TargetMicrosoft.Forefront.TMG.Logging.TextFile
CategoryEventCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Forefront.TMG.Rule.AlertGenerate.DS Default
WA WriteAction Microsoft.Forefront.TMG.Rule.AlertGenerate.WA Default

Source Code:

<Rule ID="Microsoft.Forefront.TMG.TMG_server_failed_to_initialize_the_log_queue.Rule" Enabled="true" Target="Microsoft.Forefront.TMG.Logging.TextFile" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Forefront.TMG.Rule.AlertGenerate.DS">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<EventsPattern>^(23411|23412)$</EventsPattern>
<EventType>1</EventType>
<SourcePattern>Microsoft Forefront TMG Control</SourcePattern>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Forefront.TMG.Rule.AlertGenerate.WA">
<AlertMessageId>$MPElement[Name="Microsoft.Forefront.TMG.TMG_server_failed_to_initialize_the_log_queue.AlertMessage"]$</AlertMessageId>
<DomainName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/DomainDnsName$</DomainName>
<Priority>1</Priority>
<Severity>2</Severity>
</WriteAction>
</WriteActions>
</Rule>