From d84da4e2ec8569b8ff15356b6881df307c7333ca Mon Sep 17 00:00:00 2001 From: Nathan Vonnahme Date: Fri, 10 Nov 2006 01:26:16 +0000 Subject: * exposed Getopt and Threshold functionality from top level Nagios::Plugin * exchanged Class::Struct for Class::Accessor * POD is not updated yet. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1536 f882894a-f735-0410-b71e-b25c423dba1c --- lib/Nagios/Plugin/ExitResult.pm | 2 +- lib/Nagios/Plugin/Functions.pm | 2 +- lib/Nagios/Plugin/Getopt.pm | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Nagios/Plugin') 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. $e = nagios_exit( CRITICAL, 'aiiii ...' ); print $e->message; print $e->return_code; - + # NP::ExitResult also stringifies to the message output like(nagios_exit( WARNING, 'foobar'), qr/^foo/, 'matches!'); 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; use Params::Validate qw(validate :types); # Remember to update Nagios::Plugins as well -our $VERSION = "0.14"; +our $VERSION = "0.15"; our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT); 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. use Nagios::Plugin::Getopt; - # Instantiate object (usage and version are mandatory) + # Instantiate object (usage is mandatory) $ng = Nagios::Plugin::Getopt->new( usage => "Usage: %s -H -w -c ", @@ -352,7 +352,7 @@ additional arguments to be easily defined. =head2 CONSTRUCTOR - # Instantiate object (usage and version are mandatory) + # Instantiate object (usage is mandatory) $ng = Nagios::Plugin::Getopt->new( usage => 'Usage: %s --hello', version => '0.01', -- cgit v1.2.3-74-g34f1