Show
Ignore:
Timestamp:
03/11/09 20:25:36 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1236803136 +0000
git-parent:

[ec182aa491a0935820d4dd33dde474b7fe657568]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1236803136 +0000
Message:

basic extraction, refs #103... might need to be more sophisticated

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/external.xml

    rec182aa r84fddd1  
    2525               required="optional" 
    2626               allowed=".+">These parameters allow the setting of environment variables for the command execution.  The text following env_ is the key and the parameter value is the value of the environment variable to be set via execve.</parameter> 
     27    <parameter name="output_extract" 
     28               required="optional" 
     29               allowed=".+">This is a regular expression that is globally applied to the stdout of the command.  Each match is turned into a metric. It is a requirement to used named capturing in the regular expression where "key" is the named match of the metric name and "value" is the named match for the matric value.  A sample for extracting performance data from Nagios commands would be: <![CDATA[(?<key>\S+)=(?<value>[^;\s]+)(?=[;\s])]]></parameter> 
    2730  </checkconfig> 
    2831  <examples>