Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hello
- So, we have basic monitor Current Disk Queue Length (Logical Disk)
- It is completely useless because there are no process list in alert (also 'pls see alert context for details in 2021' - but its another story)
- I have some challenge to add process list to alert, but i dont want to change wmi datasource (DS1) to script datasource
- Peace of code
- <ConditionDetection TypeID="SystemPerf!System.Performance.ConsecutiveSamplesCondition" ID="CD1">
- <Threshold>$Config/Threshold$</Threshold>
- <Direction>$Config/Direction$</Direction>
- </ConditionDetection>
- <ConditionDetection TypeID="System!System.ExpressionFilter" ID="CDSufficientSamples">
- <Expression>
- <SimpleExpression>
- <ValueExpression>
- <XPathQuery Type="Double">Value</XPathQuery>
- </ValueExpression>
- <Operator>GreaterEqual</Operator>
- <ValueExpression>
- <Value Type="Double">$Config/NumSamples$</Value>
- </ValueExpression>
- </SimpleExpression>
- </Expression>
- </ConditionDetection>
- <ConditionDetection TypeID="System!System.ExpressionFilter" ID="CDInSufficientSamples">
- <Expression>
- <SimpleExpression>
- <ValueExpression>
- <XPathQuery Type="Double">Value</XPathQuery>
- </ValueExpression>
- <Operator>Less</Operator>
- <ValueExpression>
- <Value Type="Double">$Config/NumSamples$</Value>
- </ValueExpression>
- </SimpleExpression>
- </Expression>
- </ConditionDetection>
- </MemberModules>
- <RegularDetections>
- <RegularDetection MonitorTypeStateID="ConditionTrue"> <!--error-->
- <Node ID="CDSufficientSamples">
- <Node ID="CD1">
- <Node ID="DS1" />
- </Node>
- </Node>
- </RegularDetection>
- <RegularDetection MonitorTypeStateID="ConditionFalse">
- <Node ID="CDInSufficientSamples">
- <Node ID="CD1">
- <Node ID="DS1" />
- </Node>
- </Node>
- </RegularDetection>
- </RegularDetections>
- Is it good idea to add something like Microsoft.Windows.PowerShellPropertyBagProbe after CDSufficientSamples ? Like that:
- <Node ID="PSDS">
- <Node ID="CDSufficientSamples">
- <Node ID="CD1">
- <Node ID="DS1"/>
- </Node>
- </Node>
- </Node>
- Or only good way is do use script datasource instead of wmi ?
Add Comment
Please, Sign In to add comment