NagiosXI 5.6.0 upgarde error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

NagiosXI 5.6.0 upgarde error

Post by Sampath.Basireddy »

NagiosXI 5.6.0 upgrade failed with below error:

Code: Select all

Error: php56w-common conflicts with php-common-5.4.16-46.el7.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI 5.6.0 upgarde error

Post by benjaminsmith »

Hi @Sampath.Basireddy,

Do you have any additional repos installed on your server? Can you post the full output to the following command:

Code: Select all

yum repolist -v
Thanks.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: NagiosXI 5.6.0 upgarde error

Post by Sampath.Basireddy »

Sent you a PM with the output of yum repolist -v

Thank You.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: NagiosXI 5.6.0 upgarde error

Post by jomann »

This is an issue caused with trying to update the nagiosxi-deps package when you have a different version of PHP installed, to get around this issue, when you extract the nagiosxi folder from the tarball, edit the upgrade script:

Line 201, delete these lines:

Code: Select all

		yumlocalinstall="$(readlink -e ./$xiverrpm-$xiver-1.noarch.rpm)"
		if ! yum -y --nogpgcheck localinstall $yumlocalinstall; then
			yum clean all
			yum -y --nogpgcheck localinstall $yumlocalinstall
		fi
Then, where you deleted those, add:

Code: Select all

yum install php56w-imap -y
Re-run the upgrade process.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: NagiosXI 5.6.0 upgarde error

Post by Sampath.Basireddy »

After changing the mentioned changes to upgrade script, upgrade ran find without any errors, but now the console is not opening.

Getting page cannot be displayed. Please help.

Code: Select all

	Checked 488 contacts.
	Checked 20 contact groups.
	Checked 210 commands.
	Checked 573 time periods.
	Checked 0 host escalations.
	Checked 0 service escalations.
Checking for circular paths...
	Checked 1235 hosts
	Checked 0 service dependencies
	Checked 0 host dependencies
	Checked 573 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 1336
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------

Nagios XI Upgrade Complete!
---------------------------

You can access the Nagios XI web interface by visiting:
    http://<nagiosserverip>/nagiosxi/
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: NagiosXI 5.6.0 upgarde error

Post by Sampath.Basireddy »

Got it figured, a bunch of files permissions changed to root which appeared to have caused the problem.

Changing the ownership to nagios:nagios fixed the issue.

Here is one of the error message I found in "/var/log/httpd/ssl_error_log. There were more than few such errors:

Code: Select all

[Fri Apr 26 21:11:59.668995 2019] [:error] [pid 13542] [client 10.10.120.143:51643] PHP Warning:  require_once(/usr/local/nagios/nagiosxi/html/includes/utils-graphs.inc.php): failed to open stream: Permission denied in /usr/local/nagios/nagiosxi/html/includes/utils.inc.php on line 25,
Here are a list of files I found to have permissions changed or new files added after upgrade to 5.6.0 which were owned by root.

Code: Select all

/usr/local/nagios/nagiosxi/html/includes/utils-graphs.inc.php
/usr/local/nagiosxi/html/images/disabled_small.png
/usr/local/nagiosxi/html/images/enabled_small.png
/usr/local/nagiosxi/html/images/control_stop.png
/usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/activedirectory.png
/usr/local/nagiosxi/html/images/control_restart.png
/usr/local/nagiosxi/html/images/disabled_unimportant_small.png
/usr/local/nagios/nagiosxi/html/includes/utils.inc.php
I still see this error though, but does not really help to identify what the issue is looking at the message:

Code: Select all

[Fri Apr 26 21:53:56.873756 2019] [:error] [pid 17145] [client 10.20.132.175:51890] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI 5.6.0 upgarde error

Post by benjaminsmith »

Hi Sampeth,

Sounds like you were able to it resolve it. Regarding the last message, please try running the script to reset the file permissions. Log into the terminal as root and run the following:

Code: Select all

/usr/local/nagiosxi/scripts/reset_config_perms.sh
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: NagiosXI 5.6.0 upgarde error

Post by Sampath.Basireddy »

Thanks @benjaminsmith

I think am all good for now, please close the topic.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI 5.6.0 upgarde error

Post by benjaminsmith »

Hi Sampath,
I think am all good for now, please close the topic.
Great. Thanks for the update.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked