Page 1 of 3

Nagios XI install error

Posted: Mon Mar 19, 2018 5:15 am
by SysErrors
When installing Nagios XI, an error occurs.

Code: Select all

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.

Code: Select all

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.............................

Re: Nagios XI install error

Posted: Mon Mar 19, 2018 9:22 am
by SysErrors
And install.log u welcome.

Re: Nagios XI install error

Posted: Mon Mar 19, 2018 1:31 pm
by npolovenko
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

Re: Nagios XI install error

Posted: Tue Mar 20, 2018 2:24 am
by SysErrors
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.

Re: Nagios XI install error

Posted: Tue Mar 20, 2018 2:48 am
by SysErrors
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.

Re: Nagios XI install error

Posted: Tue Mar 20, 2018 2:50 am
by SysErrors
But after I had such a mistake.

Code: Select all

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!
===================

Re: Nagios XI install error

Posted: Tue Mar 20, 2018 3:18 am
by SysErrors
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.

Code: Select all

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!
===================

Re: Nagios XI install error

Posted: Tue Mar 20, 2018 3:46 am
by SysErrors
I decided to upload the new installation file and the installation was started again without errors. But after that there was such a mistake)

Code: Select all

NDOUTILS-POST
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 1007 (HY000) at line 1: Can't create database 'nagios'; database exists
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1

===================
INSTALLATION ERROR!
===================

Re: Nagios XI install error

Posted: Tue Mar 20, 2018 6:51 am
by SysErrors
Removing the nagios database, I received the following error

Code: Select all

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!
===================
MySQL is installed

Code: Select all

mysql> SHOW VARIABLES LIKE 'validate_password%';
+--------------------------------------+--------+
| Variable_name                        | Value  |
+--------------------------------------+--------+
| validate_password_check_user_name    | OFF    |
| validate_password_dictionary_file    |        |
| validate_password_length             | 6      |
| validate_password_mixed_case_count   | 0      |
| validate_password_number_count       | 1      |
| validate_password_policy             | MEDIUM |
| validate_password_special_char_count | 0      |
+--------------------------------------+--------+
7 rows in set (0,01 sec)

Re: Nagios XI install error

Posted: Tue Mar 20, 2018 4:51 pm
by npolovenko
@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.