diff options
| author | Nathan Vonnahme <n8v@users.sourceforge.net> | 2006-11-10 01:26:16 +0000 |
|---|---|---|
| committer | Nathan Vonnahme <n8v@users.sourceforge.net> | 2006-11-10 01:26:16 +0000 |
| commit | d84da4e2ec8569b8ff15356b6881df307c7333ca (patch) | |
| tree | 16dd035b8a5aaaec75f7571eb78e21069f200049 /lib/Nagios/Plugin | |
| parent | 2d5e416592ff2fab507bd4ebfacab3a66a3b8e46 (diff) | |
| download | monitoring-plugin-perl-d84da4e2ec8569b8ff15356b6881df307c7333ca.tar.gz | |
* 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
Diffstat (limited to 'lib/Nagios/Plugin')
| -rw-r--r-- | lib/Nagios/Plugin/ExitResult.pm | 2 | ||||
| -rw-r--r-- | lib/Nagios/Plugin/Functions.pm | 2 | ||||
| -rw-r--r-- | lib/Nagios/Plugin/Getopt.pm | 4 |
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; | |||
| 11 | use Params::Validate qw(validate :types); | 11 | use Params::Validate qw(validate :types); |
| 12 | 12 | ||
| 13 | # Remember to update Nagios::Plugins as well | 13 | # Remember to update Nagios::Plugins as well |
| 14 | our $VERSION = "0.14"; | 14 | our $VERSION = "0.15"; |
| 15 | 15 | ||
| 16 | our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT); | 16 | our @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', |
