Hey, everyone.
I have tried to install Nagios xi in CentOS 6.3.
But, it seems there are some problem that make the installation failed.
Below is the information from the install.log :
Nagios xi Installation Log
==========================
DATE: Thu Nov 29 10:40:35 MYT 2012
DISTRO INFO:
CentOS
6.3
x86_64
THIS IS A NEW INSTALL!
INSTALLING:
full=2012R1.2
major=2012
minor=R1.2
releasedate=2012-11-05
release=302
Configuring Yum...
centos-release-6-3.el6.centos.9.x86_64
Enabling RPMForge repo...
Installing RPMForge PKG: packages/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
warning: packages/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
----------------------------------------------------------------------------
All comments and suggestions are very appreciated.
Thank you.
Problem on installing Nagios xi in CentOS 6.3
-
- Posts: 3
- Joined: Wed Nov 28, 2012 10:06 pm
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Problem on installing Nagios xi in CentOS 6.3
Are you running the installer as the root user?
-
- Posts: 3
- Joined: Wed Nov 28, 2012 10:06 pm
Re: Problem on installing Nagios xi in CentOS 6.3
Sorry for my mistake.
I forgot to install it as a root user.
But, the problem on installing Nagios xi still occured.
Below is the error message from install.log (it is different from before) for your reference :
Nagios xi Installation Log
==========================
DATE: Fri Nov 30 12:36:53 MYT 2012
DISTRO INFO:
CentOS
6.3
x86_64
THIS IS A NEW INSTALL!
INSTALLING:
full=2012R1.2
major=2012
minor=R1.2
releasedate=2012-11-05
release=302
Configuring Yum...
centos-release-6-3.el6.centos.9.x86_64
rpmforge-release RPM installed OK
epel-release RPM installed OK
Enabling CentOS 6 Continuous Release repo...
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
-----------------------------------------------------------------------------------------------------------
Thank you.
I forgot to install it as a root user.
But, the problem on installing Nagios xi still occured.
Below is the error message from install.log (it is different from before) for your reference :
Nagios xi Installation Log
==========================
DATE: Fri Nov 30 12:36:53 MYT 2012
DISTRO INFO:
CentOS
6.3
x86_64
THIS IS A NEW INSTALL!
INSTALLING:
full=2012R1.2
major=2012
minor=R1.2
releasedate=2012-11-05
release=302
Configuring Yum...
centos-release-6-3.el6.centos.9.x86_64
rpmforge-release RPM installed OK
epel-release RPM installed OK
Enabling CentOS 6 Continuous Release repo...
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
-----------------------------------------------------------------------------------------------------------
Thank you.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Problem on installing Nagios xi in CentOS 6.3
Does this machine have Internet Access?
-
- Posts: 3
- Joined: Wed Nov 28, 2012 10:06 pm
Re: Problem on installing Nagios xi in CentOS 6.3
Sorry for my mistake.
I forgot to connect to internet before installing.
But, the problem on installing Nagios xi still occured.
Below is the error message from install.log (it is different from before) for your reference :
I forgot to connect to internet before installing.
But, the problem on installing Nagios xi still occured.
Below is the error message from install.log (it is different from before) for your reference :
Code: Select all
-------------------------------------------------------------------------------------------------------------------
*** Configuration summary for ndoutils 1.5.1 05-15-2012 ***:
General Options:
-------------------------
NDO2DB user: nagios
NDO2DB group: nagios
Review the options above for accuracy. If they look okay,
type 'make' to compile the NDO utilities.
cd ./src && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -c -o io.o io.c
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -c -o utils.o utils.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -o file2sock file2sock.c io.o utils.o -lm -lnsl
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -o log2ndo log2ndo.c io.o utils.o -lm -lnsl
make ndo2db-2x
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -c -o db.o db.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c -o dbhandlers-2x.o dbhandlers.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndo2db-2x queue.c ndo2db.c dbhandlers-2x.o io.o utils.o db.o -lnsl -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lm
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
make ndo2db-3x
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -c -o dbhandlers-3x.o dbhandlers.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndo2db-3x queue.c ndo2db.c dbhandlers-3x.o io.o utils.o db.o -lnsl -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lm
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
make ndomod-2x.o
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -o ndomod-2x.o ndomod.c io.o utils.o -shared -lnsl
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
make ndomod-3x.o
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndomod-3x.o ndomod.c io.o utils.o -shared -lnsl
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -o sockdebug sockdebug.c io.o utils.o -lm -lnsl
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
/usr/bin/install -c -m 755 -o root -g root -d /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/ndo2db
NDOUTILS-POST
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
NOTE: If prompted, enter the MySQL root password
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Problem on installing Nagios xi in CentOS 6.3
Please review our installation platform requirements to make sure this system follows those guidelines:
Was mysql already installed on this system prior to running the installer?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.