upgrading nagiosxi xi issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

upgrading nagiosxi xi issue

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: upgrading nagiosxi xi issue

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: upgrading nagiosxi xi issue

Post 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
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: upgrading nagiosxi xi issue

Post 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!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: upgrading nagiosxi xi issue

Post by hsmith »

Have you change the password for any of the database users?
Former Nagios Employee.
me.
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: upgrading nagiosxi xi issue

Post by amit.ahuja »

we never changed any password, been using default password. root/nagiosxi
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: upgrading nagiosxi xi issue

Post 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?
Former Nagios Employee
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: upgrading nagiosxi xi issue

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: upgrading nagiosxi xi issue

Post 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;"
Former Nagios Employee.
me.
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: upgrading nagiosxi xi issue

Post 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
Locked