擷取 TMG Server 記錄檔目錄的動作失敗

Microsoft.Forefront.TMG.The_action_to_retrieve_the_ISA_Server_log_directory_failed.Rule (Rule)

當擷取 TMG Server 記錄檔目錄的動作失敗時,此規則會產生警示

Knowledge Base article:

摘要

TMG Server 報告產生者無法從設定存放區伺服器中擷取記錄設定。 因此,無法建立每日記錄摘要。 如果為這一天產生報告,將不會含有出自這部伺服器的資料。

原因

這項失敗可能因為下列原因之一而發生:

解決方式

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.The_action_to_retrieve_the_ISA_Server_log_directory_failed.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>^(21001)$</EventsPattern>
<EventType>1</EventType>
<SourcePattern>Microsoft Forefront TMG Report Generator</SourcePattern>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Forefront.TMG.Rule.AlertGenerate.WA">
<AlertMessageId>$MPElement[Name="Microsoft.Forefront.TMG.The_action_to_retrieve_the_ISA_Server_log_directory_failed.AlertMessage"]$</AlertMessageId>
<DomainName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/DomainDnsName$</DomainName>
<Priority>2</Priority>
<Severity>2</Severity>
</WriteAction>
</WriteActions>
</Rule>