Running './0-repos'...
Configuring Repos...
centos-release-7-4.1708.el7.centos.x86_64
epel-release RPM installed OK
Repo configured OK
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
----------------------------------------
It looks like MySQL and MariaDB are available on your system. Please pick one:
1 - MariaDB (Default)
2 - MySQL Community
----------------------------------------
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 XI technical support.
The script that failed was: './1-prereqs'
I'm not receiving a confirmation request for 1 or 2 options. The installation will automatically terminate and produce this error.
Where can I specify the choice of MySQL?
If the case in the installation of Maria DB, then gives the following error.
Transaction check error:
file /usr/share/mysql/charsets/Index.xml from install of MariaDB-common-5.5.59-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.21-1.el7.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of MariaDB-common-5.5.59-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.21-1.el7.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of MariaDB-common-5.5.59-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.21-1.el7.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of MariaDB-common-5.5.59-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.21-1.el7.x86_64
file /usr/share/mysql/charsets/cp1256.xml from install of MariaDB-common-5.5.59-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.21-1.el7.x86_64
file /usr/share/mysql/charsets/cp1257.xml from install of MariaDB-common-5.5.59-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.21-1.el7.x86_64
file /usr/share/mysql/charsets/cp850.xml from install of MariaDB-common-5.5.59-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.21-1.el7.x86_64
file /usr/share/mysql/charsets/cp852.xml from install of MariaDB-common-5.5.59-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.21-1.el7.x86_64
file /usr/share/mysql/charsets/cp866.xml from install of MariaDB-common-5.5.59-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.21-1.el7.x86_64
file /usr/share/mysql/charsets/dec8.xml from install of MariaDB-common-5.5.59-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.21-1.el7.x86_64
...........................AND MORE.............................
Hello, @SysErrors. It is supposed to ask you which installation option you'd like to choose and allow you type in the number. If you just press Enter without typing anything the default option will get selected (#1). If this doesn't work you may modify the 1-prereqs script to default with option number 2 instead.
Find this line:
read -p "Which DB server would you like to use? [1]: " mysql_res
And replace it with:
read -p "Which DB server would you like to use? [2]: " mysql_res
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
npolovenko wrote:Hello, @SysErrors. It is supposed to ask you which installation option you'd like to choose and allow you type in the number. If you just press Enter without typing anything the default option will get selected (#1). If this doesn't work you may modify the 1-prereqs script to default with option number 2 instead.
Find this line:
read -p "Which DB server would you like to use? [1]: " mysql_res
And replace it with:
read -p "Which DB server would you like to use? [2]: " mysql_res
In the file './1-prereqs' I changed the line you specified. But after the installation, it returns the value 1 again and produces the same error as before.
My mistake. I used the wrong command after the change.
I`m use "curl https://assets.nagios.com/downloads/nagiosxi/install.sh | sh"
And it was necessary to use "./fullinstall"
After that, I was asked to choose 1/2 and the installation went on.
MRTG-POST
MRTG installed OK
Subcomponent 'mrtg' installed OK
Subcomponents installed OK
RESULT=0
Running './B-installxi'...
Installing Nagios XI base files...
Creating product directory...
Adding password for user nagiosadmin
Checking MySQL status...
MySQL running - continuing...
Setting up Nagios XI database...
Enter password:
ERROR 1007 (HY000) at line 4: Can't create database 'nagiosxi'; database exists
ERROR: Nagios XI database was not setup properly - exiting.
RESULT=1
===================
INSTALLATION ERROR!
===================
Since the installation reported that the database was already created, I decided to delete it and install it on a new one. But after that I had the following problem.
Running './B-installxi'...
Installing Nagios XI base files...
Creating product directory...
Adding password for user nagiosadmin
Checking MySQL status...
MySQL running - continuing...
Setting up Nagios XI database...
Enter password:
ERROR 1067 (42000) at line 25: Invalid default value for 'event_time'
ERROR: Nagios XI database was not setup properly - exiting.
RESULT=1
===================
INSTALLATION ERROR!
===================
kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
NOTE: If prompted, enter the MySQL root password
Enter password:
Enter password:
ERROR 1819 (HY000) at line 3: Your password does not satisfy the current policy requirements
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1
===================
INSTALLATION ERROR!
===================
@SysErrors, I wonder why you already had the Nagios xi database. Did you used to have another XI on that same system? I highly recommend wiping the whole system instead and installing Nagios XI from a clean state. We also have VMWare images on the website that you can use right out of the box.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.