I've attempted to run the fullinstall.sh script from v.5.4.3 downloaded yesterday (27th March) on a completely clean build of CentOS 7.3.1611 64 bit (on a DigitalOcean VM), and it failed with:
Code: Select all
RESETTING PERMS
/bin/chown: cannot access ‘/usr/local/nagiosxi/nom/checkpoints/nagiosxi’: No such file or directory
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /tmp/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /tmp/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /tmp/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /tmp/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /tmp/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /tmp/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /tmp/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /tmp/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /tmp/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /tmp/nagiosxi/nagiosxi/basedir/html/db/adodb/drivers/adodb-mysqli.inc.php on line 117
<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>URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2017-03-27 21:38:16-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 297 [text/html]
Saving to: ‘nagiosql.export.monitoring’
0K 100% 44.2M=0s
2017-03-27 21:38:36 (44.2 MB/s) - ‘nagiosql.export.monitoring’ saved [297/297]
NAGIOSQL WRITE CONFIGS FAILED!\n
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: './E-importnagiosql'
As advised in the output, I ran the /usr/local/nagiosxi/scripts/repair_databases.sh script, which seemed to have a couple of errors:
Code: Select all
DATABASE: nagiosql
TABLE:
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-03-28 05:24:19 UTC; 176ms ago
Process: 32373 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE)
Process: 32372 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
Process: 32345 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 32372 (code=exited, status=0/SUCCESS)
Mar 28 05:24:18 cyanelix-monitor systemd[1]: Starting MariaDB database server...
Mar 28 05:24:18 cyanelix-monitor mysqld_safe[32372]: 170328 05:24:18 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Mar 28 05:24:18 cyanelix-monitor mysqld_safe[32372]: 170328 05:24:18 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Mar 28 05:24:19 cyanelix-monitor systemd[1]: mariadb.service: control process exited, code=exited status=1
Mar 28 05:24:19 cyanelix-monitor systemd[1]: Failed to start MariaDB database server.
Mar 28 05:24:19 cyanelix-monitor systemd[1]: Unit mariadb.service entered failed state.
Mar 28 05:24:19 cyanelix-monitor systemd[1]: mariadb.service failed.
Code: Select all
DATABASE: nagiosxi
TABLE:
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-03-28 05:24:21 UTC; 304ms ago
Process: 32677 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE)
Process: 32676 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
Process: 32649 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 32676 (code=exited, status=0/SUCCESS)
Mar 28 05:24:20 cyanelix-monitor systemd[1]: Starting MariaDB database server...
Mar 28 05:24:20 cyanelix-monitor mysqld_safe[32676]: 170328 05:24:20 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Mar 28 05:24:20 cyanelix-monitor mysqld_safe[32676]: 170328 05:24:20 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Mar 28 05:24:21 cyanelix-monitor systemd[1]: mariadb.service: control process exited, code=exited status=1
Mar 28 05:24:21 cyanelix-monitor systemd[1]: Failed to start MariaDB database server.
Mar 28 05:24:21 cyanelix-monitor systemd[1]: Unit mariadb.service entered failed state.
Mar 28 05:24:21 cyanelix-monitor systemd[1]: mariadb.service failed.
Code: Select all
---------
- recovering (with sort) MyISAM-table 'xi_users.MYI'
Data records: 1
- Fixing index 1
- Fixing index 2
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
/tmp/nagiosxi
===============
REPAIR COMPLETE
===============
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
=======================
nagios database repair succeeded
nagiosql database repair succeeded
nagiosxi database repair succeeded
Code: Select all
NOTE: If prompted, enter the MySQL root password
ERROR: Cannot connect to NagiosQL database - exiting. Were MySQL and NagiosQL installed?
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: './E-importnagiosql'
Code: Select all
$ service mysqld status
Redirecting to /bin/systemctl status mysqld.service
Unit mysqld.service could not be found.
$ service mariadb status
Redirecting to /bin/systemctl status mariadb.service
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Tue 2017-03-28 05:25:04 UTC; 32min ago
Process: 814 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
Process: 813 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
Process: 784 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 813 (code=exited, status=0/SUCCESS)
Mar 28 05:24:22 cyanelix-monitor systemd[1]: Starting MariaDB database server...
Mar 28 05:24:23 cyanelix-monitor mysqld_safe[813]: 170328 05:24:23 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Mar 28 05:24:23 cyanelix-monitor mysqld_safe[813]: 170328 05:24:23 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Mar 28 05:24:24 cyanelix-monitor systemd[1]: Started MariaDB database server.
Mar 28 05:25:03 cyanelix-monitor mysqld_safe[813]: /usr/bin/mysqld_safe: line 183: 1048 Killed nohup /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log...
Mar 28 05:25:04 cyanelix-monitor mysqld_safe[813]: 170328 05:25:04 mysqld_safe Number of processes running now: 0
Mar 28 05:25:04 cyanelix-monitor mysqld_safe[813]: 170328 05:25:04 mysqld_safe mysqld restarted
Mar 28 05:25:04 cyanelix-monitor mysqld_safe[813]: 170328 05:25:04 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Hint: Some lines were ellipsized, use -l to show in full.
$ service ndo2db status
ndo2db (pid 1084) is running...
Any advice gratefully received.