Nagios 2024R1.1.5 -> R1.2 upgrade failed (Can't locate mysql headers)
Posted: Wed Aug 14, 2024 8:17 am
Ruh-roh!
This was starting from a relatively pristine 2024R1.1.5 install on Ubuntu 22.04.4 LTS, downloading the tarball and running ./upgrade from the command line as root. Something we do almost every day for many, many, many customers.
Unfortunately, this has also left our Nagios box in an unusable state, since the core engine won't start and throws Seg faults in the log:
Bad Nagios XI. Bad! Need to restore at this point and can only hope our customers haven't hit the "upgrade" button yet.
Code: Select all
UPGRADE: Nagios Plugins upgraded 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
Unfortunately, this has also left our Nagios box in an unusable state, since the core engine won't start and throws Seg faults in the log:
Code: Select all
[1723641477] Successfully launched command file worker with pid 3524684
[1723641477] NDO-3: Ended contact_status thread
[1723641477] Caught SIGSEGV, shutting down...
[1723641477] Caught SIGTERM, shutting down...