summaryrefslogtreecommitdiffstats
path: root/lib/Nagios/Plugin
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Nagios/Plugin')
-rw-r--r--lib/Nagios/Plugin/ExitResult.pm2
-rw-r--r--lib/Nagios/Plugin/Functions.pm2
-rw-r--r--lib/Nagios/Plugin/Getopt.pm4
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/Nagios/Plugin/ExitResult.pm b/lib/Nagios/Plugin/ExitResult.pm
index 191c92a..b161e9e 100644
--- a/lib/Nagios/Plugin/ExitResult.pm
+++ b/lib/Nagios/Plugin/ExitResult.pm
@@ -39,7 +39,7 @@ return codes when testing.
39 $e = nagios_exit( CRITICAL, 'aiiii ...' ); 39 $e = nagios_exit( CRITICAL, 'aiiii ...' );
40 print $e->message; 40 print $e->message;
41 print $e->return_code; 41 print $e->return_code;
42 42
43 # NP::ExitResult also stringifies to the message output 43 # NP::ExitResult also stringifies to the message output
44 like(nagios_exit( WARNING, 'foobar'), qr/^foo/, 'matches!'); 44 like(nagios_exit( WARNING, 'foobar'), qr/^foo/, 'matches!');
45 45
diff --git a/lib/Nagios/Plugin/Functions.pm b/lib/Nagios/Plugin/Functions.pm
index 5772c97..41ec27a 100644
--- a/lib/Nagios/Plugin/Functions.pm
+++ b/lib/Nagios/Plugin/Functions.pm
@@ -11,7 +11,7 @@ use File::Basename;
11use Params::Validate qw(validate :types); 11use Params::Validate qw(validate :types);
12 12
13# Remember to update Nagios::Plugins as well 13# Remember to update Nagios::Plugins as well
14our $VERSION = "0.14"; 14our $VERSION = "0.15";
15 15
16our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT); 16our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT);
17 17
diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm
index 8a9fc1c..bbf1fc9 100644
--- a/lib/Nagios/Plugin/Getopt.pm
+++ b/lib/Nagios/Plugin/Getopt.pm
@@ -306,7 +306,7 @@ This documentation applies to version 0.01 of Nagios::Plugin::Getopt.
306 306
307 use Nagios::Plugin::Getopt; 307 use Nagios::Plugin::Getopt;
308 308
309 # Instantiate object (usage and version are mandatory) 309 # Instantiate object (usage is mandatory)
310 $ng = Nagios::Plugin::Getopt->new( 310 $ng = Nagios::Plugin::Getopt->new(
311 usage => "Usage: %s -H <host> -w <warning_threshold> 311 usage => "Usage: %s -H <host> -w <warning_threshold>
312 -c <critical threshold>", 312 -c <critical threshold>",
@@ -352,7 +352,7 @@ additional arguments to be easily defined.
352 352
353=head2 CONSTRUCTOR 353=head2 CONSTRUCTOR
354 354
355 # Instantiate object (usage and version are mandatory) 355 # Instantiate object (usage is mandatory)
356 $ng = Nagios::Plugin::Getopt->new( 356 $ng = Nagios::Plugin::Getopt->new(
357 usage => 'Usage: %s --hello', 357 usage => 'Usage: %s --hello',
358 version => '0.01', 358 version => '0.01',