Error when try to install Nagios Fusion latest version

This support forum board is for questions relating to Nagios Fusion.
Post Reply
abar
Posts: 1
Joined: Mon Apr 22, 2024 10:26 am

Error when try to install Nagios Fusion latest version

Post by abar »

Hello,
I am trying to install nagios fusion on an oracle linux server:
Oracle Linux Server release 8.9

NAME="Oracle Linux Server"
VERSION="8.9"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:9:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.9
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.9
Red Hat Enterprise Linux release 8.9 (Ootpa)
Oracle Linux Server release 8.9
cpe:/o:oracle:linux:8:9:server


I remove all packages and I left only the package Minimal Install:
[root@fusion01v ~]# dnf group list
Last metadata expiration check: 2:10:20 ago on Mon 22 Apr 2024 03:43:18 PM CEST.
Available Environment Groups:
Server with GUI
Server
Workstation
Custom Operating System
Virtualization Host
Installed Environment Groups:
Minimal Install
Available Groups:
Legacy UNIX Compatibility
Container Management
Development Tools
.NET Core Development
Graphical Administration Tools
Headless Management
Network Servers
RPM Development Tools
Scientific Support
Security Tools
Smart Card Support
System Tools

I start the installation as per the procedure:
curl https://assets.nagios.com/downloads/nag ... install.sh | sh

But it gives an error when creating the fusion user for the database:
Installed:
keyutils-libs-devel-1.5.10-9.el8.x86_64
krb5-devel-1.18.2-26.0.1.el8_9.x86_64
libcom_err-devel-1.46.2-2.el8.x86_64
libkadm5-1.18.2-26.0.1.el8_9.x86_64
libselinux-devel-2.9-8.el8.x86_64
libsepol-devel-2.9-3.el8.x86_64
libverto-devel-0.3.2-2.el8.x86_64
mariadb-3:10.3.39-1.module+el8.8.0+21165+f6462f70.x86_64
mariadb-backup-3:10.3.39-1.module+el8.8.0+21165+f6462f70.x86_64
mariadb-common-3:10.3.39-1.module+el8.8.0+21165+f6462f70.x86_64
mariadb-connector-c-3.1.11-2.el8_3.x86_64
mariadb-connector-c-config-3.1.11-2.el8_3.noarch
mariadb-connector-c-devel-3.1.11-2.el8_3.x86_64
mariadb-devel-3:10.3.39-1.module+el8.8.0+21165+f6462f70.x86_64
mariadb-errmsg-3:10.3.39-1.module+el8.8.0+21165+f6462f70.x86_64
mariadb-gssapi-server-3:10.3.39-1.module+el8.8.0+21165+f6462f70.x86_64
mariadb-server-3:10.3.39-1.module+el8.8.0+21165+f6462f70.x86_64
mariadb-server-utils-3:10.3.39-1.module+el8.8.0+21165+f6462f70.x86_64
openssl-devel-1:1.1.1k-12.el8_9.x86_64
pcre2-devel-10.32-3.el8_6.x86_64
pcre2-utf16-10.32-3.el8_6.x86_64
pcre2-utf32-10.32-3.el8_6.x86_64
perl-DBD-MySQL-4.046-3.module+el8.1.0+5427+61a5d536.x86_64
perl-DBI-1.641-4.module+el8.6.0+20590+70c0920f.x86_64
perl-Math-BigInt-1:1.9998.11-7.el8.noarch
perl-Math-Complex-1.59-422.el8.noarch
php-mysqlnd-7.2.24-1.module+el8.2.0+5510+6771133c.x86_64
zlib-devel-1.2.11-25.el8.x86_64

Complete!
Last metadata expiration check: 2:15:11 ago on Mon 22 Apr 2024 03:43:18 PM CEST.
Package glibc-langpack-de-2.28-236.0.1.el8_9.12.x86_64 is already installed.
Package glibc-langpack-es-2.28-236.0.1.el8_9.12.x86_64 is already installed.
Package glibc-langpack-fr-2.28-236.0.1.el8_9.12.x86_64 is already installed.
Package glibc-langpack-it-2.28-236.0.1.el8_9.12.x86_64 is already installed.
Package glibc-langpack-ko-2.28-236.0.1.el8_9.12.x86_64 is already installed.
Package glibc-langpack-pt-2.28-236.0.1.el8_9.12.x86_64 is already installed.
Package glibc-langpack-ru-2.28-236.0.1.el8_9.12.x86_64 is already installed.
Package glibc-langpack-zh-2.28-236.0.1.el8_9.12.x86_64 is already installed.
Package glibc-langpack-ja-2.28-236.0.1.el8_9.12.x86_64 is already installed.
Package glibc-langpack-pl-2.28-236.0.1.el8_9.12.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Prerequisites installed OK
RESULT=0
Running './02-usergroups.sh'...
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
Users and Groups installed OK
RESULT=0
Running './03-database.sh'...
MySQL installed OK - continuing...
Starting MySQL...
Redirecting to /bin/systemctl restart mariadb.service
Initializing MySQL...
Saved password 'fusion' worked...
Updated the following MySQL/MariaDB configuration files successfully:
/etc/my.cnf.d/mariadb-server.cnf
/etc/my.cnf.d/mariadb-server.cnf.rpmsave
Reading /etc/my.cnf.d/mariadb-server.cnf ...
Removed ib_logfiles from /var/lib/mysqlReading /etc/my.cnf.d/mariadb-server.cnf.rpmsave ...
Setting up the Nagios Fusion database...
ERROR 1396 (HY000) at line 3: Operation CREATE USER failed for 'fusion'@'localhost'
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios technical support.

The script that failed was: './03-database.sh'

if I enter the DB the fusion@localhost user exists and even by removing it and trying the reinstallation again the error repeats.
There are no other programs installed, the VM was created specifically to host fusion.

Is there any way to solve the problem?
Regards
User avatar
ajcoil
Posts: 54
Joined: Wed Aug 09, 2023 10:30 am

Re: Error when try to install Nagios Fusion latest version

Post by ajcoil »

Hello @abar!

Sorry to hear you are having issues installing Fusion.

Just to clarify, the VM you attempted to install Fusion on, was a freshly created minimal install of Oracle 8.9 correct?
abar
Posts: 1
Joined: Mon Apr 22, 2024 10:26 am

Re: Error when try to install Nagios Fusion latest version

Post by abar »

Hello @ajcoil

the vm was initially a freshly installation of the server package (without GUI), later I deleted all the packages and activated only the one relating to the minimal install with the DNF command.

Available Environment Groups:
Server with GUI
Server
Workstation
Custom Operating System
Virtualization Host

Installed Environment Groups:
Minimal Install

Available Groups:
Legacy UNIX Compatibility
Container Management
Development Tools
.NET Core Development

Graphical Administration Tools
Headless Management
Network Servers
RPM Development Tools
Scientific Support
Security Tools
Smart Card Support
System Tools
Last edited by abar on Wed Apr 24, 2024 3:01 am, edited 1 time in total.
User avatar
ajcoil
Posts: 54
Joined: Wed Aug 09, 2023 10:30 am

Re: Error when try to install Nagios Fusion latest version

Post by ajcoil »

Hello @abar,

Thank you for reaching out!

If possible, I would recommend setting up a fresh VM and selecting "Minimal Install" from the "Software Selection" section when you run through the pre-install configurations.

Please feel free to reach out if you are still having any issues!
Post Reply