Page 1 of 1

Fresh Installation Issue on rhel 7

Posted: Thu Feb 03, 2022 5:04 pm
by ar0431
I am trying to install Nagios Analyzer on new machine with the following command. But it failed. It could not find "mariadb". Please see the install log file.

curl https://assets.nagios.com/downloads/nag ... install.sh | sh


make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/nagiosna/subcomponents/nfdump-1.6.22/doc'
make[1]: Leaving directory `/tmp/nagiosna/subcomponents/nfdump-1.6.22/doc'
build_nfdump step completed OK
Running 'library_path'...
library_path step completed OK
Running 'nagiosna'...
nagiosna step completed OK
Running 'backend'...
backend step completed OK
Running 'db'...
Redirecting to /bin/systemctl restart mariadb.service
Failed to restart mariadb.service: Unit not found.

===================
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 Enterprises technical support.

The step that failed was: 'db'

Re: Fresh Installation Issue on rhel 7

Posted: Fri Feb 04, 2022 9:46 am
by ar0431
any response????

Re: Fresh Installation Issue on rhel 7

Posted: Fri Feb 04, 2022 12:08 pm
by pbroste
Hello @ar0431

Thanks for reaching out, took a look at the Nagios Network Analyzer fullinstaller and we see that there is a check-in place to scan to see if there is MariaDB or MySQL installed. The line found in the installer:
It looks like MySQL and MariaDB are available on your system. Please pick one:
1 - MariaDB (Default)
2 - MySQL Community
Since that logic is in place, let's have you install the MariaDB via yum install then re-run the 'fullinstall' again.

Thanks,
Perry

Re: Fresh Installation Issue on rhel 7

Posted: Fri Feb 04, 2022 1:46 pm
by ar0431
thanks for the response. But what I found that I have already enabled Fedora EPEL and Mysql Community repositories. Which I think Nagios do not like. Nagios script install EPEL repository by itself. Now it installation is working fine.

Re: Fresh Installation Issue on rhel 7

Posted: Mon Feb 07, 2022 10:00 am
by pbroste
Excellent @ar0431; please let us know if you need anything further,
Perry