Varning vid filtrerade utdata - UNIX-/Linux-systemkommando.
<Template ID="Microsoft.Unix.ShellCommand.AlertRule.Template" Purpose="RuleCreation">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
<SchemaType>SystemHealth!System.Health.AlertSchema</SchemaType>
<SchemaType>RuleTemplates!Microsoft.SystemCenter.RuleTemplates.ManagementPackCategoryType</SchemaType>
<SchemaType>RuleTemplates!Microsoft.SystemCenter.RuleTemplates.ManagementPackIdentifiers</SchemaType>
</IncludeSchemaTypes>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ID" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Name" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Description" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Target" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TargetSystem" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Category" type="ManagementPackCategoryType"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="LocaleId" type="ManagementPackLanguageIdentifier"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Command" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="UserName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Password" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeOut" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeOutInMS" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Interval" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SyncTime" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Enabled" type="xsd:boolean"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Expression" type="ExpressionType"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Priority">
<xsd:simpleType>
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Severity">
<xsd:simpleType>
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="AlertName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="AlertDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="AlertOwner" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="AlertParameters" type="System.Health.AlertParameters" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Suppression" type="System.Health.Suppression" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Custom1" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Custom2" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Custom3" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Custom4" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Custom5" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Custom6" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Custom7" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Custom8" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Custom9" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Custom10" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</Configuration>
<References>
<Reference ID="System"/>
<Reference ID="SC"/>
<Reference ID="SCDW"/>
<Reference ID="SystemHealth"/>
<Reference ID="Unix"/>
<Reference ID="Self"/>
</References>
<Implementation>
<Monitoring>
<Rules>
<Rule ID="$TemplateConfig/ID$" Target="$TemplateConfig/Target$" Enabled="$TemplateConfig/Enabled$">
<Category>$TemplateConfig/Category$</Category>
<DataSources>
<DataSource ID="InvokeDS" TypeID="$Reference/Self$Microsoft.Unix.ShellCommand.Invoke.DataSource">
<Interval>$TemplateConfig/Interval$</Interval>
<SyncTime>$TemplateConfig/SyncTime$</SyncTime>
<TargetSystem>$TemplateConfig/TargetSystem$</TargetSystem>
<UserName>$TemplateConfig/UserName$</UserName>
<Password>$TemplateConfig/Password$</Password>
<ShellCommand>$TemplateConfig/Command$</ShellCommand>
<TimeOut>$TemplateConfig/TimeOut$</TimeOut>
<TimeOutInMS>$TemplateConfig/TimeOutInMS$</TimeOutInMS>
<FilterExpression>$TemplateConfig/Expression$</FilterExpression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="$Reference/SystemHealth$System.Health.GenerateAlert">
<Priority>$TemplateConfig/Priority$</Priority>
<Severity>$TemplateConfig/Severity$</Severity>
<AlertName/>
<AlertDescription/>
<AlertOwner>$TemplateConfig/AlertOwner$</AlertOwner>
<AlertMessageId>$MPElement[Name="$TemplateConfig/ID$.AlertMessage"]$</AlertMessageId>
<AlertParameters>$TemplateConfig/AlertParameters$</AlertParameters>
<Suppression>$TemplateConfig/Suppression$</Suppression>
<Custom1>$TemplateConfig/Custom1$</Custom1>
<Custom2>$TemplateConfig/Custom2$</Custom2>
<Custom3>$TemplateConfig/Custom3$</Custom3>
<Custom4>$TemplateConfig/Custom4$</Custom4>
<Custom5>$TemplateConfig/Custom5$</Custom5>
<Custom6>$TemplateConfig/Custom6$</Custom6>
<Custom7>$TemplateConfig/Custom7$</Custom7>
<Custom8>$TemplateConfig/Custom8$</Custom8>
<Custom9>$TemplateConfig/Custom9$</Custom9>
<Custom10>$TemplateConfig/Custom10$</Custom10>
</WriteAction>
</WriteActions>
</Rule>
</Rules>
</Monitoring>
<Presentation>
<StringResources>
<StringResource ID="$TemplateConfig/ID$.AlertMessage"/>
</StringResources>
</Presentation>
<LanguagePacks>
<LanguagePack ID="$TemplateConfig/LocaleId$" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="$TemplateConfig/ID$">
<Name>$TemplateConfig/Name$</Name>
<Description>$TemplateConfig/Description$</Description>
</DisplayString>
<DisplayString ElementID="$TemplateConfig/ID$.AlertMessage">
<Name>$TemplateConfig/AlertName$</Name>
<Description>$TemplateConfig/AlertDescription$</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>