Skip to content

Instantly share code, notes, and snippets.

@reyjrar
Created July 9, 2013 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reyjrar/5956850 to your computer and use it in GitHub Desktop.
Save reyjrar/5956850 to your computer and use it in GitHub Desktop.
Possible enhancement to the decoders/rules
<decoder name="uptime">
<regex>load avergage: (\S+),</regex>
<order>var:load<order>
</decoder>
<rule id="100000" level="10">
<decoded_as>uptime</decoded_as>
<compare var="load" is="numeric" check="gt">2</compare>
</rule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment