Execute the Rule on-demand in SCOM
hi, how to execute/fire the paricular perfomance rule on demand basis? ex: first rule(time based script rule)--> this collect information from outside(throw webservice) and store in propertyBag. here i want to write another rule to check that properybag contains paricular value and perform some action(alert). so when that particular value comes in that propertybag then only this second rule want to be excute or fire. Demand on properybag value, the rule going to fire. its possible to do this? help me regards satheesh
November 18th, 2011 4:37am

ah, you are trying to implement cookdown aproach. here is general approach. Author DataSource with output = System.PropertyBagData. Example composition for PS script: System.Scheduler Microsoft. Windows.PowerShelPropertyBag Example DataItem output: <DataItem type="System.PropertyBagData" time="2010-07-05T17:07:13.4597245+03:00" sourceHealthServiceId="E9171BCB-6EE9-869C-3A04-E18D5F718B33"> <Property Name="SomeObject" VariantType="8">MyObjectName</Property> <Property Name="CounterName" VariantType="8">MyCounterName</Property> <Property Name="InstanceName" VariantType="8">MyInstanceName</Property> <Property Name="SomeValue" VariantType="3">43456</Property> </DataItem> Author Collection Rule Then you create Custom Rule put authored DataSource into DataSources section add System.Performance.DataGenericMapper into Condition Detection section fill in module's configuration as ObjectName: $Data/Property[@Name='SomeObject']$ CounterName: $Data/Property[@Name='CounterName']$ InstanceName: $Data/Property[@Name='InstanceName']$ Value: $Data/Property[@Name='SomeValue']$ Author MonitorType Create custom MonitorType Example composition: DS: YourCustomDS FilterHealthy: System.ExpressionFilter FilterUnHealthy: System.ExpressionFilter Example of UnHealthy filter configuration <Expression> <SimpleExpression> <ValueExpression> <XPathQuery Type="String">Property[@Name='SomeValue']</XPathQuery> </ValueExpression> <Operator>Equal</Operator> <ValueExpression> <Value Type="Integer">VALUE to ALERT</Value> </ValueExpression> </SimpleExpression> </Expression> for Healthy expresion use <Operator>NotEqual</Operator> author Monitor based on Custom MonitorType
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2011 5:05am

Jonathan blogged recently the same http://blogs.technet.com/b/jonathanalmquist/archive/2011/11/17/cookdown-example-between-two-or-more-workflows.aspx
November 18th, 2011 5:12am

ah, you are trying to implement cookdown aproach. here is general approach. Author DataSource with output = System.PropertyBagData. Example composition for PS script: System.Scheduler Microsoft. Windows.PowerShelPropertyBag Example DataItem output: <DataItem type="System.PropertyBagData" time="2010-07-05T17:07:13.4597245+03:00" sourceHealthServiceId="E9171BCB-6EE9-869C-3A04-E18D5F718B33"> <Property Name="SomeObject" VariantType="8">MyObjectName</Property> <Property Name="CounterName" VariantType="8">MyCounterName</Property> <Property Name="InstanceName" VariantType="8">MyInstanceName</Property> <Property Name="SomeValue" VariantType="3">43456</Property> </DataItem> Author Collection Rule Then you create Custom Rule put authored DataSource into DataSources section add System.Performance.DataGenericMapper into Condition Detection section fill in module's configuration as ObjectName: $Data/Property[@Name='SomeObject']$ CounterName: $Data/Property[@Name='CounterName']$ InstanceName: $Data/Property[@Name='InstanceName']$ Value: $Data/Property[@Name='SomeValue']$ Author MonitorType Create custom MonitorType Example composition: DS: YourCustomDS FilterHealthy: System.ExpressionFilter FilterUnHealthy: System.ExpressionFilter Example of UnHealthy filter configuration <Expression> <SimpleExpression> <ValueExpression> <XPathQuery Type="String">Property[@Name='SomeValue']</XPathQuery> </ValueExpression> <Operator>Equal</Operator> <ValueExpression> <Value Type="Integer">VALUE to ALERT</Value> </ValueExpression> </SimpleExpression> </Expression> for Healthy expresion use <Operator>NotEqual</Operator> author Monitor based on Custom MonitorType
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2011 12:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics