From bc239b3bd5023ed2da77ab03c581e56a4772f1d4 Mon Sep 17 00:00:00 2001 From: Nathan Vonnahme Date: Thu, 7 Sep 2006 00:53:51 +0000 Subject: adding example script and test for it, and fixing POD according to warnings from POD::Checker git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1476 f882894a-f735-0410-b71e-b25c423dba1c --- lib/Nagios/Plugin/Getopt.pm | 4 +--- lib/Nagios/Plugin/Performance.pm | 4 ++++ lib/Nagios/Plugin/Threshold.pm | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/Nagios/Plugin') diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm index 1903e8c..d38dced 100644 --- a/lib/Nagios/Plugin/Getopt.pm +++ b/lib/Nagios/Plugin/Getopt.pm @@ -296,9 +296,7 @@ __END__ =head1 NAME -Nagios::Plugin::Getopt - OO perl module providing standardised argument -processing for Nagios plugins - +Nagios::Plugin::Getopt - OO perl module providing standardised argument processing for Nagios plugins =head1 VERSION diff --git a/lib/Nagios/Plugin/Performance.pm b/lib/Nagios/Plugin/Performance.pm index 83c92fb..9e99f54 100644 --- a/lib/Nagios/Plugin/Performance.pm +++ b/lib/Nagios/Plugin/Performance.pm @@ -106,8 +106,12 @@ Once the performance string has been parsed, you can query the label, value, uom Returns an array of Nagios::Plugin::Performance objects based on the string entered. If there is an error parsing the string, an empty array is returned. +=back + =head1 OBJECT METHODS +=over 4 + =item label, value, uom, min, max These all return scalars. min and max are not well supported yet. diff --git a/lib/Nagios/Plugin/Threshold.pm b/lib/Nagios/Plugin/Threshold.pm index f3410e8..9e7b938 100644 --- a/lib/Nagios/Plugin/Threshold.pm +++ b/lib/Nagios/Plugin/Threshold.pm @@ -83,6 +83,8 @@ Returns the warning or critical range as a Nagios::Plugin::Range object. Given a value, will see if the value breeches the critical or the warning range. Returns the status code. +=back + =head1 AUTHOR Ton Voon, Eton.voon@altinity.comE -- cgit v1.2.3-74-g34f1