diff options
author | tonvoon <ton.voon@opsera.com> | 2010-04-15 08:31:45 +0000 |
---|---|---|
committer | tonvoon <ton.voon@opsera.com> | 2010-04-15 08:31:45 +0000 |
commit | a625872ee35399c0ff69d95d8695feecaab7e79c (patch) | |
tree | 5db2e306343503078d730ddecca81bfaa46461fd | |
parent | c128d293b015291c5e45637d9e3d5b1e1fb36c12 (diff) | |
download | monitoring-plugin-perl-a625872ee35399c0ff69d95d8695feecaab7e79c.tar.gz |
Updated --extra-opts help text. Pod fix (Frank Wiegand - RT51872)
-rw-r--r-- | Changes | 4 | ||||
-rw-r--r-- | lib/Nagios/Plugin.pm | 2 | ||||
-rw-r--r-- | lib/Nagios/Plugin/Getopt.pm | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,9 @@ | |||
1 | Revision history for Perl module Nagios::Plugin. | 1 | Revision history for Perl module Nagios::Plugin. |
2 | 2 | ||
3 | 0.34 15th April 2010 | ||
4 | - Amended standard --extra-opts help | ||
5 | - pod fix (Frank Wiegand - RT51872) | ||
6 | |||
3 | 0.33 5th June 2009 | 7 | 0.33 5th June 2009 |
4 | - Fixed infinite loop when invalid performance data with multiple = were present | 8 | - Fixed infinite loop when invalid performance data with multiple = were present |
5 | 9 | ||
diff --git a/lib/Nagios/Plugin.pm b/lib/Nagios/Plugin.pm index 82bbfcb..cdc3ef8 100644 --- a/lib/Nagios/Plugin.pm +++ b/lib/Nagios/Plugin.pm | |||
@@ -507,7 +507,7 @@ WARNING constant. The thresholds may be: | |||
507 | 2. explicitly set by calling C<set_thresholds()> before C<check_threshold()>, or, | 507 | 2. explicitly set by calling C<set_thresholds()> before C<check_threshold()>, or, |
508 | 508 | ||
509 | 3. implicitly set by command-line parameters -w, -c, --critical or | 509 | 3. implicitly set by command-line parameters -w, -c, --critical or |
510 | --warning, if you have run C<$plugin->getopts()>. | 510 | --warning, if you have run C<< $plugin->getopts() >>. |
511 | 511 | ||
512 | The return value is ready to pass to C <nagios_exit>, e . g ., | 512 | The return value is ready to pass to C <nagios_exit>, e . g ., |
513 | 513 | ||
diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm index 0cf8f73..14aab03 100644 --- a/lib/Nagios/Plugin/Getopt.pm +++ b/lib/Nagios/Plugin/Getopt.pm | |||
@@ -38,7 +38,7 @@ my @ARGS = ({ | |||
38 | help => "-V, --version\n Print version information", | 38 | help => "-V, --version\n Print version information", |
39 | }, { | 39 | }, { |
40 | spec => 'extra-opts:s@', | 40 | spec => 'extra-opts:s@', |
41 | help => "--extra-opts=[<section>[@<config_file>]]\n Section and/or config_file from which to load extra options (may repeat)", | 41 | help => "--extra-opts=[section][\@file]\n Read options from an ini file. See http://nagiosplugins.org/extra-opts for usage", |
42 | }, { | 42 | }, { |
43 | spec => 'timeout|t=i', | 43 | spec => 'timeout|t=i', |
44 | help => "-t, --timeout=INTEGER\n Seconds before plugin times out (default: %s)", | 44 | help => "-t, --timeout=INTEGER\n Seconds before plugin times out (default: %s)", |