Page 3 of 3
Re: Nagios XI install error
Posted: Sun Mar 25, 2018 2:31 pm
by SysErrors
kyang wrote: 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
Try removing the
mysql-community-common
Code: Select all
yum erase mysql-community-common.x86_64
If that doesn't work try,
Code: Select all
yum erase mysql-community-common-5.7.21-1.el7.x86_64
Then try rerunning the
./fullinstall -n
And i have this errors
Code: Select all
mv -f .deps/check_uptime.Tpo .deps/check_uptime.Po
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/usr/include -I/usr/include/mysql -I/usr/include/mysql/mysql -DNP_VERSION='"2.0.3"' -I/usr/include/mysql -I/usr/include/mysql/mysql -g -O2 -MT check_mysql_query-check_mysql_query.o -MD -MP -MF .deps/check_mysql_query-check_mysql_query.Tpo -c -o check_mysql_query-check_mysql_query.o `test -f 'check_mysql_query.c' || echo './'`check_mysql_query.c
check_mysql.c:61:24: ошибка: «MYSQL_PORT» undeclared here (not in a function)
unsigned int db_port = MYSQL_PORT;
^
make[2]: *** [check_mysql-check_mysql.o] Ошибка 1
make[2]: *** Ожидание завершения заданий...
check_mysql_query.c:51:24: ошибка: «MYSQL_PORT» undeclared here (not in a function)
unsigned int db_port = MYSQL_PORT;
^
make[2]: *** [check_mysql_query-check_mysql_query.o] Ошибка 1
make[2]: Выход из каталога `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.0.3/plugins'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Выход из каталога `/tmp/nagiosxi/subcomponents/nagiosplugins/nagios-plugins-2.0.3'
make: *** [all] Ошибка 2
ERROR: Subcomponent 'nagiosplugins' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1
===================
INSTALLATION ERROR!
===================
Re: Nagios XI install error
Posted: Mon Mar 26, 2018 4:02 pm
by kyang
Are you able to do a clean install of CentOS and then run the documentation for manually installation? Or using the quick installation.
https://assets.nagios.com/downloads/nag ... -Linux.pdf
It would be a lot easier, and will save you time instead of trying to resolve each problem that occurs.
This is our biggest reason for installing any Nagios Products on a clean system.
by lmiltchev
Nagios supports installing Nagios XI only on a newly installed, clean systems.
Important: Nagios Enterprises highly recommends and will only support installing Nagios XI on a newly installed, "clean" system. Attempting to install Nagios XI on a pre-existing system with other applications already installed can cause the Nagios XI installation process to fail, critical system components and settings (e.g. database servers) to be modified in a way that negatively affects other applications, and previously installed applications to be automatically upgraded or removed. While installing XI on a system with other applications is possible, it is not recommended due to the possible interactions and complexity of multiple components that are required for Nagios XI to function. If you choose to ignore these warnings, you do so at your own risk.
Re: Nagios XI install error
Posted: Thu Apr 12, 2018 4:34 am
by SysErrors
kyang wrote:Are you able to do a clean install of CentOS and then run the documentation for manually installation? Or using the quick installation.
https://assets.nagios.com/downloads/nag ... -Linux.pdf
It would be a lot easier, and will save you time instead of trying to resolve each problem that occurs.
This is our biggest reason for installing any Nagios Products on a clean system.
by lmiltchev
Nagios supports installing Nagios XI only on a newly installed, clean systems.
Important: Nagios Enterprises highly recommends and will only support installing Nagios XI on a newly installed, "clean" system. Attempting to install Nagios XI on a pre-existing system with other applications already installed can cause the Nagios XI installation process to fail, critical system components and settings (e.g. database servers) to be modified in a way that negatively affects other applications, and previously installed applications to be automatically upgraded or removed. While installing XI on a system with other applications is possible, it is not recommended due to the possible interactions and complexity of multiple components that are required for Nagios XI to function. If you choose to ignore these warnings, you do so at your own risk.
I understand. I managed to establish. After that, when I try to go to the page, I get an error.
Code: Select all
Not Found
The requested URL /nagiosxi/ was not found on this server.
But the status does not show errors.
Code: Select all
systemctl status nagiosxi -l
● nagiosxi.service - SYSV: NagiosXI subtasks
Loaded: loaded (/etc/rc.d/init.d/nagiosxi; bad; vendor preset: disabled)
Active: active (exited) since Чтв 2018-04-12 12:01:50 EEST; 25min ago
Docs: man:systemd-sysv-generator(8)
Process: 20688 ExecStop=/etc/rc.d/init.d/nagiosxi stop (code=exited, status=0/SUCCESS)
Process: 20690 ExecStart=/etc/rc.d/init.d/nagiosxi start (code=exited, status=0/SUCCESS)
Apr 12 12:01:50 host.local systemd[1]: Starting SYSV: NagiosXI subtasks...
Apr 12 12:01:50 host.local systemd[1]: Started SYSV: NagiosXI subtasks.
Re: Nagios XI install error
Posted: Thu Apr 12, 2018 10:07 am
by lmiltchev
When you say:
I understand. I managed to establish. After that, when I try to go to the page, I get an error.
do you mean that you were able to complete the install of Nagios XI successfully? Did you see the confirmation message at the end?
Can you post the entire
install.log? It is located in the "/tmp/nagiosxi" directory.
Also, run the following commands and show the output:
Code: Select all
systemctl status nagios
systemctl status mariadb
systemctl status httpd
systemctl status firewalld
sestatus
Re: Nagios XI install error
Posted: Fri Apr 13, 2018 5:15 am
by SysErrors
lmiltchev wrote:When you say:
I understand. I managed to establish. After that, when I try to go to the page, I get an error.
do you mean that you were able to complete the install of Nagios XI successfully? Did you see the confirmation message at the end?
Can you post the entire
install.log? It is located in the "/tmp/nagiosxi" directory.
Also, run the following commands and show the output:
Code: Select all
systemctl status nagios
systemctl status mariadb
systemctl status httpd
systemctl status firewalld
sestatus
Code: Select all
[root@host ~]# systemctl status nagios
● nagios.service - Nagios Core Monitoring Daemon
Loaded: loaded (/etc/systemd/system/nagios.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[root@host ~]# systemctl status mariadb
● mariadb.service - MariaDB 10.2.14 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: active (running) since Птн 2018-04-13 13:01:15 EEST; 11min ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Process: 1574 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 1201 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
Process: 1181 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Main PID: 1344 (mysqld)
Status: "Taking your SQL requests now..."
CGroup: /system.slice/mariadb.service
└─1344 /usr/sbin/mysqld
Апр 13 13:01:14 host.local mysqld[1344]: 2018-04-13 13:01:14 139720722131...4
Апр 13 13:01:14 host.local mysqld[1344]: 2018-04-13 13:01:14 139720722131....
Апр 13 13:01:14 host.local mysqld[1344]: 2018-04-13 13:01:14 139719706928...l
Апр 13 13:01:14 host.local mysqld[1344]: 2018-04-13 13:01:14 139719706928...4
Апр 13 13:01:15 host.local mysqld[1344]: 2018-04-13 13:01:15 139720722131....
Апр 13 13:01:15 host.local mysqld[1344]: 2018-04-13 13:01:15 139720722131...d
Апр 13 13:01:15 host.local mysqld[1344]: 2018-04-13 13:01:15 139720722131...e
Апр 13 13:01:15 host.local mysqld[1344]: 2018-04-13 13:01:15 139720722131....
Апр 13 13:01:15 host.local mysqld[1344]: Version: '10.2.14-MariaDB' sock...r
Апр 13 13:01:15 host.local systemd[1]: Started MariaDB 10.2.14 database s....
Hint: Some lines were ellipsized, use -l to show in full.
[root@host ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Птн 2018-04-13 13:01:15 EEST; 11min ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 1405 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─1405 /usr/sbin/httpd -DFOREGROUND
├─1567 /usr/sbin/httpd -DFOREGROUND
├─1568 /usr/sbin/httpd -DFOREGROUND
├─1569 /usr/sbin/httpd -DFOREGROUND
├─1570 /usr/sbin/httpd -DFOREGROUND
└─1571 /usr/sbin/httpd -DFOREGROUND
Апр 13 13:01:09 host.local systemd[1]: Starting The Apache HTTP Server...
Апр 13 13:01:15 host.local systemd[1]: Started The Apache HTTP Server.
[root@host ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since Птн 2018-04-13 13:00:47 EEST; 12min ago
Docs: man:firewalld(1)
Main PID: 623 (firewalld)
CGroup: /system.slice/firewalld.service
└─623 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
Апр 13 13:00:46 localhost.localdomain systemd[1]: Starting firewalld - dyn...
Апр 13 13:00:47 localhost.localdomain systemd[1]: Started firewalld - dyna...
Апр 13 13:00:48 localhost.localdomain firewalld[623]: WARNING: ICMP type '...
Апр 13 13:00:48 localhost.localdomain firewalld[623]: WARNING: beyond-scop...
Апр 13 13:00:48 localhost.localdomain firewalld[623]: WARNING: ICMP type '...
Апр 13 13:00:48 localhost.localdomain firewalld[623]: WARNING: failed-poli...
Апр 13 13:00:48 localhost.localdomain firewalld[623]: WARNING: ICMP type '...
Апр 13 13:00:48 localhost.localdomain firewalld[623]: WARNING: reject-rout...
Hint: Some lines were ellipsized, use -l to show in full.
[root@host ~]# sestatus
SELinux status: disabled
[root@host ~]# systemctl status nagiosxi
● nagiosxi.service - SYSV: NagiosXI subtasks
Loaded: loaded (/etc/rc.d/init.d/nagiosxi; bad; vendor preset: disabled)
Active: active (exited) since Птн 2018-04-13 13:01:11 EEST; 12min ago
Docs: man:systemd-sysv-generator(8)
Process: 1463 ExecStart=/etc/rc.d/init.d/nagiosxi start (code=exited, status=0/SUCCESS)
Апр 13 13:01:11 host.local systemd[1]: Starting SYSV: NagiosXI subtasks...
Апр 13 13:01:11 host.local systemd[1]: Started SYSV: NagiosXI subtasks.
Re: Nagios XI install error
Posted: Fri Apr 13, 2018 10:10 am
by lmiltchev
Were you able to complete the install of Nagios XI successfully? Other words, did you see the confirmation message at the end?
Please post the entire install.log? It is located in the "/tmp/nagiosxi" directory.