Nagios XI clean install error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Nagios XI clean install error

Post by JakeHatMacys »

Need some help with this one...

From the Install.log:

Repos already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run your package manager's update command
Users/groups already configured - skipping.
MySQL installed OK - continuing...
Starting MySQL...
Redirecting to /bin/systemctl restart mariadb.service
Failed to restart mariadb.service: Unit not found.
ERROR: MySQL failed to start - exiting.
Nagios XI Installation Log
==========================
DATE: Fri Nov 17 10:35:17 EST 2017

DISTRO INFO:
OracleServer
7.3
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=5.4.11
major=5
minor=4.11
releasedate=2017-10-31
release=5411

Repos already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run your package manager's update command
Users/groups already configured - skipping.
MySQL installed OK - continuing...
Starting MySQL...
Redirecting to /bin/systemctl restart mariadb.service
Failed to restart mariadb.service: Unit not found.
ERROR: MySQL failed to start - exiting.


Got an admin trying to start it manually with no dice... any ideas?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI clean install error

Post by npolovenko »

Hello, @JakeHatMacys. Looks like MariaDB was not installed. Let's try to install it manually with:

Code: Select all

yum install mariadb mariadb-server mysql
If the mariadb installation gives you errors try running the following command to remove some preconfigured modules first:

Code: Select all

sudo yum remove mysql-community-libs mysql-community-common
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI clean install error

Post by JakeHatMacys »

Thanks I'll have my admins give this a whirl.
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI clean install error

Post by JakeHatMacys »

Side note... if I wanted to import a back up from another server (This new build will be our DR box that appears to not be using postgres???)

But the old configuration is running postgres will nagios translate the import or will that not work???
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI clean install error

Post by npolovenko »

@JakeHatMacys , When you import the backup it's going to convert your system back to Postgres. If you want to use MYSQL instead, you'd still import the backup, make sure everything works fine and then convert your system to MYSQL using this tutorial: https://support.nagios.com/kb/article.p ... ategory=31
Thanks I'll have my admins give this a whirl.
Sounds good, keep us updated!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI clean install error

Post by JakeHatMacys »

So this got delayed... we're getting further now but currently stuck here:

Code: Select all

DATE: Wed Nov 22 11:46:33 EST 2017

DISTRO INFO:
OracleServer
7.3
x86_64

THIS IS AN UPGRADE!

OLD VERSION:
full=5.4.11
major=5
minor=4.11
releasedate=2017-10-31
release=5411

INSTALLING:
full=5.4.11
major=5
minor=4.11
releasedate=2017-10-31
release=5411

Repos already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run your package manager's update command
Users/groups already configured - skipping.
Database servers already initialized - skipping.
/etc/services already updated - skipping.
sudoers already configured - skipping.
Firewall rules already configured - skipping.
Step completed OK
SELinux already configured - skipping.
Database backups already configured - skipping.
PHP limits already configured - skipping.
Sourceguardian already configured - skipping.
MRTG already configured - skipping.
PHP timezone already configured - skipping.
Subcomponents already configured - skipping.
Installing Nagios XI base files...
Creating product directory...
Adding password for user nagiosadmin
xidb already initialized - skipping.
Patching NDOUtils...
<h3>Databse Error</h3>A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.<p>Run the following from the CLI as root to attempt to repair the DB:<br><pre>/usr/local/nagiosxi/scripts/repair_databases.sh</pre></p>Installing/updating XI wizards...
Backing up existing wizards to /tmp/xiwizards_backup...
Installing 'wizards/autodiscovery.zip'
<h3>Databse Error</h3>A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.<p>Run the following from the CLI as root to attempt to repair the DB:<br><pre>/usr/local/nagiosxi/scripts/repair_databases.sh</pre></p>Installing 'wizards/bpiwizard.zip'
<h3>Databse Error</h3>A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.<p>Run the following from the CLI as root to attempt to repair the DB:<br><pre>/usr/local/nagiosxi/scripts/repair_databases.sh</pre></p>Installing 'wizards/bulkhostimport.zip'
Any ideas? We ran the DB repair but since the install is incomplete it can't start nagios obviously...
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI clean install error

Post by npolovenko »

@JakeHatMacys, We just replicated the same issue that you're having and passed it to our dev team. OracleServer is still not a supported OS for NagiosXI. Take a look here: https://support.nagios.com/kb/article/n ... es-14.html
I think the problem may be that OracleServer uses a different syntax to start MariaDB service.
We've been working on optimizing XI for OracleServer, and the release should happen in a near future. In a meanwhile, is there an opportunity to monitor OracleServer from another Nagios Server that runs on a supported OS?

PS You can check back with our tech support team in a few months to get a status of the release.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI clean install error

Post by JakeHatMacys »

npolovenko wrote:@JakeHatMacys, We just replicated the same issue that you're having and passed it to our dev team. OracleServer is still not a supported OS for NagiosXI. Take a look here: https://support.nagios.com/kb/article/n ... es-14.html
I think the problem may be that OracleServer uses a different syntax to start MariaDB service.
We've been working on optimizing XI for OracleServer, and the release should happen in a near future. In a meanwhile, is there an opportunity to monitor OracleServer from another Nagios Server that runs on a supported OS?

PS You can check back with our tech support team in a few months to get a status of the release.
Okay... we do have the OG postgres versions running on several oracle Red Hat Linux boxes.

Is there an older install version with Post Gres laying around I could maybe try and convert to maria later???
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI clean install error

Post by npolovenko »

@JakeHatMacys , I think XI was converted to MYSQL a while ago, you may have to go as late as 2014. Here's the link to older versions of XI: https://assets.nagios.com/downloads/nag ... rsions.php
But there's no guarantee that you won't encounter other problems down the line as this built hasn't been tested with Oracle.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Nagios XI clean install error

Post by JakeHatMacys »

npolovenko wrote:@JakeHatMacys , I think XI was converted to MYSQL a while ago, you may have to go as late as 2014. Here's the link to older versions of XI: https://assets.nagios.com/downloads/nag ... rsions.php
But there's no guarantee that you won't encounter other problems down the line as this built hasn't been tested with Oracle.
Better than nothing, i'll give it a whirl. We installed Fresh about a year or so ago with Post Gres systems on Oracle Redhat linux.
Locked