diff options
Diffstat (limited to 'lib/Monitoring/Plugin')
-rw-r--r-- | lib/Monitoring/Plugin/Functions.pm | 2 | ||||
-rw-r--r-- | lib/Monitoring/Plugin/Getopt.pm | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Monitoring/Plugin/Functions.pm b/lib/Monitoring/Plugin/Functions.pm index d362f9c..34483e1 100644 --- a/lib/Monitoring/Plugin/Functions.pm +++ b/lib/Monitoring/Plugin/Functions.pm | |||
@@ -12,7 +12,7 @@ use Params::Validate qw(:types validate); | |||
12 | use Math::Calc::Units; | 12 | use Math::Calc::Units; |
13 | 13 | ||
14 | # Remember to update Monitoring::Plugins as well | 14 | # Remember to update Monitoring::Plugins as well |
15 | our $VERSION = "0.37"; | 15 | our $VERSION = "0.38"; |
16 | 16 | ||
17 | our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT); | 17 | our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT); |
18 | 18 | ||
diff --git a/lib/Monitoring/Plugin/Getopt.pm b/lib/Monitoring/Plugin/Getopt.pm index 3575ce6..db98567 100644 --- a/lib/Monitoring/Plugin/Getopt.pm +++ b/lib/Monitoring/Plugin/Getopt.pm | |||
@@ -41,7 +41,7 @@ my @ARGS = ({ | |||
41 | help => "-V, --version\n Print version information", | 41 | help => "-V, --version\n Print version information", |
42 | }, { | 42 | }, { |
43 | spec => 'extra-opts:s@', | 43 | spec => 'extra-opts:s@', |
44 | help => "--extra-opts=[section][\@file]\n Read options from an ini file. See http://nagiosplugins.org/extra-opts\n for usage and examples.", | 44 | help => "--extra-opts=[section][\@file]\n Read options from an ini file. See https://www.monitoring-plugins.org/doc/extra-opts.html\n for usage and examples.", |
45 | }, { | 45 | }, { |
46 | spec => 'timeout|t=i', | 46 | spec => 'timeout|t=i', |
47 | help => "-t, --timeout=INTEGER\n Seconds before plugin times out (default: %s)", | 47 | help => "-t, --timeout=INTEGER\n Seconds before plugin times out (default: %s)", |
@@ -534,8 +534,8 @@ processing for Nagios plugins | |||
534 | $ng->getopts; | 534 | $ng->getopts; |
535 | 535 | ||
536 | # Access arguments using named accessors or or via the generic get() | 536 | # Access arguments using named accessors or or via the generic get() |
537 | print $ng->warning; | 537 | print $ng->opts->warning; |
538 | print $ng->get('critical'); | 538 | print $ng->opts->get('critical'); |
539 | 539 | ||
540 | 540 | ||
541 | 541 | ||