Start 2009-03-06T08:22:02 ActivePerl-1003 CPAN-1.9351 LIB=C:\PROGRA~1\MICROS~4\VC98\Lib\PSDK;C:\PROGRA~1\MICROS~2\Lib;C:\PROGRA~1\MICROS~4\VC98\Lib;C:\PROGRA~1\MICROS~4\VC98\MFC\Lib INCLUDE=C:\PROGRA~1\MICROS~2\Include;C:\PROGRA~1\MICROS~4\VC98\ATL\Include;C:\PROGRA~1\MICROS~4\VC98\Include;C:\PROGRA~1\MICROS~4\VC98\MFC\Include PATH=C:\PROGRA~1\MICROS~2\Bin;C:\PROGRA~1\MICROS~2\Bin\WinNT;C:\PROGRA~1\MICROS~4\VC98\Bin;C:\PROGRA~1\MICROS~4\Common\MSDev98\Bin;C:\Perl\site\bin;C:\Perl\bin;C:\cygwin\bin;C:\mingw\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem Going to read 'C:\cpanfly\var\cpan\Metadata' Database was generated on Fri, 06 Mar 2009 08:28:59 GMT Running make for G/GB/GBARR/Nagios-Plugin-Beanstalk-0.03.tar.gz Fetching with LWP: http://cpan.nas.activestate.com/authors/id/G/GB/GBARR/Nagios-Plugin-Beanstalk-0.03.tar.gz Fetching with LWP: http://cpan.nas.activestate.com/authors/id/G/GB/GBARR/CHECKSUMS Checksum for C:\cpanfly\var\cpan\sources\authors\id\G\GB\GBARR\Nagios-Plugin-Beanstalk-0.03.tar.gz ok Nagios-Plugin-Beanstalk-0.03/ Nagios-Plugin-Beanstalk-0.03/check_beanstalkd Nagios-Plugin-Beanstalk-0.03/lib/ Nagios-Plugin-Beanstalk-0.03/lib/Nagios/ Nagios-Plugin-Beanstalk-0.03/lib/Nagios/Plugin/ Nagios-Plugin-Beanstalk-0.03/lib/Nagios/Plugin/Beanstalk.pm Nagios-Plugin-Beanstalk-0.03/Makefile.PL Nagios-Plugin-Beanstalk-0.03/MANIFEST Nagios-Plugin-Beanstalk-0.03/MANIFEST.SKIP Nagios-Plugin-Beanstalk-0.03/META.yml Nagios-Plugin-Beanstalk-0.03/SIGNATURE Nagios-Plugin-Beanstalk-0.03/t/ Nagios-Plugin-Beanstalk-0.03/t/00-load.t CPAN.pm: Going to build G/GB/GBARR/Nagios-Plugin-Beanstalk-0.03.tar.gz >>> C:\Perl\bin\perl.exe Makefile.PL Warning: prerequisite Nagios::Plugin 0 not found. Checking if your kit is complete... Looks good Writing Makefile for Nagios::Plugin::Beanstalk ---- Unsatisfied dependencies detected during ---- ---- GBARR/Nagios-Plugin-Beanstalk-0.03.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.32.tar.gz Checksum for C:\cpanfly\var\cpan\sources\authors\id\T\TO\TONVOON\Nagios-Plugin-0.32.tar.gz ok Nagios-Plugin-0.32/ Nagios-Plugin-0.32/Changes Nagios-Plugin-0.32/lib/ Nagios-Plugin-0.32/lib/Nagios/ Nagios-Plugin-0.32/lib/Nagios/Plugin/ Nagios-Plugin-0.32/lib/Nagios/Plugin/Config.pm Nagios-Plugin-0.32/lib/Nagios/Plugin/ExitResult.pm Nagios-Plugin-0.32/lib/Nagios/Plugin/Functions.pm Nagios-Plugin-0.32/lib/Nagios/Plugin/Getopt.pm Nagios-Plugin-0.32/lib/Nagios/Plugin/Performance.pm Nagios-Plugin-0.32/lib/Nagios/Plugin/Range.pm Nagios-Plugin-0.32/lib/Nagios/Plugin/Threshold.pm Nagios-Plugin-0.32/lib/Nagios/Plugin.pm Nagios-Plugin-0.32/Makefile.PL Nagios-Plugin-0.32/MANIFEST Nagios-Plugin-0.32/META.yml Nagios-Plugin-0.32/README Nagios-Plugin-0.32/t/ Nagios-Plugin-0.32/t/check_stuff.pl Nagios-Plugin-0.32/t/check_stuff.t Nagios-Plugin-0.32/t/Nagios-Plugin-01.t Nagios-Plugin-0.32/t/Nagios-Plugin-02.t Nagios-Plugin-0.32/t/Nagios-Plugin-03.t Nagios-Plugin-0.32/t/Nagios-Plugin-04.t Nagios-Plugin-0.32/t/Nagios-Plugin-Functions-01.t Nagios-Plugin-0.32/t/Nagios-Plugin-Functions-02.t Nagios-Plugin-0.32/t/Nagios-Plugin-Functions-03.t Nagios-Plugin-0.32/t/Nagios-Plugin-Getopt-01.t Nagios-Plugin-0.32/t/Nagios-Plugin-Getopt-02.t Nagios-Plugin-0.32/t/Nagios-Plugin-Getopt-03.t Nagios-Plugin-0.32/t/Nagios-Plugin-Getopt-04.t Nagios-Plugin-0.32/t/Nagios-Plugin-Performance-02.t Nagios-Plugin-0.32/t/Nagios-Plugin-Performance.t Nagios-Plugin-0.32/t/Nagios-Plugin-Range.t Nagios-Plugin-0.32/t/Nagios-Plugin-Threshold.t Nagios-Plugin-0.32/t/npg03/ Nagios-Plugin-0.32/t/npg03/expected/ Nagios-Plugin-0.32/t/npg03/expected/00_basic Nagios-Plugin-0.32/t/npg03/expected/00_noextra Nagios-Plugin-0.32/t/npg03/expected/01_override1 Nagios-Plugin-0.32/t/npg03/expected/02_override2 Nagios-Plugin-0.32/t/npg03/expected/05_disk1 Nagios-Plugin-0.32/t/npg03/expected/05_disk2 Nagios-Plugin-0.32/t/npg03/expected/05_disk3 Nagios-Plugin-0.32/t/npg03/expected/05_disk4 Nagios-Plugin-0.32/t/npg03/expected/05_disk5 Nagios-Plugin-0.32/t/npg03/expected/05_disk6 Nagios-Plugin-0.32/t/npg03/expected/09_funnystuff Nagios-Plugin-0.32/t/npg03/expected/12_nosection_implicit Nagios-Plugin-0.32/t/npg03/input/ Nagios-Plugin-0.32/t/npg03/input/00_basic Nagios-Plugin-0.32/t/npg03/input/00_noextra Nagios-Plugin-0.32/t/npg03/input/01_override1 Nagios-Plugin-0.32/t/npg03/input/02_override2 Nagios-Plugin-0.32/t/npg03/input/05_disk1 Nagios-Plugin-0.32/t/npg03/input/05_disk2 Nagios-Plugin-0.32/t/npg03/input/05_disk3 Nagios-Plugin-0.32/t/npg03/input/05_disk4 Nagios-Plugin-0.32/t/npg03/input/05_disk5 Nagios-Plugin-0.32/t/npg03/input/05_disk6 Nagios-Plugin-0.32/t/npg03/input/09_funnystuff Nagios-Plugin-0.32/t/npg03/input/12_nosection_implicit Nagios-Plugin-0.32/t/npg03/input/13_nosection_explicit_dies Nagios-Plugin-0.32/t/npg03/input/14_badsection_dies Nagios-Plugin-0.32/t/npg03/plugins.ini Nagios-Plugin-0.32/t/npg03/README CPAN.pm: Going to build T/TO/TONVOON/Nagios-Plugin-0.32.tar.gz >>> C:\Perl\bin\perl.exe Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Nagios::Plugin >>> nmake Microsoft (R) Program Maintenance Utility Version 7.00.8882 Copyright (C) Microsoft Corp 1988-2000. All rights reserved. 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 TONVOON/Nagios-Plugin-0.32.tar.gz nmake -- OK Running make test >>> nmake test TEST_VERBOSE=1 Microsoft (R) Program Maintenance Utility Version 7.00.8882 Copyright (C) Microsoft Corp 1988-2000. All rights reserved. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib\lib', 'blib\arch')" t/*.t # running `C:\Perl\bin\perl.exe -Ilib t/check_stuff.pl -r 99 ` # output: 'STUFF UNKNOWN - invalid number supplied for the -r option # ' # running `C:\Perl\bin\perl.exe -Ilib t/check_stuff.pl -w 10:15 -c~:15 -r 0` # output: 'STUFF WARNING - sample result was 0 # ' # running `C:\Perl\bin\perl.exe -Ilib t/check_stuff.pl -w 10:15 -c~:15 -r 15.8` # output: 'STUFF CRITICAL - sample result was 15.8 # ' # running `C:\Perl\bin\perl.exe -Ilib t/check_stuff.pl -w 10:15 -c~:15 -r 11` # output: 'STUFF OK - sample result was 11 # ' t/check_stuff.t ................... 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 ok 7 - exits(3) with -r 99 ok 8 - UNKNOWN (warning: invalid -r) with -r 99 ok 9 - exits(1) with -w 10:15 -c~:15 -r 0 ok 10 - looks WARNING with -w 10:15 -c~:15 -r 0 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 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 # # using Nagios::Plugin revision 0.32 # warn if < 10, critical if > 25 t/Nagios-Plugin-01.t .............. 1..13 ok 1 - use Nagios::Plugin; 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 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.t .............. 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.t .............. 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.t .............. 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.t .... 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.32 ok 4 - use Nagios::Plugin::Threshold; ok 5 - Version number for Nagios::Plugin::Threshold the same as Functions: 0.32 ok 6 - use Nagios::Plugin::Getopt; ok 7 - Version number for Nagios::Plugin::Getopt the same as Functions: 0.32 ok 8 - use Nagios::Plugin::Performance; ok 9 - Version number for Nagios::Plugin::Performance the same as Functions: 0.32 ok 10 - use Nagios::Plugin::Range; ok 11 - Version number for Nagios::Plugin::Range the same as Functions: 0.32 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.t .... 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.t .... 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.t ....... 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.t ....... 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.t ....... 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.t ....... 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.t .. 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 # # using Nagios::Plugin::Performance revision 0.32 # Failed test 'warn okay' # at t/Nagios-Plugin-Performance.t line 260. # got: '-1.1e-005:0.001' # expected: '-1.1e-05:0.001' # Failed test 'warn okay' # at t/Nagios-Plugin-Performance.t line 262. # got: '430:4.3e+025' # expected: '430:4.3e+25' # Looks like you failed 2 tests of 230. t/Nagios-Plugin-Performance.t ..... 1..230 ok 1 - use Nagios::Plugin::Performance; ok 2 - value okay 382 ok 3 - label okay / ok 4 - uom okay MB ok 5 - perfoutput okay (/=382MB;15264;15269;0;32768) ok 6 - threshold warning okay (15264) ok 7 - threshold critical okay (15269) ok 8 - rrdlabel okay ok 9 - clean_label okay ok 10 - perfoutput okay (/=382MB;15264;15269;0;32768) ok 11 - threshold warning okay (15264) ok 12 - threshold critical okay (15269) ok 13 - value okay 218 ok 14 - label okay /var ok 15 - uom okay MB ok 16 - perfoutput okay (/var=218MB;9443;9448) ok 17 - threshold warning okay (9443) ok 18 - threshold critical okay (9448) ok 19 - rrdlabel okay ok 20 - clean_label okay ok 21 - perfoutput okay (/var=218MB;9443;9448) ok 22 - threshold warning okay (9443) ok 23 - threshold critical okay (9448) ok 24 - value okay 218 ok 25 - label okay /var/long@:-/filesystem/name/and/bad/chars ok 26 - uom okay MB ok 27 - perfoutput okay (/var/long@:-/filesystem/name/and/bad/chars=218MB;9443;9448) ok 28 - threshold warning okay (9443) ok 29 - threshold critical okay (9448) ok 30 - rrdlabel okay ok 31 - clean_label okay ok 32 - perfoutput okay (/var/long@:-/filesystem/name/and/bad/chars=218MB;9443;9448) ok 33 - threshold warning okay (9443) ok 34 - threshold critical okay (9448) ok 35 - value okay 36 ok 36 - label okay page file ok 37 - uom okay % ok 38 - perfoutput okay ('page file'=36%;80;90) ok 39 - threshold warning okay (80) ok 40 - threshold critical okay (90) ok 41 - rrdlabel okay ok 42 - clean_label okay ok 43 - perfoutput okay ('page file'=36%;80;90) ok 44 - threshold warning okay (80) ok 45 - threshold critical okay (90) ok 46 - value okay 5 ok 47 - label okay data ok 48 - uom okay ok 49 - perfoutput okay (data=5;;) ok 50 ok 51 ok 52 - rrdlabel okay ok 53 - clean_label okay ok 54 - perfoutput okay (data=5;;) ok 55 ok 56 ok 57 - label okay ok 58 - rrd label okay ok 59 - value okay ok 60 - uom okay ok 61 - warn okay ok 62 - crit okay ok 63 - min undef ok 64 - max undef ok 65 - label okay ok 66 - rrd label okay ok 67 - value okay ok 68 - uom okay ok 69 - warn okay ok 70 - crit okay ok 71 - Errors correctly ok 72 - Errors on empty string ok 73 - One bad piece of data - only one returned ok 74 - label okay for different numeric ok 75 - value okay ok 76 - uom okay ok 77 - Warning range has been set ok 78 - warn okay ok 79 - Critical range has been set ok 80 - warn okay ok 81 - One bad piece of data - only one returned ok 82 - label okay for different numeric ok 83 - value okay ok 84 - uom okay ok 85 - Warning range has been set ok 86 - warn okay ok 87 - Critical range has been set ok 88 - warn okay ok 89 - label okay ok 90 - value okay ok 91 - uom okay ok 92 - warn okay ok 93 - crit okay ok 94 - label okay ok 95 - value okay with 0 as string ok 96 - uom empty ok 97 - warn okay ok 98 - crit okay ok 99 - label okay ok 100 - label okay ok 101 - label okay ok 102 - value okay ok 103 - uom empty ok 104 - warn okay ok 105 - crit okay ok 106 - parse correctly with linefeed at end (nagiosgraph) ok 107 - label okay ok 108 - value okay ok 109 - uom okay ok 110 - warn okay ok 111 - crit okay ok 112 - label okay ok 113 - value okay ok 114 - uom okay ok 115 - warn okay ok 116 - crit okay ok 117 - changing / to _ ok 118 - Warning range has been set ok 119 - replacing bad characters ok 120 - shortening rrd label ok 121 - label okay ok 122 - value okay ok 123 - uom okay ok 124 - Warning range has been set ok 125 - Critical range has been set ok 126 - warn okay ok 127 - crit okay ok 128 - label okay ok 129 - value okay ok 130 - uom okay ok 131 - Warning range has been set ok 132 - Critical range has been set ok 133 - warn okay ok 134 - crit okay ok 135 - label okay ok 136 - value okay ok 137 - uom okay ok 138 - Warning range has been set ok 139 - Critical range has not been set ok 140 - warn okay ok 141 - label okay ok 142 - value okay ok 143 - uom okay ok 144 - Warning range has been set ok 145 - Critical range has been set ok 146 - warn okay ok 147 - crit okay ok 148 - label okay ok 149 - value okay ok 150 - uom okay ok 151 - Warning range has been set ok 152 - Critical range has been set ok 153 - warn okay ok 154 - warn okay ok 155 - label okay for scientific notation ok 156 - value okay ok 157 - uom okay ok 158 - Warning range has not been set ok 159 - Critical range has not been set ok 160 - label okay for scientific notation in warnings and criticals ok 161 - value okay ok 162 - uom okay ok 163 - Warning range has been set not ok 164 - warn okay ok 165 - Critical range has been set not ok 166 - warn okay ok 167 - label okay for numeric with commas instead of periods ok 168 - value okay ok 169 - uom okay ok 170 - Warning range has been set ok 171 - warn okay ok 172 - Critical range has been set ok 173 - warn okay ok 174 - label okay for different numeric ok 175 - value okay ok 176 - uom okay ok 177 - Warning range has been set ok 178 - warn okay ok 179 - Critical range has been set ok 180 - warn okay ok 181 - label okay for numeric with commas instead of periods ok 182 - value okay ok 183 - uom okay ok 184 - Warning range has been set ok 185 - warn okay ok 186 - Critical range has been set ok 187 - warn okay ok 188 - Ignored time=1800,600,300,0,3600, but allowed other=45.6 ok 189 - value okay ok 190 - uom okay ok 191 ok 192 ok 193 - value okay ok 194 - uom okay ok 195 - warn okay ok 196 - crit okay ok 197 - min ok ok 198 - max ok ok 199 - label okay ok 200 - rrd label okay ok 201 - value okay ok 202 - uom okay ok 203 - warn okay ok 204 - crit okay ok 205 - min ok ok 206 - max ok ok 207 ok 208 ok 209 - value okay ok 210 - uom okay ok 211 ok 212 ok 213 - min ok ok 214 - max ok ok 215 - label okay ok 216 - rrd label okay ok 217 - value okay ok 218 - uom okay ok 219 - warn okay ok 220 - crit okay ok 221 - min ok ok 222 - max ok ok 223 ok 224 ok 225 - value okay ok 226 - uom okay ok 227 ok 228 - crit okay ok 229 - min ok ok 230 - max ok Dubious, test returned 2 (wstat 512, 0x200) Failed 2/230 subtests # # using Nagios::Plugin::Range revision 0.32 # 'garbage in' checks -- you should see 7 invalid range definition warnings here: invalid range definition ':' at t/Nagios-Plugin-Range.t line 28 invalid range definition '1:~' at t/Nagios-Plugin-Range.t line 28 invalid range definition 'foo' at t/Nagios-Plugin-Range.t line 28 invalid range definition '1-10' at t/Nagios-Plugin-Range.t line 28 invalid range definition '10:~' at t/Nagios-Plugin-Range.t line 28 invalid range definition '1-10:2.4' at t/Nagios-Plugin-Range.t line 28 invalid range definition '1,10' at t/Nagios-Plugin-Range.t line 28 # range: 0..6 inclusive # range : -7..23, inclusive # range : 0..5.75, inclusive # range : negative infinity .. -95.99, inclusive # range 10..infinity , inclusive # range 123456789012345..infinity , inclusive # range: <= zero # range: OUTSIDE 0..657.8210567 # range: 1..1 inclusive (equals one) t/Nagios-Plugin-Range.t ........... 1..151 ok 1 - use Nagios::Plugin::Range; ok 2 - ':' should not be a valid range ok 3 - '1:~' should not be a valid range ok 4 - 'foo' should not be a valid range ok 5 - '1-10' should not be a valid range ok 6 - '10:~' should not be a valid range ok 7 - '1-10:2.4' should not be a valid range ok 8 - '1,10' should not be a valid range 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) 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) 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) 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) 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) 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) 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) 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) 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 "my" variable $t masks earlier declaration in same scope at t/Nagios-Plugin-Threshold.t line 29. # # using Nagios::Plugin::Threshold revision 0.32 # threshold: critical if > 80 # threshold: warn if less than 5 or more than 33. # threshold: warn if more than 30; critical if > 60 # threshold: critical if > 25 # threshold: warn if OUTSIDE {10..25} , critical if > 25 # warn if INSIDE {10..25} , critical if < 10 # threshold mutator: warn if more than 30; critical if > 60 t/Nagios-Plugin-Threshold.t ....... 1..93 ok 1 - use Nagios::Plugin::Threshold; ok 2 - use Nagios::Plugin::Functions; ok 3 - two undefs ok 4 - warning not set ok 5 - critical not set ok 6 - two empty strings ok 7 - warning not set ok 8 - critical not set ok 9 - Threshold ('', '80') set ok 10 - Warning not set ok 11 - Critical strat set correctly ok 12 - Critical end set correctly ok 13 - not forever ok 14 - -1 - CRITICAL ok 15 - 4 - OK ok 16 - 79.999999 - OK ok 17 - 80 - OK ok 18 - 80.1 - CRITICAL ok 19 - 102321 - CRITICAL ok 20 - Threshold ('5:33', '') set ok 21 - Warning start set ok 22 - Warning end set ok 23 - Critical not set ok 24 - -1 - WARNING ok 25 - 4 - WARNING ok 26 - 4.999999 - WARNING ok 27 - 5 - OK ok 28 - 14.21 - OK ok 29 - 33 - OK ok 30 - 33.01 - WARNING ok 31 - 10231 - WARNING ok 32 - Threshold ('~:30', '~:60') set ok 33 - Warning end set ok 34 - Critical end set ok 35 - Critical starts at negative infinity ok 36 - -1 - OK ok 37 - 4 - OK ok 38 - 29.999999 - OK ok 39 - 30 - OK ok 40 - 30.1 - WARNING ok 41 - 50.90 - WARNING ok 42 - 59.9 - WARNING ok 43 - 60 - WARNING ok 44 - 60.00001 - CRITICAL ok 45 - 10231 - CRITICAL ok 46 - Threshold ('', '~:25') set (~:25) ok 47 - Warning not set ok 48 - Critical end set ok 49 - Critical starts at negative infinity ok 50 - -1 - OK ok 51 - 4 - OK ok 52 - 10 - OK ok 53 - 14.21 - OK ok 54 - 25 - OK ok 55 - 25.01 - CRITICAL ok 56 - 31001 - CRITICAL ok 57 - Threshold ('10:25', '~:25') set ok 58 - Warning start set ok 59 - Warning end set ok 60 - Critical end set ok 61 - -1 - WARNING ok 62 - 4 - WARNING ok 63 - 9.999999 - WARNING ok 64 - 10 - OK ok 65 - 14.21 - OK ok 66 - 25 - OK ok 67 - 25.01 - CRITICAL ok 68 - 31001 - CRITICAL ok 69 - -1 - CRITICAL ok 70 - 4 - CRITICAL ok 71 - 9.999999 - CRITICAL ok 72 - 10 - WARNING ok 73 - 14.21 - WARNING ok 74 - 25 - WARNING ok 75 - 25.01 - OK ok 76 - 31001 - OK ok 77 - same threshold object after $t->set_thresholds ok 78 - Threshold ('0:45', '0:90') set ok 79 - Warning start ok ok 80 - Warning end ok ok 81 - Critical start ok ok 82 - Critical end ok ok 83 - Threshold from ranges ('50', '70:90') set ok 84 - Warning start ok ok 85 - Warning end ok ok 86 - Critical start ok ok 87 - Critical end ok ok 88 - Threshold from string + range ('~:20', '90:') set ok 89 - Warning start ok (infinity) ok 90 - Warning end ok ok 91 - Critical start ok ok 92 - Critical end ok (infinity) ok 93 - sweet, made it to the end. ok Test Summary Report ------------------- t/Nagios-Plugin-Performance.t (Wstat: 512 Tests: 230 Failed: 2) Failed tests: 164, 166 Non-zero exit status: 2 Files=16, Tests=968, 5 wallclock secs ( 0.01 usr + 0.31 sys = 0.33 CPU) Result: FAIL Failed 1/16 test programs. 2/968 subtests failed. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff' Stop. TONVOON/Nagios-Plugin-0.32.tar.gz nmake test TEST_VERBOSE=1 -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports TONVOON/Nagios-Plugin-0.32.tar.gz Running make for G/GB/GBARR/Nagios-Plugin-Beanstalk-0.03.tar.gz Has already been unwrapped into directory C:\cpanfly\var\cpan\build\Nagios-Plugin-Beanstalk-0.03-dzAPdq CPAN.pm: Going to build G/GB/GBARR/Nagios-Plugin-Beanstalk-0.03.tar.gz Warning: Prerequisite 'Nagios::Plugin => 0' for 'GBARR/Nagios-Plugin-Beanstalk-0.03.tar.gz' failed when processing 'TONVOON/Nagios-Plugin-0.32.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited. >>> nmake Microsoft (R) Program Maintenance Utility Version 7.00.8882 Copyright (C) Microsoft Corp 1988-2000. All rights reserved. cp lib/Nagios/Plugin/Beanstalk.pm blib\lib\Nagios\Plugin\Beanstalk.pm C:\Perl\bin\perl.exe -MExtUtils::Command -e cp check_beanstalkd blib\script\check_beanstalkd pl2bat.bat blib\script\check_beanstalkd GBARR/Nagios-Plugin-Beanstalk-0.03.tar.gz nmake -- OK Running make test >>> nmake test TEST_VERBOSE=1 Microsoft (R) Program Maintenance Utility Version 7.00.8882 Copyright (C) Microsoft Corp 1988-2000. All rights reserved. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib\lib', 'blib\arch')" t/*.t # Failed test 'use Nagios::Plugin::Beanstalk;' # at t/00-load.t line 3. # Tried to use 'Nagios::Plugin::Beanstalk'. # Error: Can't locate Nagios/Plugin.pm in @INC (@INC contains: C:\cpanfly\var\cpan\build\Nagios-Plugin-Beanstalk-0.03-dzAPdq\blib\lib C:\cpanfly\var\cpan\build\Nagios-Plugin-Beanstalk-0.03-dzAPdq\blib\arch C:/cpanfly/var/megalib C:/cpanfly/var/megalib C:/Perl/site/lib C:/Perl/lib .) at C:\cpanfly\var\cpan\build\Nagios-Plugin-Beanstalk-0.03-dzAPdq\blib\lib/Nagios/Plugin/Beanstalk.pm line 9. # BEGIN failed--compilation aborted at C:\cpanfly\var\cpan\build\Nagios-Plugin-Beanstalk-0.03-dzAPdq\blib\lib/Nagios/Plugin/Beanstalk.pm line 9. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. # Looks like you failed 1 test of 1. t/00-load.t .. 1..1 not ok 1 - use Nagios::Plugin::Beanstalk; Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests Test Summary Report ------------------- t/00-load.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=1, Tests=1, 0 wallclock secs ( 0.02 usr + 0.02 sys = 0.03 CPU) Result: FAIL Failed 1/1 test programs. 1/1 subtests failed. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x1' Stop. GBARR/Nagios-Plugin-Beanstalk-0.03.tar.gz nmake test TEST_VERBOSE=1 -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports GBARR/Nagios-Plugin-Beanstalk-0.03.tar.gz Finished 2009-03-06T08:22:15