Page 1 of 2

upgrading nagiosxi xi issue

Posted: Mon Jan 18, 2016 9:50 pm
by amit.ahuja
i'm trying to upgrade nagiosxi to 5.2.2 but receiving this issue. does anyone knows what it is?

Failed 103/103 subtests

# Failed test 'use Nagios::Monitoring::Plugin;'
# at t/Nagios-Monitoring-Plugin-03.t line 7.
# Tried to use 'Nagios::Monitoring::Plugin'.
# Error: Base class package "Class::Accessor::Fast" 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.pm line 11
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin.pm line 11.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Can't locate object method "new" via package "Nagios::Monitoring::Plugin" at t/Nagios-Monitoring-Plugin-03.t line 13.
# Looks like you planned 61 tests but ran 2.
# Looks like you failed 1 test of 2 run.
# Looks like your test exited with 255 just after 2.
t/Nagios-Monitoring-Plugin-03.t ..............
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 60/61 subtests


i'm guessing perf nagios plugin is missing can when i do yum install perl-Nagios-Plugin, it said no package available.

Re: upgrading nagiosxi xi issue

Posted: Mon Jan 18, 2016 11:01 pm
by Box293
Try this:

Code: Select all

yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units

Re: upgrading nagiosxi xi issue

Posted: Tue Jan 19, 2016 9:47 am
by amit.ahuja
still it said no package available.

yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Package perl-Test-Simple-0.92-136.el6_6.1.x86_64 already installed and latest version
No package perl(Class::Accessor) available.
Package perl-Params-Validate-0.92-3.el6.x86_64 already installed and latest version
No package perl-Config-Tiny available.
Nothing to do

Re: upgrading nagiosxi xi issue

Posted: Tue Jan 19, 2016 10:01 am
by amit.ahuja
sorry, i'm able to get all the packages required to install, but now i got this error. Could be wrong password. Do you know how to change it?

Installing new PNP templates...
Updating init script...
Enabling large install tweaks...
Fixing config file permissions...
Fixing htpasswd permissions...
Checking group memberships...
Installing new XI templates...
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=n@gweb' -O nagiosql.login--2016-01-19 09:55:39-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2016-01-19 09:55:39 ERROR 500: Internal Server Error.

NAGIOSQL LOGIN FAILED!

Re: upgrading nagiosxi xi issue

Posted: Tue Jan 19, 2016 10:16 am
by hsmith
Have you change the password for any of the database users?

Re: upgrading nagiosxi xi issue

Posted: Tue Jan 19, 2016 10:36 am
by amit.ahuja
we never changed any password, been using default password. root/nagiosxi

Re: upgrading nagiosxi xi issue

Posted: Tue Jan 19, 2016 11:46 am
by rkennedy
To better help troubleshoot -
- What version are you trying to upgrade from?
- What OS are you running?
- Also, is there anything else running on this machine?

Re: upgrading nagiosxi xi issue

Posted: Tue Jan 19, 2016 12:01 pm
by amit.ahuja
upgrading from Nagios XI 2014R2.7 to 5.2.2
Red Hat Enterprise Linux Server release 6.6
Nothing is running on this box except Nagios.

Re: upgrading nagiosxi xi issue

Posted: Tue Jan 19, 2016 12:11 pm
by hsmith
Can you post the output of these commands?

Code: Select all

date
mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
php -r "echo date('r').PHP_EOL;"

Re: upgrading nagiosxi xi issue

Posted: Tue Jan 19, 2016 12:23 pm
by amit.ahuja
Tue Jan 19 12:21:56 EST 2016
[root@A100DLVM scripts]# mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
ERROR 1045 (28000): Access denied for user 'nagiosxi'@'localhost' (using password: YES)
[root@MA100DLVM scripts]# php -r "echo date('r').PHP_EOL;"
Tue, 19 Jan 2016 12:22:25 -0500