Pesquisa de Estado de Alerta
Microsoft.SystemCenter2012.ConfigurationManager.AlertStateProbe (ProbeActionModuleType)
Esta pesquisa lê WMI e reporta a conformidade de uma linha base de configuração.
Element properties:
Member Modules:
Source Code:
<ProbeActionModuleType ID="Microsoft.SystemCenter2012.ConfigurationManager.AlertStateProbe" Accessibility="Public" Batching="false" PassThrough="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="TypeId" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="TypeInstanceId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="ProviderLocation" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="SiteCode" type="xsd:string"/>
</Configuration>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<ProbeAction ID="PA" TypeID="Microsoft.SystemCenter2012.ConfigurationManager.WmiQueryEngine">
<ProviderLocation>$Config/ProviderLocation$</ProviderLocation>
<SiteCode>$Config/SiteCode$</SiteCode>
<QueryStatement>SELECT AlertState, DateAlertStateModified, DateCreated, Deletable, Enabled, FeatureArea, FeatureGroup,
ID, InstanceNameParam1, InstanceNameParam2, LastModifiedBy, MonitoredByScom, Name,
ObjectTypeID, OccurrenceCount, ParameterValues, Severity, SkipUntil, TypeID, TypeInstanceID FROM SMS_Alert WHERE TypeId = "$Config/TypeId$" AND TypeInstanceID = "$Config/TypeInstanceId$"</QueryStatement>
</ProbeAction>
</MemberModules>
<Composition>
<Node ID="PA"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.PropertyBagData</OutputType>
<TriggerOnly>true</TriggerOnly>
</ProbeActionModuleType>