Ta reguła zapisuje załączniki alertów w udziale plików.
Reguła zapisywania załącznika alertu
Ta reguła zapisuje załączniki alertów w udziale plików załączników.
Target | Microsoft.SystemCenter.CollectionManagementServer |
Category | Custom |
Enabled | True |
Alert Generate | False |
Remotable | True |
Comment | This rule saves alert attachments |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.SystemCenter.AlertAttachment.SaveAttachment.FileDataSource | Default |
WA | WriteAction | Microsoft.SystemCenter.AlertAttachment.SaveAttachment.WriteAction | Default |
<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>