Page 1 of 1

Inplace Upgrade of RHEL 6 to RHEL 7

Posted: Thu Jul 30, 2020 8:15 pm
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?

Re: Inplace Upgrade of RHEL 6 to RHEL 7

Posted: Fri Jul 31, 2020 12:03 pm
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

Re: Inplace Upgrade of RHEL 6 to RHEL 7

Posted: Fri Jul 31, 2020 7:26 pm
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

Re: Inplace Upgrade of RHEL 6 to RHEL 7

Posted: Mon Aug 03, 2020 11:21 am
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.

Re: Inplace Upgrade of RHEL 6 to RHEL 7

Posted: Mon Aug 10, 2020 12:05 pm
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.

Re: Inplace Upgrade of RHEL 6 to RHEL 7

Posted: Mon Aug 10, 2020 4:53 pm
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?