[Nagiosplug-checkins] Nagios-Plugin/lib/Nagios/Plugin ExitResult.pm, 1.2, 1.3 Functions.pm, 1.6, 1.7 Getopt.pm, 1.6, 1.7
Nathan Vonnahme
n8v at users.sourceforge.net
Fri Nov 10 02:26:18 CET 2006
Update of /cvsroot/nagiosplug/Nagios-Plugin/lib/Nagios/Plugin
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13114/lib/Nagios/Plugin
Modified Files:
ExitResult.pm Functions.pm Getopt.pm
Log Message:
* exposed Getopt and Threshold functionality from top level Nagios::Plugin
* exchanged Class::Struct for Class::Accessor
* POD is not updated yet.
Index: ExitResult.pm
===================================================================
RCS file: /cvsroot/nagiosplug/Nagios-Plugin/lib/Nagios/Plugin/ExitResult.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ExitResult.pm 26 Sep 2006 01:10:23 -0000 1.2
+++ ExitResult.pm 10 Nov 2006 01:26:16 -0000 1.3
@@ -39,7 +39,7 @@
$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!');
Index: Functions.pm
===================================================================
RCS file: /cvsroot/nagiosplug/Nagios-Plugin/lib/Nagios/Plugin/Functions.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Functions.pm 18 Oct 2006 11:51:20 -0000 1.6
+++ Functions.pm 10 Nov 2006 01:26:16 -0000 1.7
@@ -11,7 +11,7 @@
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);
Index: Getopt.pm
===================================================================
RCS file: /cvsroot/nagiosplug/Nagios-Plugin/lib/Nagios/Plugin/Getopt.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Getopt.pm 26 Sep 2006 01:10:23 -0000 1.6
+++ Getopt.pm 10 Nov 2006 01:26:16 -0000 1.7
@@ -306,7 +306,7 @@
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 <host> -w <warning_threshold>
-c <critical threshold>",
@@ -352,7 +352,7 @@
=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',
More information about the Commits
mailing list