Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 fail

Post by tgriep »

Can you edit this file

Code: Select all

/etc/yum.repos.d/epel.repo
Change the following line from

Code: Select all

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
to

Code: Select all

mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
Save the file and run the following to clear out the yum cache

Code: Select all

yum clean all
Then install the missing perl module by running the following.

Code: Select all

yum install -y  perl-Config-Tiny
If you receive any errors, please post them.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jfoshier
Posts: 23
Joined: Thu Apr 24, 2014 6:15 am

Re: Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 fail

Post by jfoshier »

Performed the steps requested, when I ran yum install command the result was
Package perl-Config-Tiny-2.12-7.1.e16.noarch already installed and latest version
Nothing to Do

I then ran the /tmp/nagiosxi/fullinstall and received a similar error as before, install.log has been attached.

Thank you for your patience, hope something stands out in what is missing.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 fail

Post by tgriep »

Can you run the following on the server as root and post the output?

Code: Select all

yum list installed
cpan -l
Be sure to check out our Knowledgebase for helpful articles and solutions!
jfoshier
Posts: 23
Joined: Thu Apr 24, 2014 6:15 am

Re: Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 fail

Post by jfoshier »

Attached output from yum list, tried the cpan -l and response was "unknown option: l and nothing to install!
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 fail

Post by lmiltchev »

I can see the following error in the "install.log":
Error: Base class package "Class::Accessor" is empty.
Run the following command:

Code: Select all

yum -y install perl-Class-Accessor
then try upgrading one more time. Post back if you see more errors.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jfoshier
Posts: 23
Joined: Thu Apr 24, 2014 6:15 am

Re: Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 fail

Post by jfoshier »

This last perl install took me much further to the point where I am failing with:

nagiosql.login
NagiosQL Login Fialed
Result = 1

The script that failed was './E-importnagiosql'

I have no record that we changed the SQL login credentials.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 fail

Post by lmiltchev »

Run the following command and show the output:

Code: Select all

ll /usr/local/nagiosxi/scripts/nagiosql*
Are you by chance using a proxy? If you are, please configure it as described in our FAQ wiki post here:

https://support.nagios.com/wiki/index.p ... th_Proxies
Be sure to check out our Knowledgebase for helpful articles and solutions!
jfoshier
Posts: 23
Joined: Thu Apr 24, 2014 6:15 am

Re: Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 fail

Post by jfoshier »

I have attached the results of the query as requested. In terms of are we using a proxy not on the nagios VM appliance. We only use a proxy, websense, via plugins which are not on the nagiosxi appliance VM.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 fail

Post by lmiltchev »

Run the following command to begin capturing log output:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/cmd.txt
Attempt to Apply Configuration from the web interface. After the browser has returned some output to the screen, press "Ctrl+c" to stop the log tail, and post the cmd.txt file that was generated in the "/tmp/" directory by the above instructions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jfoshier
Posts: 23
Joined: Thu Apr 24, 2014 6:15 am

Re: Trying to upgrade our NagiosXI from 2014R1 to 5.2.3 fail

Post by jfoshier »

I need some clarification, I have the tail of the log as requested, am I then to start the web session to:
https:nn.n.nnn.nnn/nagiosxi and click on the "Install" button? Once some change noted on the webpage then stop the tail and post the output? Will this overwrite or cause an issue on our system or does it matter at this time? Sorry, newbie in terms of the upgrade process.
Locked