Page 1 of 2
Nagios XI clean install error
Posted: Fri Nov 17, 2017 10:50 am
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?
Re: Nagios XI clean install error
Posted: Fri Nov 17, 2017 11:09 am
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
Re: Nagios XI clean install error
Posted: Fri Nov 17, 2017 11:54 am
by JakeHatMacys
Thanks I'll have my admins give this a whirl.
Re: Nagios XI clean install error
Posted: Fri Nov 17, 2017 11:56 am
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???
Re: Nagios XI clean install error
Posted: Fri Nov 17, 2017 12:08 pm
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!
Re: Nagios XI clean install error
Posted: Wed Nov 22, 2017 11:50 am
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...
Re: Nagios XI clean install error
Posted: Wed Nov 22, 2017 3:31 pm
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.
Re: Nagios XI clean install error
Posted: Mon Nov 27, 2017 2:17 pm
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???
Re: Nagios XI clean install error
Posted: Mon Nov 27, 2017 2:56 pm
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.
Re: Nagios XI clean install error
Posted: Mon Nov 27, 2017 3:11 pm
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.