diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Monitoring/Plugin.pm | 2 | ||||
-rw-r--r-- | lib/Monitoring/Plugin/Functions.pm | 2 | ||||
-rw-r--r-- | lib/Monitoring/Plugin/Getopt.pm | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/Monitoring/Plugin.pm b/lib/Monitoring/Plugin.pm index a5b51b1..8c30cc6 100644 --- a/lib/Monitoring/Plugin.pm +++ b/lib/Monitoring/Plugin.pm | |||
@@ -26,7 +26,7 @@ our @EXPORT_OK = qw(%ERRORS %STATUS_TEXT); | |||
26 | # CPAN stupidly won't index this module without a literal $VERSION here, | 26 | # CPAN stupidly won't index this module without a literal $VERSION here, |
27 | # so we're forced to duplicate it explicitly | 27 | # so we're forced to duplicate it explicitly |
28 | # Make sure you update $Monitoring::Plugin::Functions::VERSION too | 28 | # Make sure you update $Monitoring::Plugin::Functions::VERSION too |
29 | our $VERSION = "0.37"; | 29 | our $VERSION = "0.38"; |
30 | 30 | ||
31 | sub new { | 31 | sub new { |
32 | my $class = shift; | 32 | my $class = shift; |
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 | ||