Skip to content

Instantly share code, notes, and snippets.

@mbarton
Created January 23, 2014 15:33
Show Gist options
  • Save mbarton/8580604 to your computer and use it in GitHub Desktop.
Save mbarton/8580604 to your computer and use it in GitHub Desktop.
<rules>
<rule name="nodemon">
<targets>
<target>/geneos/gateway/directory/probe[(@name=&quot;probe&quot;)]/managedEntity[(@name=&quot;entity&quot;)]/sampler[(@name=&quot;nodemon&quot;)][(@type=&quot;&quot;)]/dataview[(@name=&quot;nodemon&quot;)]/rows/row/cell[(@column=&quot;percentCPU&quot;)]</target>
</targets>
<priority>1</priority>
<block>
<if>
<gt>
<dataItem>
<property>@value</property>
</dataItem>
<integer>80</integer>
</gt>
<transaction>
<update>
<property>state/@severity</property>
<severity>critical</severity>
</update>
</transaction>
<if>
<gt>
<dataItem>
<property>@value</property>
</dataItem>
<integer>50</integer>
</gt>
<transaction>
<update>
<property>state/@severity</property>
<severity>warning</severity>
</update>
</transaction>
<transaction>
<update>
<property>state/@severity</property>
<severity>ok</severity>
</update>
</transaction>
</if>
</if>
</block>
</rule>
</rules>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment