Upgrading from 5R1.0 to latest

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Upgrading from 5R1.0 to latest

Post by bosecorp »

I am getting this error when upgrading to the latest

Code: Select all

bin/cat check_mysql_health.pl | /bin/grep -v "^use Nagios" | /bin/grep -v "^my %ERROR" | /bin/gawk -f ./subst >> check_mysql_health
chmod +x check_mysql_health
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/plugins-scripts'
Making all in t
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/t'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/t'
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2'
Warning: prerequisite Config::Tiny 0 not found.
Checking if your kit is complete...
Looks good
WARNING: ABSTRACT contains control character(s), they will be removed
Generating a Unix-style Makefile
Writing Makefile for Nagios::Monitoring::Plugin
cp lib/Nagios/Monitoring/Plugin/Performance.pm blib/lib/Nagios/Monitoring/Plugin/Performance.pm
cp lib/Nagios/Monitoring/Plugin/Range.pm blib/lib/Nagios/Monitoring/Plugin/Range.pm
cp lib/Nagios/Monitoring/Plugin/Threshold.pm blib/lib/Nagios/Monitoring/Plugin/Threshold.pm
cp lib/Nagios/Monitoring/Plugin.pm blib/lib/Nagios/Monitoring/Plugin.pm
cp lib/Nagios/Monitoring/Plugin/Getopt.pm blib/lib/Nagios/Monitoring/Plugin/Getopt.pm
cp lib/Nagios/Monitoring/Plugin/Functions.pm blib/lib/Nagios/Monitoring/Plugin/Functions.pm
cp lib/Nagios/Monitoring/Plugin/Config.pm blib/lib/Nagios/Monitoring/Plugin/Config.pm
cp lib/Nagios/Monitoring/Plugin/ExitResult.pm blib/lib/Nagios/Monitoring/Plugin/ExitResult.pm
Manifying 8 pod documents
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
Base class package "Config::Tiny" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
 at lib/Nagios/Monitoring/Plugin/Config.pm line 6
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Config.pm line 6.
Compilation failed in require at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
Compilation failed in require at lib/Nagios/Monitoring/Plugin.pm line 64.

#   Failed test 'exits(3) with no args'
#   at t/check_stuff.t line 22.
#          got: '2'
#     expected: '3'

#   Failed test 'UNKNOWN with no args'
#   at t/check_stuff.t line 23.
#                   ''
#     doesn't match '(?-xism:^STUFF UNKNOWN)'
Base class package "Config::Tiny" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
 at lib/Nagios/Monitoring/Plugin/Config.pm line 6
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Config.pm line 6.
Compilation failed in require at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
Compilation failed in require at lib/Nagios/Monitoring/Plugin.pm line 64.

#   Failed test 'exits(3) with -V arg'
#   at t/check_stuff.t line 26.
#          got: '2'
#     expected: '3'

#   Failed test 'looks like there's a version'
#   at t/check_stuff.t line 27.
#                   ''
#     doesn't match '(?i-xsm:^[\w\.]+ \d+)'
Base class package "Config::Tiny" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
 at lib/Nagios/Monitoring/Plugin/Config.pm line 6
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Config.pm line 6.
Compilation failed in require at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
Compilation failed in require at lib/Nagios/Monitoring/Plugin.pm line 64.

#   Failed test 'exits(3) with -h arg'
#   at t/check_stuff.t line 30.
#          got: '2'
#     expected: '3'

#   Failed test 'looks like there's something helpful'
#   at t/check_stuff.t line 31.
#                   ''
#     doesn't match '(?i-xsm:usage)'
Base class package "Config::Tiny" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
 at lib/Nagios/Monitoring/Plugin/Config.pm line 6
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Config.pm line 6.
Compilation failed in require at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
Compilation failed in require at lib/Nagios/Monitoring/Plugin.pm line 64.

#   Failed test 'exits(3) with  -r 99 '
#   at t/check_stuff.t line 37.
#          got: '2'
#     expected: '3'

#   Failed test 'UNKNOWN (warning: invalid -r) with  -r 99 '
#   at t/check_stuff.t line 38.
#                   ''
#     doesn't match '(?i-xsm:UNKNOWN.+invalid)'
Base class package "Config::Tiny" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
 at lib/Nagios/Monitoring/Plugin/Config.pm line 6
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Config.pm line 6.
Compilation failed in require at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
Compilation failed in require at lib/Nagios/Monitoring/Plugin.pm line 64.

#   Failed test 'exits(1) with  -w 10:15 -c~:15 -r 0'
#   at t/check_stuff.t line 57.
#          got: '2'
#     expected: '1'

#   Failed test 'looks WARNING with  -w 10:15 -c~:15 -r 0'
#   at t/check_stuff.t line 58.
#                   ''
#     doesn't match '(?i-xsm:^STUFF WARNING)'
Base class package "Config::Tiny" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
 at lib/Nagios/Monitoring/Plugin/Config.pm line 6
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Config.pm line 6.
Compilation failed in require at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
Compilation failed in require at lib/Nagios/Monitoring/Plugin.pm line 64.

#   Failed test 'looks CRITICAL with  -w 10:15 -c~:15 -r 15.8'
#   at t/check_stuff.t line 58.
#                   ''
#     doesn't match '(?i-xsm:^STUFF CRITICAL)'
Base class package "Config::Tiny" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
 at lib/Nagios/Monitoring/Plugin/Config.pm line 6
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Config.pm line 6.
Compilation failed in require at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
BEGIN failed--compilation aborted at lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
Compilation failed in require at lib/Nagios/Monitoring/Plugin.pm line 64.

#   Failed test 'exits(0) with  -w 10:15 -c~:15 -r 11'
#   at t/check_stuff.t line 57.
#          got: '2'
#     expected: '0'

#   Failed test 'looks OK with  -w 10:15 -c~:15 -r 11'
#   at t/check_stuff.t line 58.
#                   ''
#     doesn't match '(?i-xsm:^STUFF OK)'
# Looks like you failed 13 tests of 14.
t/check_stuff.t .............................. 
Dubious, test returned 13 (wstat 3328, 0xd00)
Failed 13/14 subtests 
t/Nagios-Monitoring-Plugin-01.t .............. ok
t/Nagios-Monitoring-Plugin-02.t .............. ok
t/Nagios-Monitoring-Plugin-03.t .............. ok
Base class package "Config::Tiny" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
 at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6
BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6.
Compilation failed in require at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
Compilation failed in require at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin.pm line 64.
# Looks like you planned 30 tests but ran 4.
# Looks like your test exited with 2 just after 4.
t/Nagios-Monitoring-Plugin-04.t .............. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 26/30 subtests 

#   Failed test 'use Nagios::Monitoring::Plugin::Getopt;'
#   at t/Nagios-Monitoring-Plugin-Functions-01.t line 11.
#     Tried to use 'Nagios::Monitoring::Plugin::Getopt'.
#     Error:  Base class package "Config::Tiny" is empty.
#     (Perhaps you need to 'use' the module which defines that package first,
#     or make that module available in @INC (@INC contains: /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
#  at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6.
# Compilation failed in require at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# Compilation failed in require at (eval 17) line 2.
# BEGIN failed--compilation aborted at (eval 17) line 2.

#   Failed test 'Version number for Nagios::Monitoring::Plugin::Getopt the same as Functions: 0.51'
#   at t/Nagios-Monitoring-Plugin-Functions-01.t line 15.
#          got: undef
#     expected: '0.51'
# Looks like you failed 2 tests of 113.
t/Nagios-Monitoring-Plugin-Functions-01.t .... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/113 subtests 
t/Nagios-Monitoring-Plugin-Functions-02.t .... ok
t/Nagios-Monitoring-Plugin-Functions-03.t .... ok

#   Failed test 'use Nagios::Monitoring::Plugin::Getopt;'
#   at t/Nagios-Monitoring-Plugin-Getopt-01.t line 6.
#     Tried to use 'Nagios::Monitoring::Plugin::Getopt'.
#     Error:  Base class package "Config::Tiny" is empty.
#     (Perhaps you need to 'use' the module which defines that package first,
#     or make that module available in @INC (@INC contains: /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
#  at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6.
# Compilation failed in require at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Can't use string ("plugin") as a HASH ref while "strict refs" in use at /usr/share/perl5/vendor_perl/Class/Accessor.pm line 122.
# Looks like you planned 76 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/Nagios-Monitoring-Plugin-Getopt-01.t ....... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 76/76 subtests 

#   Failed test 'use Nagios::Monitoring::Plugin::Getopt;'
#   at t/Nagios-Monitoring-Plugin-Getopt-02.t line 6.
#     Tried to use 'Nagios::Monitoring::Plugin::Getopt'.
#     Error:  Base class package "Config::Tiny" is empty.
#     (Perhaps you need to 'use' the module which defines that package first,
#     or make that module available in @INC (@INC contains: /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
#  at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6.
# Compilation failed in require at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Can't use string ("plugin") as a HASH ref while "strict refs" in use at /usr/share/perl5/vendor_perl/Class/Accessor.pm line 122.
# Looks like you planned 14 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/Nagios-Monitoring-Plugin-Getopt-02.t ....... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 14/14 subtests 

#   Failed test 'use Nagios::Monitoring::Plugin::Getopt;'
#   at t/Nagios-Monitoring-Plugin-Getopt-03.t line 9.
#     Tried to use 'Nagios::Monitoring::Plugin::Getopt'.
#     Error:  Base class package "Config::Tiny" is empty.
#     (Perhaps you need to 'use' the module which defines that package first,
#     or make that module available in @INC (@INC contains: /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
#  at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6.
# Compilation failed in require at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# Compilation failed in require at (eval 8) line 2.
# BEGIN failed--compilation aborted at (eval 8) line 2.
Can't use string ("usage") as a HASH ref while "strict refs" in use at /usr/share/perl5/vendor_perl/Class/Accessor.pm line 122.
# Looks like you failed 1 test of 1.
# Looks like your test exited with 255 just after 1.
t/Nagios-Monitoring-Plugin-Getopt-03.t ....... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/1 subtests 

#   Failed test 'use Nagios::Monitoring::Plugin::Getopt;'
#   at t/Nagios-Monitoring-Plugin-Getopt-04.t line 6.
#     Tried to use 'Nagios::Monitoring::Plugin::Getopt'.
#     Error:  Base class package "Config::Tiny" is empty.
#     (Perhaps you need to 'use' the module which defines that package first,
#     or make that module available in @INC (@INC contains: /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
#  at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Config.pm line 6.
# Compilation failed in require at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Getopt.pm line 16.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Can't use string ("usage") as a HASH ref while "strict refs" in use at /usr/share/perl5/vendor_perl/Class/Accessor.pm line 122.
# Looks like you planned 11 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/Nagios-Monitoring-Plugin-Getopt-04.t ....... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 11/11 subtests 
t/Nagios-Monitoring-Plugin-Performance-02.t .. ok
t/Nagios-Monitoring-Plugin-Performance.t ..... ok
t/Nagios-Monitoring-Plugin-Range.t ........... ok
t/Nagios-Monitoring-Plugin-Threshold.t ....... ok

Test Summary Report
-------------------
t/check_stuff.t                            (Wstat: 3328 Tests: 14 Failed: 13)
  Failed tests:  1-10, 12-14
  Non-zero exit status: 13
t/Nagios-Monitoring-Plugin-04.t            (Wstat: 512 Tests: 4 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 30 tests but ran 4.
t/Nagios-Monitoring-Plugin-Functions-01.t  (Wstat: 512 Tests: 113 Failed: 2)
  Failed tests:  6-7
  Non-zero exit status: 2
t/Nagios-Monitoring-Plugin-Getopt-01.t     (Wstat: 65280 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 76 tests but ran 1.
t/Nagios-Monitoring-Plugin-Getopt-02.t     (Wstat: 65280 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 14 tests but ran 1.
t/Nagios-Monitoring-Plugin-Getopt-03.t     (Wstat: 65280 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
t/Nagios-Monitoring-Plugin-Getopt-04.t     (Wstat: 65280 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 11 tests but ran 1.
Files=16, Tests=837,  1 wallclock secs ( 0.19 usr  0.04 sys +  1.45 cusr  0.20 csys =  1.88 CPU)
Result: FAIL
Failed 7/16 test programs. 19/837 subtests failed.
make: *** [test_dynamic] Error 255
Last edited by lmiltchev on Wed Apr 06, 2016 9:18 am, edited 2 times in total.
Reason: Please use [code][/code] tags around long output
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Upgrading from 5R1.0 to latest

Post by Box293 »

Can you try the following:

Code: Select all

yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
Let us know if that works for you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Upgrading from 5R1.0 to latest

Post by bosecorp »

didn't work. this is what I get

root@nagmonusdev1:(03-03 08:35): /root
# yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
Loaded plugins: refresh-packagekit, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Bose-prod-rhel-x86_64-server-6 | 1.5 kB 00:00
UBS-KITS-UBSLNX | 951 B 00:00
bose-prod-rhel-x86_64-6-epel | 1.5 kB 00:00
epel/metalink | 9.7 kB 00:00
Package perl-Test-Simple-0.92-136.el6_6.1.x86_64 already installed and latest version
Package perl-Class-Accessor-0.31-0.6.1.el6.noarch already installed and latest version
Package perl-Params-Validate-0.92-3.el6.x86_64 already installed and latest version
No package perl-Config-Tiny available.
Package perl-Math-Calc-Units-1.07-6.el6.noarch already installed and latest version
Nothing to do
root@nagmonusdev1:(03-03 08:35): /root
#
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Upgrading from 5R1.0 to latest

Post by rkennedy »

Do you have the package yum install perl-Config-Tiny.noarch available?

Alternatively, an RPM for Centos 6 is available here - http://pkgs.org/centos-6/centos-i386/pe ... h.rpm.html - what OS are you running?
Former Nagios Employee
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Upgrading from 5R1.0 to latest

Post by bosecorp »

No luck

# ./fullinstall
========================
Nagios XI Full Installer
========================

This script will do a complete install of Nagios XI by executing all necessary sub-scripts.

IMPORTANT: This script should only be used on a 'clean' install of CentOS or RedHat. Do NOT use this on a system that has been tasked with other purposes or has an existing install of Nagios Core. To create such a clean
install you should have selected ONLY the 'Base' package in the OS installer.
Do you want to continue? [Y/n] y
Proceeding with installation...
Checking MySQL credentials...
Stored MySQL password validated.
Running './0-repos'...
Configuring Repos...
package centos-release is not installed
ERROR: Please add the 'Optional' channel to your Red Hat systems subscriptions.
You can do so in the Redhat Network web interface or using the rhn-channel command.
or, install the yum-utils package and use the following command:
yum-config-manager --enable rhel-6-server-optional-rpms
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './0-repos'
root@nagmonusdev1:(03-03 15:32): /tmp/nagiosxi
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Upgrading from 5R1.0 to latest

Post by rkennedy »

What OS are you running?
Former Nagios Employee
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Upgrading from 5R1.0 to latest

Post by bosecorp »

root@nagmonusdev1:(03-03 16:11): /root
# uname -a
Linux nagmonusdev1 2.6.32-431.20.3.el6.x86_64 #1 SMP Fri Jun 6 18:30:54 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
root@nagmonusdev1:(03-03 16:11): /root
#
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrading from 5R1.0 to latest

Post by lmiltchev »

You can post the entire "install.log" so that we can review it, but just by looking at the output I believe the problem will be resolved by adding the "Optional" channel...
ERROR: Please add the 'Optional' channel to your Red Hat systems subscriptions.
You can do so in the Redhat Network web interface or using the rhn-channel command.
or, install the yum-utils package and use the following command:
yum-config-manager --enable rhel-6-server-optional-rpms
https://support.nagios.com/kb/article.php?id=155
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Upgrading from 5R1.0 to latest

Post by bosecorp »

# cat install.log
Nagios XI Installation Log
==========================
DATE: Thu Mar 3 15:35:43 EST 2016

DISTRO INFO:
RedHatEnterpriseServer
6.5
x86_64

THIS IS AN UPGRADE!

OLD VERSION:
full=5R1.0
major=5
minor=R1.0
releasedate=2015-09-28
release=510

INSTALLING:
full=5.2.5
major=5
minor=2.5
releasedate=2016-02-19
release=516

Configuring Repos...
package centos-release is not installed
ERROR: Please add the 'Optional' channel to your Red Hat systems subscriptions.
You can do so in the Redhat Network web interface or using the rhn-channel command.
or, install the yum-utils package and use the following command:
yum-config-manager --enable rhel-6-server-optional-rpms
Nagios XI Installation Log
==========================
DATE: Thu Mar 3 15:36:30 EST 2016

DISTRO INFO:
RedHatEnterpriseServer
6.5
x86_64

THIS IS AN UPGRADE!

OLD VERSION:
full=5R1.0
major=5
minor=R1.0
releasedate=2015-09-28
release=510

INSTALLING:
full=5.2.5
major=5
minor=2.5
releasedate=2016-02-19
release=516

Configuring Repos...
package centos-release is not installed
ERROR: Please add the 'Optional' channel to your Red Hat systems subscriptions.
You can do so in the Redhat Network web interface or using the rhn-channel command.
or, install the yum-utils package and use the following command:
yum-config-manager --enable rhel-6-server-optional-rpms
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrading from 5R1.0 to latest

Post by lmiltchev »

Have you tried adding the 'Optional' channel to your Red Hat systems subscriptions, and rerunning the upgrade script?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked