check_jmeter-scenario.pl

check_jmeter-scenario

This plugin is inspired by the work of Travis Noll (http://yoolink.to/eG3). This plugin is able to check a given JMX plan and to rise an alert if there is something wrong. You're now able to use a scenario to check if your web server is ok.  To use it you'll need to have a jmeter plan, so: 

How to create a jmeter plan

http://jakarta.apache.org/jmeter/usermanual/build-web-test-plan.html 

Another how to in french

http://blog.milamberspace.net/index.php/jmeter-pages 

Usage

//$script_name -j //jakarta-jmeter-2.4/ -pl //scenario.jmx -l //log [-p] [-D "$display"] [-v] [-c 2] [-w 1]

Options

-h, --help
   Print detailed help screen
-V, --version
   Print version information
-D, --display=STRING
   To modify the output display... 
   default is "CHECK_JMETER-SCENARIO - "
-p, --perfdata
   If you want to activate the perfdata output
-v, --verbose
   Show details for command-line debugging (Nagios may truncate the output)
-c, --critical=INT
   Specify a critical threshold of tolerated errors in the log
   default is 2
-w, --warning=INT
   Specify a critical threshold of tolerated errors in the log
   default is 1
-j, --jmeter_dir=STRING
   Specify the path to the jmeter directory
-t, --timeout=INT
   Specify the jmeter execution timeout.
   If the jmeter execution exceeds this value, the execution is stopped
   and the plugin returns an UNKNOWN state.
   default is 30
-l, --log=STRING
   Specify the path to the log which will be generated by jmeter
   If the plugin returns a NON-OK state the log is kept with a new name.
-pl, --plan=STRING
   Specify the path to the plan (the jmx scenario)