Reguła zapisywania załącznika alertu

Microsoft.SystemCenter.AlertAttachment.SaveAttachment.Rule (Rule)

Ta reguła zapisuje załączniki alertów w udziale plików.

Knowledge Base article:

Podsumowanie

Reguła zapisywania załącznika alertu

Ta reguła zapisuje załączniki alertów w udziale plików załączników.

Element properties:

TargetMicrosoft.SystemCenter.CollectionManagementServer
CategoryCustom
EnabledTrue
Alert GenerateFalse
RemotableTrue
CommentThis rule saves alert attachments

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SystemCenter.AlertAttachment.SaveAttachment.FileDataSource Default
WA WriteAction Microsoft.SystemCenter.AlertAttachment.SaveAttachment.WriteAction Default

Source Code:

<Rule ID="Microsoft.SystemCenter.AlertAttachment.SaveAttachment.Rule" Comment="This rule saves alert attachments" Enabled="true" Target="SC!Microsoft.SystemCenter.CollectionManagementServer" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="1">
<Category>Custom</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SystemCenter.AlertAttachment.SaveAttachment.FileDataSource"/>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.SystemCenter.AlertAttachment.SaveAttachment.WriteAction">
<GenerateNewAlertForAlertContext>false</GenerateNewAlertForAlertContext>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
</WriteAction>
</WriteActions>
</Rule>