Page 1 of 1
Centos6 to Centos 7 Migration - /nagios up /nagiosxi db erro
Posted: Tue Dec 15, 2020 10:39 am
by phamanth
We have just performed a centos 7 migration by using a manual backup and restoring on the Centos 7 box via the backupxi and restorexi scripts.
Those both ran successfully. Afterwards, we did the restore repair script and that looks like it ran correctly as well. The /nagiosxi page still gives a Database error page but the /nagios is running. I am assuming this may be due to a httpd configuration? Please assist. Thank you.
Re: Centos6 to Centos 7 Migration - /nagios up /nagiosxi db
Posted: Tue Dec 15, 2020 3:56 pm
by dchurch
If you PM me a system profile I can diagnose further. Get one by going to Admin (top menu) => System Profile (in the left menu), then clicking the blue button.
If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:
Code: Select all
rm -rf /usr/local/nagiosxi/var/components/profile*
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting
/usr/local/nagiosxi/var/components/profile.zip file.
If the profile script fails, please include the ENTIRE output.
Re: Centos6 to Centos 7 Migration - /nagios up /nagiosxi db
Posted: Fri Dec 18, 2020 3:02 pm
by phamanth
Probably other similar posts about this issue, but my issue was caused by the db passwords in the restore process. Once the passwords to the databases were squared away, was able to access the nagiosxi page.
Re: Centos6 to Centos 7 Migration - /nagios up /nagiosxi db
Posted: Fri Dec 18, 2020 5:14 pm
by benjaminsmith
HI,
Once the passwords to the databases were squared away, was able to access the nagiosxi page.
Great! Glad you got it solved. Did you need anything else or shall we close this out?