Migrate from Linux 7.x to OEL 8.9 failing
Posted: Wed Apr 17, 2024 9:46 am
So I have 2024 R1.0.2 on current system and new system. I ran a backup on current and restore it on new. I then ran the restore repair script since I changed OS and this was the end of the output:
Notice the error about the patches at the top and then the mysql at the bottom.
Now when I try to open the web page I get:
I run repair, it seems to run fine but doesn't fix the webpage loading. Any ideas?
Notice the error about the patches at the top and then the mysql at the bottom.
Code: Select all
UPGRADE: NSCA upgrade OK.
UPGRADE: PNP is being upgraded...
Applying Nagios XI patches to PNP...
./apply-patches: line 6: patch: command not found
INSTALL: Webinject is being installed...
INSTALL: Webinject installed OK.
UPGRADE: NDO is being upgraded...
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for string.h... (cached) yes
checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... no
checking for mysql/mysql.h... no
configure: error: Can't locate mysql headers
Finished restore repair OK
Code: Select all
Database Error
A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB:
/usr/local/nagiosxi/scripts/repair_databases.sh