Inplace Upgrade of RHEL 6 to RHEL 7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Inplace Upgrade of RHEL 6 to RHEL 7

Post by emartine »

I currently have a nagiosxi 5.5 on RHEL 6 server and I would like to do an inplace upgrade of RHEL 6 to 7. Does nagios support doing inplace upgrades?
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Inplace Upgrade of RHEL 6 to RHEL 7

Post by jbrunkow »

You will likely run into issues when doing an in-place upgrade. You would also likely need to do this after upgrading:

https://support.nagios.com/kb/article/n ... s-816.html

And run the restore repair script from the Backup/Restore guide to recompile your binaries.

It is probably a much better practice to migrate your instance to a fresh install with a backup and restore. I believe you will experience less problems in the long run that way.

BACKING UP AND RESTORING NAGIOS XI
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!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Inplace Upgrade of RHEL 6 to RHEL 7

Post by emartine »

At this point I get:

./init.sh
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mssql.so' - libgnutls.so.26: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_dblib.so' - libgnutls.so.26: cannot open shared object file: No such file or directory in Unknown on line 0
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Inplace Upgrade of RHEL 6 to RHEL 7

Post by jbrunkow »

To gather up the relevant error, please submit the tail command below > run the upgrade script again > then hit Ctrl + C to kill the tail process and send us what that produces.

Code: Select all

tail -Fn0 /var/log/httpd/error_log /var/log/httpd/ssl_error_log /var/log/apache/error.log
What version of PHP are you running?

Code: Select all

rpm -qa | grep php
You can try installing the packages as well.

Code: Select all

yum install php-mssql php-pdo_dblib
Then restart Apache.

Code: Select all

systemctl restart httpd
It never hurts to send ( PM ) us a profile either! We can find lots of information about your system in there. You can download the profile by navigating to System Profile under System Config on the left pane > and clicking the Download Profile button on that page.
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!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Inplace Upgrade of RHEL 6 to RHEL 7

Post by emartine »

Aug 10 12:02:16 nagiosserveru systemd[1]: Starting The Apache HTTP Server...
Aug 10 12:02:16 nagiosserveru httpd[21196]: [Mon Aug 10 12:02:16.410260 2020] [so:warn] [pid 21196] AH01574: module ssl_module is already loaded, skipping
Aug 10 12:02:16 nagiosserveru httpd[21196]: AH00526: Syntax error on line 64 of /etc/httpd/conf.d/nagvis.conf:
Aug 10 12:02:16 nagiosserveru httpd[21196]: Invalid command 'RewriteLock', perhaps misspelled or defined by a module not included in the server configuration
Aug 10 12:02:16 nagiosserveru systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Aug 10 12:02:16 nagiosserveru systemd[1]: Failed to start The Apache HTTP Server.
Aug 10 12:02:16 nagiosserveru systemd[1]: Unit httpd.service entered failed state.
Aug 10 12:02:16 nagiosserveru systemd[1]: httpd.service failed.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Inplace Upgrade of RHEL 6 to RHEL 7

Post by jbrunkow »

It looks like something in your NagVis configuration caused an issue with upgrading Apache. What is on line 64 of /etc/httpd/conf.d/nagvis.conf?
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