Page 1 of 1

Problem With Installation

Posted: Sun Sep 29, 2013 2:23 pm
by Gavin
I'm trying to install the latest build of Nagios XI on a Centos 6.2 (x64) VM. I'm running the installer as root and am unable to get past:

Code: Select all

make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.2/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.2/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.2/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
error: permission denied on key 'kernel.sysrq'
error: permission denied on key 'kernel.core_uses_pid'
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1
Here's a dump of '/etc/sysctl.conf'.

Code: Select all

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 131072000

# Controls the maximum size of a message, in bytes
kernel.msgmax = 131072000

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456
Do you have any idea why this might be failing? As always, any advice is appreciated :D

Thanks,

Gavin

Re: Problem With Installation

Posted: Sun Sep 29, 2013 2:34 pm
by Gavin
I commented out that section of the script, and it installed fine. It looks like it did make the changes it was supposed to make too.

Odd - please feel free to close this thread.

Thanks,

Gavin

Re: Problem With Installation

Posted: Mon Sep 30, 2013 9:21 am
by abrist
Did ndoutils install ok after your changes to the script? If not, this will be an issue as XI more or less requires a working install of ndo.

Re: Problem With Installation

Posted: Mon Sep 30, 2013 9:42 am
by Gavin
Yup, I only commented out the section that was making changes to sysctl.conf. Oddly, it did seem to make the changes successfully, but still threw an error.

Ndoutils is running fine.

Thanks,

Gavin

Re: Problem With Installation

Posted: Mon Sep 30, 2013 9:44 am
by abrist
Great. Enjoy the week. Lockin 'er up.