Start 2008-10-18T13:31:11 Going to read /Users/fly1003/var/cpan/Metadata Database was generated on Sat, 18 Oct 2008 10:26:50 GMT Running make for G/GB/GBARR/Nagios-Plugin-LDAP-0.04.tar.gz Fetching with LWP: http://cpan.nas.activestate.com/authors/id/G/GB/GBARR/Nagios-Plugin-LDAP-0.04.tar.gz Checksum for /Users/fly1003/var/cpan/sources/authors/id/G/GB/GBARR/Nagios-Plugin-LDAP-0.04.tar.gz ok Nagios-Plugin-LDAP-0.04/ Nagios-Plugin-LDAP-0.04/.gitignore Nagios-Plugin-LDAP-0.04/MANIFEST Nagios-Plugin-LDAP-0.04/META.yml Nagios-Plugin-LDAP-0.04/Makefile.PL Nagios-Plugin-LDAP-0.04/SIGNATURE Nagios-Plugin-LDAP-0.04/bin/ Nagios-Plugin-LDAP-0.04/bin/check_ldap_repl Nagios-Plugin-LDAP-0.04/inc/ Nagios-Plugin-LDAP-0.04/inc/Module/ Nagios-Plugin-LDAP-0.04/inc/Module/AutoInstall.pm Nagios-Plugin-LDAP-0.04/inc/Module/Install.pm Nagios-Plugin-LDAP-0.04/inc/Module/Install/ Nagios-Plugin-LDAP-0.04/inc/Module/Install/AutoInstall.pm Nagios-Plugin-LDAP-0.04/inc/Module/Install/Base.pm Nagios-Plugin-LDAP-0.04/inc/Module/Install/Can.pm Nagios-Plugin-LDAP-0.04/inc/Module/Install/Fetch.pm Nagios-Plugin-LDAP-0.04/inc/Module/Install/Include.pm Nagios-Plugin-LDAP-0.04/inc/Module/Install/Makefile.pm Nagios-Plugin-LDAP-0.04/inc/Module/Install/Metadata.pm Nagios-Plugin-LDAP-0.04/inc/Module/Install/Win32.pm Nagios-Plugin-LDAP-0.04/inc/Module/Install/WriteAll.pm Nagios-Plugin-LDAP-0.04/lib/ Nagios-Plugin-LDAP-0.04/lib/Nagios/ Nagios-Plugin-LDAP-0.04/lib/Nagios/Plugin/ Nagios-Plugin-LDAP-0.04/lib/Nagios/Plugin/LDAP.pm Nagios-Plugin-LDAP-0.04/t/ Nagios-Plugin-LDAP-0.04/t/00-load.t CPAN.pm: Going to build G/GB/GBARR/Nagios-Plugin-LDAP-0.04.tar.gz >>> /Users/fly1003/bin/perl Makefile.PL *** Module::AutoInstall version 1.03 *** Checking for Perl dependencies... [Core Features] - Carp ...loaded. (1.08) - Net::LDAP ...loaded. (0.38) - Nagios::Plugin ...missing. - Time::HiRes ...loaded. (1.9715) - DateTime ...loaded. (0.4305) ==> Auto-install the 1 mandatory module(s) from CPAN? [Y/n] y *** Since we're running under CPANPLUS, I'll just let it take care of the dependency's installation later. *** Module::AutoInstall configuration finished. *** Since we're running under CPANPLUS, I'll just let it take care of the dependency's installation later. Warning: prerequisite Nagios::Plugin 0 not found. Checking if your kit is complete... Looks good Writing Makefile for Nagios::Plugin::LDAP ---- Unsatisfied dependencies detected during ---- ---- GBARR/Nagios-Plugin-LDAP-0.04.tar.gz ---- Nagios::Plugin [requires] Running make test Delayed until after prerequisites Running test for module 'Nagios::Plugin' Running make for T/TO/TONVOON/Nagios-Plugin-0.27.tar.gz Fetching with LWP: http://cpan.nas.activestate.com/authors/id/T/TO/TONVOON/Nagios-Plugin-0.27.tar.gz Fetching with LWP: http://cpan.nas.activestate.com/authors/id/T/TO/TONVOON/CHECKSUMS Checksum for /Users/fly1003/var/cpan/sources/authors/id/T/TO/TONVOON/Nagios-Plugin-0.27.tar.gz ok Nagios-Plugin-0.27/ Nagios-Plugin-0.27/Changes Nagios-Plugin-0.27/lib/ Nagios-Plugin-0.27/lib/Nagios/ Nagios-Plugin-0.27/lib/Nagios/Plugin/ Nagios-Plugin-0.27/lib/Nagios/Plugin/Config.pm Nagios-Plugin-0.27/lib/Nagios/Plugin/ExitResult.pm Nagios-Plugin-0.27/lib/Nagios/Plugin/Functions.pm Nagios-Plugin-0.27/lib/Nagios/Plugin/Getopt.pm Nagios-Plugin-0.27/lib/Nagios/Plugin/Performance.pm Nagios-Plugin-0.27/lib/Nagios/Plugin/Range.pm Nagios-Plugin-0.27/lib/Nagios/Plugin/Threshold.pm Nagios-Plugin-0.27/lib/Nagios/Plugin.pm Nagios-Plugin-0.27/Makefile.PL Nagios-Plugin-0.27/MANIFEST Nagios-Plugin-0.27/META.yml Nagios-Plugin-0.27/README Nagios-Plugin-0.27/t/ Nagios-Plugin-0.27/t/check_stuff.pl Nagios-Plugin-0.27/t/check_stuff.t Nagios-Plugin-0.27/t/Nagios-Plugin-01.t Nagios-Plugin-0.27/t/Nagios-Plugin-02.t Nagios-Plugin-0.27/t/Nagios-Plugin-03.t Nagios-Plugin-0.27/t/Nagios-Plugin-04.t Nagios-Plugin-0.27/t/Nagios-Plugin-Functions-01.t Nagios-Plugin-0.27/t/Nagios-Plugin-Functions-02.t Nagios-Plugin-0.27/t/Nagios-Plugin-Functions-03.t Nagios-Plugin-0.27/t/Nagios-Plugin-Getopt-01.t Nagios-Plugin-0.27/t/Nagios-Plugin-Getopt-02.t Nagios-Plugin-0.27/t/Nagios-Plugin-Getopt-03.t Nagios-Plugin-0.27/t/Nagios-Plugin-Getopt-04.t Nagios-Plugin-0.27/t/Nagios-Plugin-Performance-02.t Nagios-Plugin-0.27/t/Nagios-Plugin-Performance.t Nagios-Plugin-0.27/t/Nagios-Plugin-Range.t Nagios-Plugin-0.27/t/Nagios-Plugin-Threshold.t Nagios-Plugin-0.27/t/npg03/ Nagios-Plugin-0.27/t/npg03/expected/ Nagios-Plugin-0.27/t/npg03/expected/00_basic Nagios-Plugin-0.27/t/npg03/expected/00_noextra Nagios-Plugin-0.27/t/npg03/expected/01_override1 Nagios-Plugin-0.27/t/npg03/expected/02_override2 Nagios-Plugin-0.27/t/npg03/expected/05_disk1 Nagios-Plugin-0.27/t/npg03/expected/05_disk2 Nagios-Plugin-0.27/t/npg03/expected/05_disk3 Nagios-Plugin-0.27/t/npg03/expected/05_disk4 Nagios-Plugin-0.27/t/npg03/expected/05_disk5 Nagios-Plugin-0.27/t/npg03/expected/05_disk6 Nagios-Plugin-0.27/t/npg03/expected/09_funnystuff Nagios-Plugin-0.27/t/npg03/expected/12_nosection_implicit Nagios-Plugin-0.27/t/npg03/input/ Nagios-Plugin-0.27/t/npg03/input/00_basic Nagios-Plugin-0.27/t/npg03/input/00_noextra Nagios-Plugin-0.27/t/npg03/input/01_override1 Nagios-Plugin-0.27/t/npg03/input/02_override2 Nagios-Plugin-0.27/t/npg03/input/05_disk1 Nagios-Plugin-0.27/t/npg03/input/05_disk2 Nagios-Plugin-0.27/t/npg03/input/05_disk3 Nagios-Plugin-0.27/t/npg03/input/05_disk4 Nagios-Plugin-0.27/t/npg03/input/05_disk5 Nagios-Plugin-0.27/t/npg03/input/05_disk6 Nagios-Plugin-0.27/t/npg03/input/09_funnystuff Nagios-Plugin-0.27/t/npg03/input/12_nosection_implicit Nagios-Plugin-0.27/t/npg03/input/13_nosection_explicit_dies Nagios-Plugin-0.27/t/npg03/input/14_badsection_dies Nagios-Plugin-0.27/t/npg03/plugins.ini Nagios-Plugin-0.27/t/npg03/README CPAN.pm: Going to build T/TO/TONVOON/Nagios-Plugin-0.27.tar.gz >>> /Users/fly1003/bin/perl Makefile.PL Warning: prerequisite Math::Calc::Units 0 not found. Checking if your kit is complete... Looks good Writing Makefile for Nagios::Plugin ---- Unsatisfied dependencies detected during ---- ---- TONVOON/Nagios-Plugin-0.27.tar.gz ---- Math::Calc::Units [requires] Running make test Delayed until after prerequisites Running test for module 'Math::Calc::Units' Running make for S/SF/SFINK/Math-Calc-Units-1.06.tar.gz Fetching with LWP: http://cpan.nas.activestate.com/authors/id/S/SF/SFINK/Math-Calc-Units-1.06.tar.gz Fetching with LWP: http://cpan.nas.activestate.com/authors/id/S/SF/SFINK/CHECKSUMS Checksum for /Users/fly1003/var/cpan/sources/authors/id/S/SF/SFINK/Math-Calc-Units-1.06.tar.gz ok Math-Calc-Units-1.06/ Math-Calc-Units-1.06/t/ Math-Calc-Units-1.06/t/pod.t Math-Calc-Units-1.06/t/main.t Math-Calc-Units-1.06/Units/ Math-Calc-Units-1.06/Units/Grammar.y Math-Calc-Units-1.06/Units/Compute.pm Math-Calc-Units-1.06/Units/Convert/ Math-Calc-Units-1.06/Units/Convert/Multi.pm Math-Calc-Units-1.06/Units/Convert/Base.pm Math-Calc-Units-1.06/Units/Convert/Combo.pm Math-Calc-Units-1.06/Units/Convert/Date.pm Math-Calc-Units-1.06/Units/Convert/Byte.pm Math-Calc-Units-1.06/Units/Convert/Metric.pm Math-Calc-Units-1.06/Units/Convert/Base2Metric.pm Math-Calc-Units-1.06/Units/Convert/Time.pm Math-Calc-Units-1.06/Units/Convert/Distance.pm Math-Calc-Units-1.06/Units/Rank.pm Math-Calc-Units-1.06/Units/Grammar.pm Math-Calc-Units-1.06/Units/Convert.pm Math-Calc-Units-1.06/LICENSE Math-Calc-Units-1.06/README Math-Calc-Units-1.06/Changes Math-Calc-Units-1.06/Makefile.PL Math-Calc-Units-1.06/META.yml Math-Calc-Units-1.06/Artistic.html Math-Calc-Units-1.06/script/ Math-Calc-Units-1.06/script/ucalc Math-Calc-Units-1.06/Units.pm Math-Calc-Units-1.06/COPYING Math-Calc-Units-1.06/MANIFEST CPAN.pm: Going to build S/SF/SFINK/Math-Calc-Units-1.06.tar.gz >>> /Users/fly1003/bin/perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Math::Calc::Units >>> make cp Units/Convert/Byte.pm blib/lib/Math/Calc/Units/Convert/Byte.pm cp Units/Convert/Combo.pm blib/lib/Math/Calc/Units/Convert/Combo.pm cp Units/Convert/Multi.pm blib/lib/Math/Calc/Units/Convert/Multi.pm cp Units/Grammar.y blib/lib/Math/Calc/Units/Grammar.y cp Units/Convert/Metric.pm blib/lib/Math/Calc/Units/Convert/Metric.pm cp Units/Grammar.pm blib/lib/Math/Calc/Units/Grammar.pm cp Units/Convert/Date.pm blib/lib/Math/Calc/Units/Convert/Date.pm cp Units/Convert.pm blib/lib/Math/Calc/Units/Convert.pm cp Units/Convert/Base2Metric.pm blib/lib/Math/Calc/Units/Convert/Base2Metric.pm cp Units/Rank.pm blib/lib/Math/Calc/Units/Rank.pm cp Units/Convert/Base.pm blib/lib/Math/Calc/Units/Convert/Base.pm cp Units/Convert/Distance.pm blib/lib/Math/Calc/Units/Convert/Distance.pm cp Units/Compute.pm blib/lib/Math/Calc/Units/Compute.pm cp Units.pm blib/lib/Math/Calc/Units.pm cp Units/Convert/Time.pm blib/lib/Math/Calc/Units/Convert/Time.pm cp script/ucalc blib/script/ucalc /Users/fly1003/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/ucalc Manifying blib/man3/Math::Calc::Units.3 SFINK/Math-Calc-Units-1.06.tar.gz make -- OK Running make test >>> make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 /Users/fly1003/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/main.... 1..64 ok 1 - initialization ok 2 - basic equality ok 3 - whitespace ok 4 - simple reduction ok 5 - aliases ok 6 - plurals ok 7 - base 2 metric prefix ok 8 - abbreviated metric prefix ok 9 - weird abbreviations ok 10 - tiny abbrevs ok 11 - compound units ok 12 - bits and bytes ok 13 - addition ok 14 - subtraction ok 15 - zero equivalences ok 16 - multiplication ok 17 - division ok 18 - exponentiation ok 19 - exponentiation to non-integral power ok 20 - non-base exponentiation ok 21 - complex multiplication ok 22 - complex exponentiation ok 23 - calc() function ok 24 - error: power with units ok 25 - error: adding incompatible units ok 26 - error: subtracting incompatible units ok 27 - error: units ** fractional power ok 28 - basic conversion ok 29 - non-base -> base conversion ok 30 - base -> non-base conversion ok 31 - non-base -> non-base conversion ok 32 - complex conversion ok 33 - combo conversion ok 34 - complex type on bottom ok 35 - doc example 1 ok 36 - doc example 2 ok 37 - doc example 3 ok 38 - doc example 4 ok 39 - doc example 5 ok 40 - error: conversion to unknown units ok 41 - error: apples to oranges ok 42 - days -> year conversion ok 43 - timestamp unit parsing ok 44 - timestamp constructor ok 45 - timestamp, datetime ok 46 - timestamp, date ok 47 - timestamp, canon date ok 48 - timestamp, canon datetime ok 49 - fuzzy datetime ok 50 - timestamp-sec=timestamp ok 51 - timestamp-timestamp=sec ok 52 - timestamp+sec=sec ok 53 - recursion bug ok 54 - reported complaint ok 55 - FR: abbreviations (pretest) ok 56 - FR: abbreviations ok 57 - kilosec avoidance ok 58 - ks avoidance ok 59 - kilosecond handling ok 60 - ks handling ok 61 - km handling ok 62 - centimeter -> inches ok 63 - feet/inches math ok 64 - abbreviation ok t/pod..... 1..15 ok 1 - blib/script/ucalc ok 2 - blib/lib/Math/Calc/Units.pm ok 3 - blib/lib/Math/Calc/Units/Compute.pm ok 4 - blib/lib/Math/Calc/Units/Convert.pm ok 5 - blib/lib/Math/Calc/Units/Grammar.pm ok 6 - blib/lib/Math/Calc/Units/Rank.pm ok 7 - blib/lib/Math/Calc/Units/Convert/Base.pm ok 8 - blib/lib/Math/Calc/Units/Convert/Base2Metric.pm ok 9 - blib/lib/Math/Calc/Units/Convert/Byte.pm ok 10 - blib/lib/Math/Calc/Units/Convert/Combo.pm ok 11 - blib/lib/Math/Calc/Units/Convert/Date.pm ok 12 - blib/lib/Math/Calc/Units/Convert/Distance.pm ok 13 - blib/lib/Math/Calc/Units/Convert/Metric.pm ok 14 - blib/lib/Math/Calc/Units/Convert/Multi.pm ok 15 - blib/lib/Math/Calc/Units/Convert/Time.pm ok All tests successful. Files=2, Tests=79, 0 wallclock secs ( 0.10 usr 0.05 sys + 0.48 cusr 0.07 csys = 0.70 CPU) Result: PASS SFINK/Math-Calc-Units-1.06.tar.gz make test TEST_VERBOSE=1 -- OK Picked up abstract from Units.pm Steve A Fink <sfink@cpan.org> Human-readable unit-aware calculator >>> (cd /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T && tar cvf - Math-Calc-Units-1.06.ppd blib) | gzip -c >/Users/fly1003/var/REPO/S/SF/SFINK/Math-Calc-Units-1.06.tar.gz Math-Calc-Units-1.06.ppd blib/ blib/lib/ blib/lib/Math/ blib/lib/Math/Calc/ blib/lib/Math/Calc/Units/ blib/lib/Math/Calc/Units/Compute.pm blib/lib/Math/Calc/Units/Convert/ blib/lib/Math/Calc/Units/Convert/Base.pm blib/lib/Math/Calc/Units/Convert/Base2Metric.pm blib/lib/Math/Calc/Units/Convert/Byte.pm blib/lib/Math/Calc/Units/Convert/Combo.pm blib/lib/Math/Calc/Units/Convert/Date.pm blib/lib/Math/Calc/Units/Convert/Distance.pm blib/lib/Math/Calc/Units/Convert/Metric.pm blib/lib/Math/Calc/Units/Convert/Multi.pm blib/lib/Math/Calc/Units/Convert/Time.pm blib/lib/Math/Calc/Units/Convert.pm blib/lib/Math/Calc/Units/Grammar.pm blib/lib/Math/Calc/Units/Grammar.y blib/lib/Math/Calc/Units/Rank.pm blib/lib/Math/Calc/Units.pm blib/man3/ blib/man3/Math::Calc::Units.3 blib/script/ blib/script/ucalc >>> mv /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/Math-Calc-Units-1.06.ppd /Users/fly1003/var/REPO/S/SF/SFINK Running make for T/TO/TONVOON/Nagios-Plugin-0.27.tar.gz Prepending /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/arch /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/lib to PERL5LIB for 'get' Has already been unwrapped into directory /Users/fly1003/var/cpan/build/Nagios-Plugin-0.27-Y5AXrq Prepending /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/arch /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/lib to PERL5LIB for 'make' CPAN.pm: Going to build T/TO/TONVOON/Nagios-Plugin-0.27.tar.gz >>> make cp lib/Nagios/Plugin/ExitResult.pm blib/lib/Nagios/Plugin/ExitResult.pm cp lib/Nagios/Plugin/Functions.pm blib/lib/Nagios/Plugin/Functions.pm cp lib/Nagios/Plugin/Threshold.pm blib/lib/Nagios/Plugin/Threshold.pm cp lib/Nagios/Plugin/Range.pm blib/lib/Nagios/Plugin/Range.pm cp lib/Nagios/Plugin/Getopt.pm blib/lib/Nagios/Plugin/Getopt.pm cp lib/Nagios/Plugin/Performance.pm blib/lib/Nagios/Plugin/Performance.pm cp lib/Nagios/Plugin/Config.pm blib/lib/Nagios/Plugin/Config.pm cp lib/Nagios/Plugin.pm blib/lib/Nagios/Plugin.pm Manifying blib/man3/Nagios::Plugin::ExitResult.3 Manifying blib/man3/Nagios::Plugin::Functions.3 Manifying blib/man3/Nagios::Plugin::Threshold.3 Manifying blib/man3/Nagios::Plugin::Range.3 Manifying blib/man3/Nagios::Plugin::Getopt.3 Manifying blib/man3/Nagios::Plugin::Performance.3 Manifying blib/man3/Nagios::Plugin::Config.3 Manifying blib/man3/Nagios::Plugin.3 TONVOON/Nagios-Plugin-0.27.tar.gz make -- OK Prepending /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/arch /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/lib to PERL5LIB for 'test' Running make test >>> make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 /Users/fly1003/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/check_stuff..................... 1..14 ok 1 - exits(3) with no args ok 2 - UNKNOWN with no args ok 3 - exits(3) with -V arg ok 4 - looks like there's a version ok 5 - exits(3) with -h arg ok 6 - looks like there's something helpful # running `/Users/fly1003/bin/perl -Ilib t/check_stuff.pl -r 99 ` # output: 'STUFF UNKNOWN - invalid number supplied for the -r option # ' ok 7 - exits(3) with -r 99 ok 8 - UNKNOWN (warning: invalid -r) with -r 99 # running `/Users/fly1003/bin/perl -Ilib t/check_stuff.pl -w 10:15 -c~:15 -r 0` # output: 'STUFF WARNING - sample result was 0 # ' ok 9 - exits(1) with -w 10:15 -c~:15 -r 0 ok 10 - looks WARNING with -w 10:15 -c~:15 -r 0 # running `/Users/fly1003/bin/perl -Ilib t/check_stuff.pl -w 10:15 -c~:15 -r 15.8` # output: 'STUFF CRITICAL - sample result was 15.8 # ' ok 11 - exits(2) with -w 10:15 -c~:15 -r 15.8 ok 12 - looks CRITICAL with -w 10:15 -c~:15 -r 15.8 # running `/Users/fly1003/bin/perl -Ilib t/check_stuff.pl -w 10:15 -c~:15 -r 11` # output: 'STUFF OK - sample result was 11 # ' ok 13 - exits(0) with -w 10:15 -c~:15 -r 11 ok 14 - looks OK with -w 10:15 -c~:15 -r 11 ok t/Nagios-Plugin-01................ 1..13 ok 1 - use Nagios::Plugin; # # using Nagios::Plugin revision 0.27 ok 2 - The object isa Nagios::Plugin ok 3 - shortname explicitly set correctly ok 4 - shortname should default on new ok 5 - shortname set correctly on new # warn if < 10, critical if > 25 ok 6 - Perfdata correct ok 7 - Perfdata correct when no uom specified ok 8 - Output okay. -1 = WARNING ok 9 - Output okay. 1 = WARNING ok 10 - Output okay. 20 = OK ok 11 - Output okay. 25 = OK ok 12 - Output okay. 26 = CRITICAL ok 13 - Output okay. 30 = CRITICAL ok t/Nagios-Plugin-02................ 1..103 ok 1 - use Nagios::Plugin; ok 2 - OK => 0 ok 3 - WARNING => 1 ok 4 - CRITICAL => 2 ok 5 - UNKNOWN => 3 ok 6 - DEPENDENT => 4 ok 7 - shortname() is TEST_PLUGIN ok 8 - nagios_exit(OK, $msg) returned 0 ok 9 - nagios_exit(OK, $msg) output matched "TEST_PLUGIN OK.*test the first" ok 10 - nagios_exit("OK", $msg) returned 0 ok 11 - nagios_exit("OK", $msg) output matched "TEST_PLUGIN OK.*test the first" ok 12 - nagios_exit("OK", $msg) stringified matched "TEST_PLUGIN OK.*test the first" ok 13 - nagios_exit(WARNING, $msg) returned 1 ok 14 - nagios_exit(WARNING, $msg) output matched "TEST_PLUGIN WARNING.*test the second" ok 15 - nagios_exit("WARNING", $msg) returned 1 ok 16 - nagios_exit("WARNING", $msg) output matched "TEST_PLUGIN WARNING.*test the second" ok 17 - nagios_exit("WARNING", $msg) stringified matched "TEST_PLUGIN WARNING.*test the second" ok 18 - nagios_exit(CRITICAL, $msg) returned 2 ok 19 - nagios_exit(CRITICAL, $msg) output matched "TEST_PLUGIN CRITICAL.*test the third" ok 20 - nagios_exit("CRITICAL", $msg) returned 2 ok 21 - nagios_exit("CRITICAL", $msg) output matched "TEST_PLUGIN CRITICAL.*test the third" ok 22 - nagios_exit("CRITICAL", $msg) stringified matched "TEST_PLUGIN CRITICAL.*test the third" ok 23 - nagios_exit(UNKNOWN, $msg) returned 3 ok 24 - nagios_exit(UNKNOWN, $msg) output matched "TEST_PLUGIN UNKNOWN.*test the fourth" ok 25 - nagios_exit("UNKNOWN", $msg) returned 3 ok 26 - nagios_exit("UNKNOWN", $msg) output matched "TEST_PLUGIN UNKNOWN.*test the fourth" ok 27 - nagios_exit("UNKNOWN", $msg) stringified matched "TEST_PLUGIN UNKNOWN.*test the fourth" ok 28 - nagios_exit(DEPENDENT, $msg) returned 4 ok 29 - nagios_exit(DEPENDENT, $msg) output matched "TEST_PLUGIN DEPENDENT.*test the fifth" ok 30 - nagios_exit("DEPENDENT", $msg) returned 4 ok 31 - nagios_exit("DEPENDENT", $msg) output matched "TEST_PLUGIN DEPENDENT.*test the fifth" ok 32 - nagios_exit("DEPENDENT", $msg) stringified matched "TEST_PLUGIN DEPENDENT.*test the fifth" ok 33 - nagios_exit('-1', $msg) returned 3 ok 34 - nagios_exit('-1', $msg) output matched "UNKNOWN.*testing code -1" ok 35 - nagios_exit('7', $msg) returned 3 ok 36 - nagios_exit('7', $msg) output matched "UNKNOWN.*testing code 7" ok 37 - nagios_exit(undef, $msg) returned 3 ok 38 - nagios_exit(undef, $msg) output matched "UNKNOWN.*testing code undef" ok 39 - nagios_exit('', $msg) returned 3 ok 40 - nagios_exit('', $msg) output matched "UNKNOWN.*testing code ''" ok 41 - nagios_exit('string', $msg) returned 3 ok 42 - nagios_exit('string', $msg) output matched "UNKNOWN.*testing code 'string'" ok 43 - nagios_exit('', $msg) output matched "CRITICAL.*" ok 44 - nagios_exit(undef, $msg) output matched "CRITICAL.*" ok 45 - nagios_exit('3', $msg) output matched "CRITICAL.*3" ok 46 - nagios_die('die you dog') returned UNKNOWN ok 47 - nagios_die('die you dog') output matched "UNKNOWN.*die you dog" ok 48 - nagios_die('') returned UNKNOWN ok 49 - nagios_die('') output matched "UNKNOWN.*" ok 50 - nagios_die(undef) returned UNKNOWN ok 51 - nagios_die(undef) output matched "UNKNOWN.*" ok 52 - nagios_die(OK, $msg) returned 0 ok 53 - nagios_die(OK, $msg) output matched "OK.*test the first" ok 54 - nagios_die($msg, OK) returned 0 ok 55 - nagios_die($msg, OK) output matched "OK.*test the first" ok 56 - nagios_die("OK", $msg) returned 0 ok 57 - nagios_die("OK", $msg) output matched "OK.*test the first" ok 58 - nagios_die("OK", $msg) stringified matched "OK.*test the first" ok 59 - nagios_die($msg, "OK") returned 0 ok 60 - nagios_die($msg, "OK") output matched "OK.*test the first" ok 61 - nagios_die($msg, "OK") stringified matched "OK.*test the first" ok 62 - nagios_die(WARNING, $msg) returned 1 ok 63 - nagios_die(WARNING, $msg) output matched "WARNING.*test the second" ok 64 - nagios_die($msg, WARNING) returned 1 ok 65 - nagios_die($msg, WARNING) output matched "WARNING.*test the second" ok 66 - nagios_die("WARNING", $msg) returned 1 ok 67 - nagios_die("WARNING", $msg) output matched "WARNING.*test the second" ok 68 - nagios_die("WARNING", $msg) stringified matched "WARNING.*test the second" ok 69 - nagios_die($msg, "WARNING") returned 1 ok 70 - nagios_die($msg, "WARNING") output matched "WARNING.*test the second" ok 71 - nagios_die($msg, "WARNING") stringified matched "WARNING.*test the second" ok 72 - nagios_die(CRITICAL, $msg) returned 2 ok 73 - nagios_die(CRITICAL, $msg) output matched "CRITICAL.*test the third" ok 74 - nagios_die($msg, CRITICAL) returned 2 ok 75 - nagios_die($msg, CRITICAL) output matched "CRITICAL.*test the third" ok 76 - nagios_die("CRITICAL", $msg) returned 2 ok 77 - nagios_die("CRITICAL", $msg) output matched "CRITICAL.*test the third" ok 78 - nagios_die("CRITICAL", $msg) stringified matched "CRITICAL.*test the third" ok 79 - nagios_die($msg, "CRITICAL") returned 2 ok 80 - nagios_die($msg, "CRITICAL") output matched "CRITICAL.*test the third" ok 81 - nagios_die($msg, "CRITICAL") stringified matched "CRITICAL.*test the third" ok 82 - nagios_die(UNKNOWN, $msg) returned 3 ok 83 - nagios_die(UNKNOWN, $msg) output matched "UNKNOWN.*test the fourth" ok 84 - nagios_die($msg, UNKNOWN) returned 3 ok 85 - nagios_die($msg, UNKNOWN) output matched "UNKNOWN.*test the fourth" ok 86 - nagios_die("UNKNOWN", $msg) returned 3 ok 87 - nagios_die("UNKNOWN", $msg) output matched "UNKNOWN.*test the fourth" ok 88 - nagios_die("UNKNOWN", $msg) stringified matched "UNKNOWN.*test the fourth" ok 89 - nagios_die($msg, "UNKNOWN") returned 3 ok 90 - nagios_die($msg, "UNKNOWN") output matched "UNKNOWN.*test the fourth" ok 91 - nagios_die($msg, "UNKNOWN") stringified matched "UNKNOWN.*test the fourth" ok 92 - nagios_die(DEPENDENT, $msg) returned 4 ok 93 - nagios_die(DEPENDENT, $msg) output matched "DEPENDENT.*test the fifth" ok 94 - nagios_die($msg, DEPENDENT) returned 4 ok 95 - nagios_die($msg, DEPENDENT) output matched "DEPENDENT.*test the fifth" ok 96 - nagios_die("DEPENDENT", $msg) returned 4 ok 97 - nagios_die("DEPENDENT", $msg) output matched "DEPENDENT.*test the fifth" ok 98 - nagios_die("DEPENDENT", $msg) stringified matched "DEPENDENT.*test the fifth" ok 99 - nagios_die($msg, "DEPENDENT") returned 4 ok 100 - nagios_die($msg, "DEPENDENT") output matched "DEPENDENT.*test the fifth" ok 101 - nagios_die($msg, "DEPENDENT") stringified matched "DEPENDENT.*test the fifth" ok 102 - shortname() is 'NAGIOS-PLUGIN-02' ok 103 - message begins with 'NAGIOS-PLUGIN-02 OK' ok t/Nagios-Plugin-03................ 1..61 ok 1 - use Nagios::Plugin; ok 2 - use Nagios::Plugin::Functions; ok 3 - shortname() is NP_CHECK_MESSAGES_03 ok 4 - Code test 1 returned CRITICAL ok 5 - Code test 2 returned WARNING ok 6 - Code test 3 returned OK ok 7 - (critical, warning) code is CRITICAL ok 8 - (critical, warning) message is A B C ok 9 - (critical, warning, ok) code is CRITICAL ok 10 - (critical, warning, ok) message is A B C ok 11 - (critical, warning, $ok) code is CRITICAL ok 12 - (critical, warning, $ok) message is A B C ok 13 - (warning) code is WARNING ok 14 - (warning) message is D E F ok 15 - (warning, ok) code is WARNING ok 16 - (warning, ok) message is D E F ok 17 - (ok) code is OK ok 18 - (ok) message is G H I ok 19 - ($ok) code is OK ok 20 - ($ok) message is G H I ok 21 - joined '+' (critical, warning) message is A+B+C ok 22 - joined '' (warning) message is DEF ok 23 - joined undef (ok) message is G H I ok 24 - (critical, warning, ok) code is CRITICAL ok 25 - join_all ' :: ' (critical, warning, ok) message is A B C :: D E F :: G H I ok 26 - (critical, warning, $ok) code is CRITICAL ok 27 - join_all ' :: ' (critical, warning, $ok) message is A B C :: D E F :: G H I ok 28 - (critical, warning) code is CRITICAL ok 29 - join_all ' :: ' (critical, warning) message is A B C :: D E F ok 30 - (warning, ok) code is WARNING ok 31 - join_all ' :: ' (critical, warning, ok) message is D E F :: G H I ok 32 - (warning, $ok) code is WARNING ok 33 - join_all ' :: ' (critical, warning, $ok) message is D E F :: G H I ok 34 - (warning) code is WARNING ok 35 - join_all ' :: ' (critical, warning) message is D E F ok 36 - (CRITICAL, WARNING) code is CRITICAL ok 37 - (CRITICAL, WARNING) message is A B C ok 38 - (CRITICAL) code is CRITICAL ok 39 - (CRITICAL) message is A B C ok 40 - (WARNING) code is WARNING ok 41 - (WARNING) message is D E F ok 42 - (WARNING, OK) code is WARNING ok 43 - (WARNING, OK) message is D E F ok 44 - (OK) code is OK ok 45 - (OK) message is G H I ok 46 - (critical, warning) code is CRITICAL ok 47 - (critical, warning) message is A B C ok 48 - (critical) code is CRITICAL ok 49 - (critical) message is A B C ok 50 - (warning) code is WARNING ok 51 - (warning) message is D E F ok 52 - (warning, ok) code is WARNING ok 53 - (warning, ok) message is D E F ok 54 - (ok) code is OK ok 55 - (ok) message is G H I ok 56 - () code is OK ok 57 - () message is '' ok 58 - add_message dies on invalid code ok 59 - add_message dies on invalid code ok 60 - add_message dies on UNKNOWN code ok 61 - add_message dies on DEPENDENT code ok t/Nagios-Plugin-04................ 1..26 ok 1 - use Nagios::Plugin; ok 2 - constructor DOESN'T die without usage ok 3 - add_arg() dies if you haven't instantiated with usage ok 4 - getopts() dies if you haven't instantiated with usage ok 5 - Nagios::Plugin->can('opts') ok 6 - Getopt object is defined isa Nagios::Plugin::Getopt ok 7 - warning opt is accessible ok 8 - critical opt is accessible ok 9 - Nagios::Plugin->can('perfdata') ok 10 - Nagios::Plugin->can('threshold') ok 11 - check_threshold dies if called with no args ok 12 - check_threshold OK when called implicitly ok 13 - check_threshold WARNING ok 14 - check_threshold CRITICAL ok 15 - check_threshold CRITICAL with hash param ok 16 - check_threshold explicit OK ok 17 - check_threshold explicit WARNING ok 18 - check_threshold explicit CRITICAL ok 19 - everything is now UNKNOWN ok 20 - everything is now UNKNOWN ok 21 - everything is now UNKNOWN ok 22 - everything is now UNKNOWN ok 23 - check_threshold works (WARNING) after explicit set_thresholds ok 24 - and again ok 25 - and again ok 26 - now OK ok t/Nagios-Plugin-Functions-01...... 1..113 ok 1 - use Nagios::Plugin::Functions; ok 2 - use Nagios::Plugin; ok 3 - Version number for Nagios::Plugin the same as Functions: 0.27 ok 4 - use Nagios::Plugin::Threshold; ok 5 - Version number for Nagios::Plugin::Threshold the same as Functions: 0.27 ok 6 - use Nagios::Plugin::Getopt; ok 7 - Version number for Nagios::Plugin::Getopt the same as Functions: 0.27 ok 8 - use Nagios::Plugin::Performance; ok 9 - Version number for Nagios::Plugin::Performance the same as Functions: 0.27 ok 10 - use Nagios::Plugin::Range; ok 11 - Version number for Nagios::Plugin::Range the same as Functions: 0.27 ok 12 - get_shortname ok ok 13 - %ERRORS defined ok 14 - OK => 0 ok 15 - WARNING => 1 ok 16 - CRITICAL => 2 ok 17 - UNKNOWN => 3 ok 18 - DEPENDENT => 4 ok 19 - nagios_exit(OK, $msg) returned 0 ok 20 - nagios_exit(OK, $msg) output matched "OK.*test the first" ok 21 - nagios_exit("OK", $msg) returned 0 ok 22 - nagios_exit("OK", $msg) output matched "OK.*test the first" ok 23 - nagios_exit("OK", $msg) stringified matched "OK.*test the first" ok 24 - nagios_exit(WARNING, $msg) returned 1 ok 25 - nagios_exit(WARNING, $msg) output matched "WARNING.*test the second" ok 26 - nagios_exit("WARNING", $msg) returned 1 ok 27 - nagios_exit("WARNING", $msg) output matched "WARNING.*test the second" ok 28 - nagios_exit("WARNING", $msg) stringified matched "WARNING.*test the second" ok 29 - nagios_exit(CRITICAL, $msg) returned 2 ok 30 - nagios_exit(CRITICAL, $msg) output matched "CRITICAL.*test the third" ok 31 - nagios_exit("CRITICAL", $msg) returned 2 ok 32 - nagios_exit("CRITICAL", $msg) output matched "CRITICAL.*test the third" ok 33 - nagios_exit("CRITICAL", $msg) stringified matched "CRITICAL.*test the third" ok 34 - nagios_exit(UNKNOWN, $msg) returned 3 ok 35 - nagios_exit(UNKNOWN, $msg) output matched "UNKNOWN.*test the fourth" ok 36 - nagios_exit("UNKNOWN", $msg) returned 3 ok 37 - nagios_exit("UNKNOWN", $msg) output matched "UNKNOWN.*test the fourth" ok 38 - nagios_exit("UNKNOWN", $msg) stringified matched "UNKNOWN.*test the fourth" ok 39 - nagios_exit(DEPENDENT, $msg) returned 4 ok 40 - nagios_exit(DEPENDENT, $msg) output matched "DEPENDENT.*test the fifth" ok 41 - nagios_exit("DEPENDENT", $msg) returned 4 ok 42 - nagios_exit("DEPENDENT", $msg) output matched "DEPENDENT.*test the fifth" ok 43 - nagios_exit("DEPENDENT", $msg) stringified matched "DEPENDENT.*test the fifth" ok 44 - nagios_exit('-1', $msg) returned 3 ok 45 - nagios_exit('-1', $msg) output matched "UNKNOWN.*testing code -1" ok 46 - nagios_exit('7', $msg) returned 3 ok 47 - nagios_exit('7', $msg) output matched "UNKNOWN.*testing code 7" ok 48 - nagios_exit(undef, $msg) returned 3 ok 49 - nagios_exit(undef, $msg) output matched "UNKNOWN.*testing code undef" ok 50 - nagios_exit('', $msg) returned 3 ok 51 - nagios_exit('', $msg) output matched "UNKNOWN.*testing code ''" ok 52 - nagios_exit('string', $msg) returned 3 ok 53 - nagios_exit('string', $msg) output matched "UNKNOWN.*testing code 'string'" ok 54 - nagios_exit('', $msg) output matched "CRITICAL.*" ok 55 - nagios_exit(undef, $msg) output matched "CRITICAL.*" ok 56 - nagios_exit('3', $msg) output matched "CRITICAL.*3" ok 57 - nagios_die('die you dog') returned UNKNOWN ok 58 - nagios_die('die you dog') output matched "UNKNOWN.*die you dog" ok 59 - nagios_die('') returned UNKNOWN ok 60 - nagios_die('') output matched "UNKNOWN.*" ok 61 - nagios_die(undef) returned UNKNOWN ok 62 - nagios_die(undef) output matched "UNKNOWN.*" ok 63 - nagios_die(OK, $msg) returned 0 ok 64 - nagios_die(OK, $msg) output matched "OK.*test the first" ok 65 - nagios_die($msg, OK) returned 0 ok 66 - nagios_die($msg, OK) output matched "OK.*test the first" ok 67 - nagios_die("OK", $msg) returned 0 ok 68 - nagios_die("OK", $msg) output matched "OK.*test the first" ok 69 - nagios_die("OK", $msg) stringified matched "OK.*test the first" ok 70 - nagios_die($msg, "OK") returned 0 ok 71 - nagios_die($msg, "OK") output matched "OK.*test the first" ok 72 - nagios_die($msg, "OK") stringified matched "OK.*test the first" ok 73 - nagios_die(WARNING, $msg) returned 1 ok 74 - nagios_die(WARNING, $msg) output matched "WARNING.*test the second" ok 75 - nagios_die($msg, WARNING) returned 1 ok 76 - nagios_die($msg, WARNING) output matched "WARNING.*test the second" ok 77 - nagios_die("WARNING", $msg) returned 1 ok 78 - nagios_die("WARNING", $msg) output matched "WARNING.*test the second" ok 79 - nagios_die("WARNING", $msg) stringified matched "WARNING.*test the second" ok 80 - nagios_die($msg, "WARNING") returned 1 ok 81 - nagios_die($msg, "WARNING") output matched "WARNING.*test the second" ok 82 - nagios_die($msg, "WARNING") stringified matched "WARNING.*test the second" ok 83 - nagios_die(CRITICAL, $msg) returned 2 ok 84 - nagios_die(CRITICAL, $msg) output matched "CRITICAL.*test the third" ok 85 - nagios_die($msg, CRITICAL) returned 2 ok 86 - nagios_die($msg, CRITICAL) output matched "CRITICAL.*test the third" ok 87 - nagios_die("CRITICAL", $msg) returned 2 ok 88 - nagios_die("CRITICAL", $msg) output matched "CRITICAL.*test the third" ok 89 - nagios_die("CRITICAL", $msg) stringified matched "CRITICAL.*test the third" ok 90 - nagios_die($msg, "CRITICAL") returned 2 ok 91 - nagios_die($msg, "CRITICAL") output matched "CRITICAL.*test the third" ok 92 - nagios_die($msg, "CRITICAL") stringified matched "CRITICAL.*test the third" ok 93 - nagios_die(UNKNOWN, $msg) returned 3 ok 94 - nagios_die(UNKNOWN, $msg) output matched "UNKNOWN.*test the fourth" ok 95 - nagios_die($msg, UNKNOWN) returned 3 ok 96 - nagios_die($msg, UNKNOWN) output matched "UNKNOWN.*test the fourth" ok 97 - nagios_die("UNKNOWN", $msg) returned 3 ok 98 - nagios_die("UNKNOWN", $msg) output matched "UNKNOWN.*test the fourth" ok 99 - nagios_die("UNKNOWN", $msg) stringified matched "UNKNOWN.*test the fourth" ok 100 - nagios_die($msg, "UNKNOWN") returned 3 ok 101 - nagios_die($msg, "UNKNOWN") output matched "UNKNOWN.*test the fourth" ok 102 - nagios_die($msg, "UNKNOWN") stringified matched "UNKNOWN.*test the fourth" ok 103 - nagios_die(DEPENDENT, $msg) returned 4 ok 104 - nagios_die(DEPENDENT, $msg) output matched "DEPENDENT.*test the fifth" ok 105 - nagios_die($msg, DEPENDENT) returned 4 ok 106 - nagios_die($msg, DEPENDENT) output matched "DEPENDENT.*test the fifth" ok 107 - nagios_die("DEPENDENT", $msg) returned 4 ok 108 - nagios_die("DEPENDENT", $msg) output matched "DEPENDENT.*test the fifth" ok 109 - nagios_die("DEPENDENT", $msg) stringified matched "DEPENDENT.*test the fifth" ok 110 - nagios_die($msg, "DEPENDENT") returned 4 ok 111 - nagios_die($msg, "DEPENDENT") output matched "DEPENDENT.*test the fifth" ok 112 - nagios_die($msg, "DEPENDENT") stringified matched "DEPENDENT.*test the fifth" ok 113 - Caught exception ok t/Nagios-Plugin-Functions-02...... 1..37 ok 1 - use Nagios::Plugin::Functions; ok 2 - Code test 1 returned CRITICAL ok 3 - Code test 2 returned WARNING ok 4 - Code test 3 returned OK ok 5 - (critical, warning) code is CRITICAL ok 6 - (critical, warning) message is A B C ok 7 - (critical, warning, ok) code is CRITICAL ok 8 - (critical, warning, ok) message is A B C ok 9 - (critical, warning, $ok) code is CRITICAL ok 10 - (critical, warning, $ok) message is A B C ok 11 - (warning) code is WARNING ok 12 - (warning) message is D E F ok 13 - (warning, ok) code is WARNING ok 14 - (warning, ok) message is D E F ok 15 - (ok) code is OK ok 16 - (ok) message is G H I ok 17 - ($ok) code is OK ok 18 - ($ok) message is G H I ok 19 - joined '+' (critical, warning) message is A+B+C ok 20 - joined '' (warning) message is DEF ok 21 - joined undef (ok) message is G H I ok 22 - (critical, warning, ok) code is CRITICAL ok 23 - join_all ' :: ' (critical, warning, ok) message is A B C :: D E F :: G H I ok 24 - (critical, warning, $ok) code is CRITICAL ok 25 - join_all ' :: ' (critical, warning, $ok) message is A B C :: D E F :: G H I ok 26 - (critical, warning) code is CRITICAL ok 27 - join_all ' :: ' (critical, warning) message is A B C :: D E F ok 28 - (warning, ok) code is WARNING ok 29 - join_all ' :: ' (critical, warning, ok) message is D E F :: G H I ok 30 - (warning, $ok) code is WARNING ok 31 - join_all ' :: ' (critical, warning, $ok) message is D E F :: G H I ok 32 - (warning) code is WARNING ok 33 - join_all ' :: ' (critical, warning) message is D E F ok 34 - check_messages dies without message args ok 35 - check_messages dies without 'critical' message ok 36 - check_messages dies without 'warning' message ok 37 - check_messages ok with 'critical' and 'warning' messages ok t/Nagios-Plugin-Functions-03...... 1..8 ok 1 - use Nagios::Plugin::Functions; ok 2 - Moved up to WARNING ok 3 - Still at WARNING ok 4 - Now at CRITICAL ok 5 - This is OK ok 6 - This is still OK, not UNKNOWN ok 7 - Use WARNING in this list ok 8 - Return UNKNOWN if no parameters ok t/Nagios-Plugin-Getopt-01......... 1..76 ok 1 - use Nagios::Plugin::Getopt; ok 2 - constructor ok ok 3 - warning set to 3 ok 4 - critical set to 10 ok 5 - timeout set to 12 ok 6 - constructor ok [extra-opts] test_plugin -w 3 --critical 10 -v -v -v ok 7 - Verbose set to level 3 ok 8 - constructor ok [extra-opts] test_plugin -w 3 --critical 10 --verbose --verbose --verbose ok 9 - Verbose set to level 3 (longhand) ok 10 - constructor ok ok 11 - getopts died on missing args ok 12 - usage message ok 13 - missing arguments ok 14 - verbose set to 0 ok 15 - constructor ok ok 16 - getopts died on missing args ok 17 - usage message ok 18 - missing argument: critical ok 19 - no missing argument: warning ok 20 - warning set to 0 ok 21 - critical undef ok 22 - timeout set to default ok 23 - verbose set to true ok 24 - constructor ok ok 25 - warning 5 (default) ok 26 - critical set to 27 ok 27 - timeout set to 17 ok 28 - verbose set to true ok 29 - constructor ok ok 30 - getopts died on usage ok 31 - usage message ok 32 - no missing arguments ok 33 - constructor ok ok 34 - getopts died on usage ok 35 - usage message ok 36 - no missing arguments ok 37 - constructor ok ok 38 - getopts died on version ok 39 - version info includes plugin name ok 40 - version info includes version ok 41 - version info includes url ok 42 - no usage message ok 43 - no missing arguments ok 44 - constructor ok ok 45 - getopts died on version ok 46 - version info includes plugin name ok 47 - version info includes version ok 48 - version info includes url ok 49 - no usage message ok 50 - no missing arguments ok 51 - constructor ok ok 52 - getopts died on help ok 53 - help includes plugin name ok 54 - help includes version ok 55 - help includes url ok 56 - help includes licence ok 57 - help includes blurb ok 58 - help includes usage message ok 59 - help includes default options 1 ok 60 - help includes default options 2 ok 61 - help includes custom option 1 ok 62 - help includes custom option 2 ok 63 - no missing arguments ok 64 - constructor ok ok 65 - getopts died on help ok 66 - help includes plugin name ok 67 - help includes version ok 68 - help includes url ok 69 - help includes licence ok 70 - help includes blurb ok 71 - help includes usage message ok 72 - help includes default options 1 ok 73 - help includes default options 2 ok 74 - help includes custom option 1 ok 75 - help includes custom option 2, with expanded args ok 76 - no missing arguments ok t/Nagios-Plugin-Getopt-02......... 1..14 ok 1 - use Nagios::Plugin::Getopt; ok 2 - constructor ok ok 3 - default timeout set to 18 ok 4 - constructor ok ok 5 - getopts died on help ok 6 - help timeout changed to 18 ok 7 - constructor ok ok 8 - timeout changed to 25 ok 9 - constructor ok ok 10 - timeout changed to 10 ok 11 - constructor ok ok 12 - timeout changed to 2 ok 13 - loop timed out ok 14 - default timeout handler ok ok t/Nagios-Plugin-Getopt-03......... ok 1 - use Nagios::Plugin::Getopt; ok 2 - 00_basic ok 3 - 00_noextra ok 4 - 01_override1 ok 5 - 02_override2 ok 6 - 05_disk1 ok 7 - 05_disk2 ok 8 - 05_disk3 ok 9 - 05_disk4 ok 10 - 05_disk5 ok 11 - 05_disk6 ok 12 - 09_funnystuff ok 13 - 12_nosection_implicit ok 14 - 13_nosection_explicit_dies (Invalid section 'check_no_section' in config file '') ok 15 - 14_badsection_dies (Invalid section 'bad_section' in config file '') 1..15 ok t/Nagios-Plugin-Getopt-04......... 1..11 ok 1 - use Nagios::Plugin::Getopt; ok 2 - constructor ok ok 3 - getopts died on help ok 4 - warning ok ok 5 - critical ok ok 6 - x|y|z ok ok 7 - long ok ok 8 - hostname ok ok 9 - avatar ok ok 10 - disk multiline ok ok 11 - limit multiline ok ok t/Nagios-Plugin-Performance-02.... 1..3 ok 1 - use Nagios::Plugin::Performance; ok 2 - use_die correctly set on import ok 3 - use Nagios::Plugin::Performance; NAGIOS-PLUGIN-PERFORMANCE-02 OK - Test OK exit ok t/Nagios-Plugin-Performance....... 1..123 ok 1 - use Nagios::Plugin::Performance; # # using Nagios::Plugin::Performance revision 0.27 ok 2 - critical okay (15269) ok 3 - label okay (/) ok 4 - max okay (32768) ok 5 - min okay (0) ok 6 - rrdlabel okay (root) ok 7 - uom okay (MB) ok 8 - value okay (382) ok 9 - warning okay (15264) ok 10 - perfoutput okay (/=382MB;15264;15269;0;32768) ok 11 - threshold warning okay (15264) ok 12 - threshold critical okay (15269) ok 13 - perfoutput okay (/=382MB;15264;15269;0;32768) ok 14 - warning okay (15264) ok 15 - critical okay (15269) ok 16 - critical okay (9448) ok 17 - label okay (/var) ok 18 - max okay (undef) ok 19 - min okay (undef) ok 20 - rrdlabel okay (var) ok 21 - uom okay (MB) ok 22 - value okay (218) ok 23 - warning okay (9443) ok 24 - perfoutput okay (/var=218MB;9443;9448) ok 25 - threshold warning okay (9443) ok 26 - threshold critical okay (9448) ok 27 - perfoutput okay (/var=218MB;9443;9448) ok 28 - warning okay (9443) ok 29 - critical okay (9448) ok 30 - label okay ok 31 - rrd label okay ok 32 - value okay ok 33 - uom okay ok 34 - warn okay ok 35 - crit okay ok 36 - min undef ok 37 - max undef ok 38 - label okay ok 39 - rrd label okay ok 40 - value okay ok 41 - uom okay ok 42 - warn okay ok 43 - crit okay ok 44 - Errors correctly ok 45 - Errors on empty string ok 46 - label okay ok 47 - value okay ok 48 - uom okay ok 49 - warn okay ok 50 - crit okay ok 51 - label okay ok 52 - value okay with 0 as string ok 53 - uom empty ok 54 - warn okay ok 55 - crit okay ok 56 - label okay ok 57 - label okay ok 58 - label okay ok 59 - value okay ok 60 - uom empty ok 61 - warn okay ok 62 - crit okay ok 63 - parse correctly with linefeed at end (nagiosgraph) ok 64 - label okay ok 65 - value okay ok 66 - uom okay ok 67 - warn okay ok 68 - crit okay ok 69 - label okay ok 70 - value okay ok 71 - uom okay ok 72 - warn okay ok 73 - crit okay ok 74 - changing / to _ ok 75 - Warning range has been set ok 76 - replacing bad characters ok 77 - shortening rrd label ok 78 - label okay ok 79 - value okay ok 80 - uom okay ok 81 - Warning range has been set ok 82 - Critical range has been set ok 83 - warn okay ok 84 - crit okay ok 85 - label okay ok 86 - value okay ok 87 - uom okay ok 88 - Warning range has been set ok 89 - Critical range has been set ok 90 - warn okay ok 91 - crit okay ok 92 - label okay ok 93 - value okay ok 94 - uom okay ok 95 - Warning range has been set ok 96 - Critical range has not been set ok 97 - warn okay ok 98 - label okay ok 99 - value okay ok 100 - uom okay ok 101 - Warning range has been set ok 102 - Critical range has been set ok 103 - warn okay ok 104 - crit okay ok 105 - label okay ok 106 - value okay ok 107 - uom okay ok 108 - Warning range has been set ok 109 - Critical range has been set ok 110 - warn okay ok 111 - warn okay ok 112 - label okay for scientific notation ok 113 - value okay ok 114 - uom okay ok 115 - Warning range has not been set ok 116 - Critical range has not been set ok 117 - label okay for scientific notation in warnings and criticals ok 118 - value okay ok 119 - uom okay ok 120 - Warning range has been set ok 121 - warn okay ok 122 - Critical range has been set ok 123 - warn okay ok t/Nagios-Plugin-Range............. 1..151 ok 1 - use Nagios::Plugin::Range; # # using Nagios::Plugin::Range revision 0.27 # 'garbage in' checks -- you should see 7 invalid range definition warnings here: invalid range definition ':' at t/Nagios-Plugin-Range.t line 28 ok 2 - ':' should not be a valid range invalid range definition '1:~' at t/Nagios-Plugin-Range.t line 28 ok 3 - '1:~' should not be a valid range invalid range definition 'foo' at t/Nagios-Plugin-Range.t line 28 ok 4 - 'foo' should not be a valid range invalid range definition '1-10' at t/Nagios-Plugin-Range.t line 28 ok 5 - '1-10' should not be a valid range invalid range definition '10:~' at t/Nagios-Plugin-Range.t line 28 ok 6 - '10:~' should not be a valid range invalid range definition '1-10:2.4' at t/Nagios-Plugin-Range.t line 28 ok 7 - '1-10:2.4' should not be a valid range invalid range definition '1,10' at t/Nagios-Plugin-Range.t line 28 ok 8 - '1,10' should not be a valid range # range: 0..6 inclusive ok 9 - The object isa Nagios::Plugin::Range ok 10 - '6' is valid range ok 11 - Start correct ok 12 - Not using negative infinity ok 13 - End correct ok 14 - Not using positive infinity ok 15 - Stringification back to original ok 16 - -1 should not be in the range (line 61) ok 17 - 0 should be in the range (line 61) ok 18 - 4 should be in the range (line 61) ok 19 - 6 should be in the range (line 61) ok 20 - 6.1 should not be in the range (line 61) ok 21 - 79.999999 should not be in the range (line 61) # range : -7..23, inclusive ok 22 - '-7:23' is valid range ok 23 - Start correct ok 24 - Not using negative infinity ok 25 - End correct ok 26 - Not using positive infinity ok 27 - Stringification back to original ok 28 - -23 should not be in the range (line 82) ok 29 - -7 should be in the range (line 82) ok 30 - -1 should be in the range (line 82) ok 31 - 0 should be in the range (line 82) ok 32 - 4 should be in the range (line 82) ok 33 - 23 should be in the range (line 82) ok 34 - 23.1 should not be in the range (line 82) ok 35 - 79.999999 should not be in the range (line 82) # range : 0..5.75, inclusive ok 36 - ':5.75' is valid range ok 37 - Start correct ok 38 - Not using negative infinity ok 39 - End correct ok 40 - Not using positive infinity ok 41 - Stringification to simplification ok 42 - -1 should not be in the range (line 103) ok 43 - 0 should be in the range (line 103) ok 44 - 4 should be in the range (line 103) ok 45 - 5.75 should be in the range (line 103) ok 46 - 5.7501 should not be in the range (line 103) ok 47 - 6 should not be in the range (line 103) ok 48 - 6.1 should not be in the range (line 103) ok 49 - 79.999999 should not be in the range (line 103) # range : negative infinity .. -95.99, inclusive ok 50 - '~:-95.99' is valid range ok 51 - Using negative infinity ok 52 - End correct ok 53 - Not using positive infinity ok 54 - Stringification back to original ok 55 - -1001341 should be in the range (line 125) ok 56 - -96 should be in the range (line 125) ok 57 - -95.999 should be in the range (line 125) ok 58 - -95.99 should be in the range (line 125) ok 59 - -95.989 should not be in the range (line 125) ok 60 - -95 should not be in the range (line 125) ok 61 - 0 should not be in the range (line 125) ok 62 - 5.7501 should not be in the range (line 125) ok 63 - 79.999999 should not be in the range (line 125) # range 10..infinity , inclusive ok 64 - -1001341 should be in the range (line 128) ok 65 - -96 should be in the range (line 128) ok 66 - -95.999 should be in the range (line 128) ok 67 - -95.99 should be in the range (line 128) ok 68 - -95.989 should not be in the range (line 128) ok 69 - -95 should not be in the range (line 128) ok 70 - 0 should not be in the range (line 128) ok 71 - 5.7501 should not be in the range (line 128) ok 72 - 79.999999 should not be in the range (line 128) ok 73 - '10:' is valid range ok 74 - Start correct ok 75 - Not using negative infinity ok 76 - Using positive infinity ok 77 - Stringification back to original ok 78 - -95.999 should not be in the range (line 144) ok 79 - -1 should not be in the range (line 144) ok 80 - 0 should not be in the range (line 144) ok 81 - 9.91 should not be in the range (line 144) ok 82 - 10 should be in the range (line 144) ok 83 - 11.1 should be in the range (line 144) ok 84 - 123456789012346 should be in the range (line 144) # range 123456789012345..infinity , inclusive ok 85 - -95.999 should not be in the range (line 149) ok 86 - -1 should not be in the range (line 149) ok 87 - 0 should not be in the range (line 149) ok 88 - 9.91 should not be in the range (line 149) ok 89 - 10 should be in the range (line 149) ok 90 - 11.1 should be in the range (line 149) ok 91 - 123456789012346 should be in the range (line 149) ok 92 - '123456789012345:' is valid range ok 93 - Start correct ok 94 - Not using negative infinity ok 95 - Using positive infinity ok 96 - Stringification back to original ok 97 - -95.999 should not be in the range (line 169) ok 98 - -1 should not be in the range (line 169) ok 99 - 0 should not be in the range (line 169) ok 100 - 123456789012344.91 should not be in the range (line 169) ok 101 - 123456789012345 should be in the range (line 169) ok 102 - 123456789012345.61 should be in the range (line 169) ok 103 - 123456789012346 should be in the range (line 169) # range: <= zero ok 104 - '~:0' is valid range ok 105 - Using negative infinity ok 106 - End correct ok 107 - Not using positive infinity ok 108 - Will alert on outside of range ok 109 - Stringification back to original ok 110 - 0.5 - alert ok 111 - -10 - no alert ok 112 - 0 - no alert ok 113 - -123456789012345 should be in the range (line 190) ok 114 - -1 should be in the range (line 190) ok 115 - 0 should be in the range (line 190) ok 116 - 0.001 should not be in the range (line 190) ok 117 - 123456789012345 should not be in the range (line 190) # range: OUTSIDE 0..657.8210567 ok 118 - "@0:657.8210567" is a valid range ok 119 - Start correct ok 120 - Not using negative infinity ok 121 - End correct ok 122 - Not using positive infinity ok 123 - Will alert on inside of range ok 124 - Stringification to simplified version ok 125 - 32.88 - alert ok 126 - -2 - no alert ok 127 - 657.8210567 - alert ok 128 - 0 - alert ok 129 - -134151 should be in the range (line 215) ok 130 - -1 should be in the range (line 215) ok 131 - 0 should not be in the range (line 215) ok 132 - 0.001 should not be in the range (line 215) ok 133 - 657.8210567 should not be in the range (line 215) ok 134 - 657.9 should be in the range (line 215) ok 135 - 123456789012345 should be in the range (line 215) # range: 1..1 inclusive (equals one) ok 136 - "1:1" is a valid range ok 137 - Start correct ok 138 - Not using negative infinity ok 139 - End correct ok 140 - Not using positive infinity ok 141 - Stringification to simplified version ok 142 - 0.5 - alert ok 143 - 1 - no alert ok 144 - 5.2 - alert ok 145 - -1 should not be in the range (line 237) ok 146 - 0 should not be in the range (line 237) ok 147 - 0.5 should not be in the range (line 237) ok 148 - 1 should be in the range (line 237) ok 149 - 1.001 should not be in the range (line 237) ok 150 - 5.2 should not be in the range (line 237) ok 151 - "2:1" is rejected ok t/Nagios-Plugin-Threshold......... 1..87 ok 1 - use Nagios::Plugin::Threshold; ok 2 - use Nagios::Plugin::Functions; # # using Nagios::Plugin::Threshold revision 0.27 # threshold: critical if > 80 ok 3 - Threshold ('', '80') set ok 4 - Warning not set ok 5 - Critical strat set correctly ok 6 - Critical end set correctly ok 7 - not forever ok 8 - -1 - CRITICAL ok 9 - 4 - OK ok 10 - 79.999999 - OK ok 11 - 80 - OK ok 12 - 80.1 - CRITICAL ok 13 - 102321 - CRITICAL # threshold: warn if less than 5 or more than 33. ok 14 - Threshold ('5:33', '') set ok 15 - Warning start set ok 16 - Warning end set ok 17 - Critical not set ok 18 - -1 - WARNING ok 19 - 4 - WARNING ok 20 - 4.999999 - WARNING ok 21 - 5 - OK ok 22 - 14.21 - OK ok 23 - 33 - OK ok 24 - 33.01 - WARNING ok 25 - 10231 - WARNING # threshold: warn if more than 30; critical if > 60 ok 26 - Threshold ('~:30', '~:60') set ok 27 - Warning end set ok 28 - Critical end set ok 29 - Critical starts at negative infinity ok 30 - -1 - OK ok 31 - 4 - OK ok 32 - 29.999999 - OK ok 33 - 30 - OK ok 34 - 30.1 - WARNING ok 35 - 50.90 - WARNING ok 36 - 59.9 - WARNING ok 37 - 60 - WARNING ok 38 - 60.00001 - CRITICAL ok 39 - 10231 - CRITICAL # threshold: critical if > 25 ok 40 - Threshold ('', '~:25') set (~:25) ok 41 - Warning not set ok 42 - Critical end set ok 43 - Critical starts at negative infinity ok 44 - -1 - OK ok 45 - 4 - OK ok 46 - 10 - OK ok 47 - 14.21 - OK ok 48 - 25 - OK ok 49 - 25.01 - CRITICAL ok 50 - 31001 - CRITICAL # threshold: warn if OUTSIDE {10..25} , critical if > 25 ok 51 - Threshold ('10:25', '~:25') set ok 52 - Warning start set ok 53 - Warning end set ok 54 - Critical end set ok 55 - -1 - WARNING ok 56 - 4 - WARNING ok 57 - 9.999999 - WARNING ok 58 - 10 - OK ok 59 - 14.21 - OK ok 60 - 25 - OK ok 61 - 25.01 - CRITICAL ok 62 - 31001 - CRITICAL # warn if INSIDE {10..25} , critical if < 10 ok 63 - -1 - CRITICAL ok 64 - 4 - CRITICAL ok 65 - 9.999999 - CRITICAL ok 66 - 10 - WARNING ok 67 - 14.21 - WARNING ok 68 - 25 - WARNING ok 69 - 25.01 - OK ok 70 - 31001 - OK # threshold mutator: warn if more than 30; critical if > 60 ok 71 - same threshold object after $t->set_thresholds ok 72 - Threshold ('0:45', '0:90') set ok 73 - Warning start ok ok 74 - Warning end ok ok 75 - Critical start ok ok 76 - Critical end ok ok 77 - Threshold from ranges ('50', '70:90') set ok 78 - Warning start ok ok 79 - Warning end ok ok 80 - Critical start ok ok 81 - Critical end ok ok 82 - Threshold from string + range ('~:20', '90:') set ok 83 - Warning start ok (infinity) ok 84 - Warning end ok ok 85 - Critical start ok ok 86 - Critical end ok (infinity) ok 87 - sweet, made it to the end. ok All tests successful. Files=16, Tests=855, 8 wallclock secs ( 0.61 usr 0.32 sys + 6.28 cusr 1.06 csys = 8.27 CPU) Result: PASS TONVOON/Nagios-Plugin-0.27.tar.gz make test TEST_VERBOSE=1 -- OK Picked up abstract from Makefile Ton Voon <ton.voon@altinity.com> A family of perl modules to streamline writing Nagios >>> (cd /Users/fly1003/var/cpan/build/Nagios-Plugin-0.27-Y5AXrq && tar cvf - Nagios-Plugin-0.27.ppd blib) | gzip -c >/Users/fly1003/var/REPO/T/TO/TONVOON/Nagios-Plugin-0.27.tar.gz Nagios-Plugin-0.27.ppd blib/ blib/lib/ blib/lib/Nagios/ blib/lib/Nagios/Plugin/ blib/lib/Nagios/Plugin/Config.pm blib/lib/Nagios/Plugin/ExitResult.pm blib/lib/Nagios/Plugin/Functions.pm blib/lib/Nagios/Plugin/Getopt.pm blib/lib/Nagios/Plugin/Performance.pm blib/lib/Nagios/Plugin/Range.pm blib/lib/Nagios/Plugin/Threshold.pm blib/lib/Nagios/Plugin.pm blib/man3/ blib/man3/Nagios::Plugin.3 blib/man3/Nagios::Plugin::Config.3 blib/man3/Nagios::Plugin::ExitResult.3 blib/man3/Nagios::Plugin::Functions.3 blib/man3/Nagios::Plugin::Getopt.3 blib/man3/Nagios::Plugin::Performance.3 blib/man3/Nagios::Plugin::Range.3 blib/man3/Nagios::Plugin::Threshold.3 >>> mv /Users/fly1003/var/cpan/build/Nagios-Plugin-0.27-Y5AXrq/Nagios-Plugin-0.27.ppd /Users/fly1003/var/REPO/T/TO/TONVOON Running make for G/GB/GBARR/Nagios-Plugin-LDAP-0.04.tar.gz Prepending /Users/fly1003/var/cpan/build/Nagios-Plugin-0.27-Y5AXrq/blib/arch /Users/fly1003/var/cpan/build/Nagios-Plugin-0.27-Y5AXrq/blib/lib /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/arch /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/lib to PERL5LIB for 'get' Has already been unwrapped into directory /Users/fly1003/var/cpan/build/Nagios-Plugin-LDAP-0.04-u6XYvm Prepending /Users/fly1003/var/cpan/build/Nagios-Plugin-0.27-Y5AXrq/blib/arch /Users/fly1003/var/cpan/build/Nagios-Plugin-0.27-Y5AXrq/blib/lib /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/arch /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/lib to PERL5LIB for 'make' CPAN.pm: Going to build G/GB/GBARR/Nagios-Plugin-LDAP-0.04.tar.gz >>> make /Users/fly1003/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Nagios::Plugin,0 cp lib/Nagios/Plugin/LDAP.pm blib/lib/Nagios/Plugin/LDAP.pm cp bin/check_ldap_repl blib/script/check_ldap_repl /Users/fly1003/bin/perl "-Iinc" "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/check_ldap_repl Manifying blib/man3/Nagios::Plugin::LDAP.3 GBARR/Nagios-Plugin-LDAP-0.04.tar.gz make -- OK Prepending /Users/fly1003/var/cpan/build/Nagios-Plugin-0.27-Y5AXrq/blib/arch /Users/fly1003/var/cpan/build/Nagios-Plugin-0.27-Y5AXrq/blib/lib /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/arch /Users/fly1003/var/cpan/build/Math-Calc-Units-1.06-l4Gl4T/blib/lib to PERL5LIB for 'test' Running make test >>> make test TEST_VERBOSE=1 /Users/fly1003/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Nagios::Plugin,0 PERL_DL_NONLAZY=1 /Users/fly1003/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'inc', 'blib/lib', 'blib/arch')" t/00-load.t t/00-load.... 1..1 ok 1 - use Nagios::Plugin::LDAP; ok All tests successful. Files=1, Tests=1, 1 wallclock secs ( 0.04 usr 0.03 sys + 0.60 cusr 0.09 csys = 0.76 CPU) Result: PASS GBARR/Nagios-Plugin-LDAP-0.04.tar.gz make test TEST_VERBOSE=1 -- OK Graham Barr <gbarr@pobox.com> Nagios plugin to observe LDAP server >>> (cd /Users/fly1003/var/cpan/build/Nagios-Plugin-LDAP-0.04-u6XYvm && tar cvf - Nagios-Plugin-LDAP-0.04.ppd blib) | gzip -c >/Users/fly1003/var/REPO/G/GB/GBARR/Nagios-Plugin-LDAP-0.04.tar.gz Nagios-Plugin-LDAP-0.04.ppd blib/ blib/lib/ blib/lib/Nagios/ blib/lib/Nagios/Plugin/ blib/lib/Nagios/Plugin/LDAP.pm blib/man3/ blib/man3/Nagios::Plugin::LDAP.3 blib/script/ blib/script/check_ldap_repl >>> mv /Users/fly1003/var/cpan/build/Nagios-Plugin-LDAP-0.04-u6XYvm/Nagios-Plugin-LDAP-0.04.ppd /Users/fly1003/var/REPO/G/GB/GBARR Finished 2008-10-18T13:31:36