hi..
i create cutom class below like this and it wortking fine..
<ClassType ID="eMonitoring.Test" Accessibility="Internal" Abstract="true" Base="System!System.LogicalEntity" Hosted="false" Singleton="false">
<Property ID="Test_ID" Type="string" Key="true" CaseSensitive="false" Length="256" MinLength="0" />
</ClassType>
<ClassType ID="Monitoring.Tests.SystemDetails" Accessibility="Internal" Abstract="false" Base="Monitoring.Test" Hosted="false" Singleton="false" />
after taht i create one script based rule to target Monitoring.Tests.SystemDetails
like
<Rule ID="Monitoring.Rules.SystemDetails.Cpu_util" Enabled="true" Target="Monitoring.Tests.SystemDetails" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.TimedScript.PerformanceProvider">
<IntervalSeconds>10</IntervalSeconds>
<SyncTime />
<ScriptName>Cpu_Util.vbs</ScriptName>
<Arguments></Arguments>
<ScriptBody>Dim sObjectName, sCounterName, iValue, sInstanceName, oArgs
Dim oAPI, oPerformancePropertyBag
Set oAPI = CreateObject("MOM.ScriptAPI")
Set oArgs = Wscript.Arguments
sInstanceName = "Myinstance"
iValue = 55
Call oAPI.LogScriptEvent("Cpu_Util.vbs", 101, 0, "InstanceName=" & sInstanceName)
Set oPerformancePropertyBag = oAPI.CreateTypedPropertyBag(2)
sObjectName = "Littleboy/SystemDetails"
sCounterName = "Cpu_Util"
oPerformancePropertyBag.AddValue "ObjectName", sObjectName
oPerformancePropertyBag.AddValue "CounterName", sCounterName
oPerformancePropertyBag.AddValue "InstanceName", sInstanceName
' oPerformancePropertyBag.AddValue "$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$", sInstanceName
oPerformancePropertyBag.AddValue "Value", iValue
oAPI.AddItem oPerformancePropertyBag
Call oAPI.ReturnItems
</ScriptBody>
<TimeoutSeconds>60</TimeoutSeconds>
<ObjectName>$Data/Property[@Name='ObjectName']$</ObjectName>
<CounterName>$Data/Property[@Name='CounterName']$</CounterName>
<InstanceName>$Data/Property[@Name='InstanceName']$</InstanceName>
<Value>$Data/Property[@Name='Value']$</Value>
</DataSource>
</DataSources>
<WriteActions>
-------------
</WriteActions>
</Rule>
but this rule is not fire or executed.
if i set Target="Windows!Microsoft.Windows.OperatingSystem" now its fire
if i set Target="Monitoring.Tests.SystemDetails" its not fire.
how to fire this rule with same target class Monitoring.Tests.SystemDetails.
help me with samples and steps
regards
satheesh