Page 1 of 1

Getting error in Nagios XI

Posted: Sat Feb 25, 2017 6:51 am
by rlinux57
I have getting below error while installing Nagios XI on my lxd container centos6.8 (4.4.0-64-generic)

Code: Select all

===================
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: './6-firewall'
[root@exotic-owl nagiosxi]# 
[root@exotic-owl nagiosxi]# service iptables restart 
iptables: Setting chains to policy ACCEPT: nat mangle filte[  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:  iptable_nat iptable_mangle ip[FAILED]lter iptable_nat iptable_mangle iptable_filter ip_tables
iptables: Applying firewall rules: 

Re: Getting error in Nagios XI

Posted: Mon Feb 27, 2017 6:17 am
by rlinux57
Any update ?

Re: Getting error in Nagios XI

Posted: Mon Feb 27, 2017 10:53 am
by bwallace
Our hours are 9am - 5pm Mon - Thurs and 9am - 2pm Fridays (CST) hence the delayed response.

Was this a clean, minimal install of this OS?
(refer to the XI Installation Prerequisites here
https://assets.nagios.com/downloads/nag ... ctions.pdf
The step that is failing, this updates the iptables config on the system. The following will skip the step of modifying the firewall/iptables. Is the install successfull when you run this:

Code: Select all

touch installed.firewall
./fullinstall

Re: Getting error in Nagios XI

Posted: Tue Feb 28, 2017 1:50 am
by rlinux57
I think its a minimal os.
Now its working but getting another error below:

Code: Select all

error: permission denied on key 'kernel.sysrq'
error: permission denied on key 'kernel.core_uses_pid'
error: permission denied on key 'kernel.msgmnb'
error: permission denied on key 'kernel.msgmax'
error: permission denied on key 'kernel.shmmax'
error: permission denied on key 'kernel.shmall'
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
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: './A-subcomponents'

Re: Getting error in Nagios XI

Posted: Tue Feb 28, 2017 2:32 am
by rlinux57
I followed this thread https://support.nagios.com/forum/viewto ... f=6&t=7617 , now i am getting different error:

Code: Select all

make[1]: Leaving directory `/root/nagiosxi/subcomponents/nagioscore/nagios-4.2.4'
/usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/nagios

*** Init script installed ***

/usr/bin/install -c -m 775 -o nagios -g nagcmd -d /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw

*** External command directory configured ***

NAGIOSCORE-POST
httpd: unrecognized service
ERROR: Subcomponent 'nagioscore' installation failed - exiting.
Subcomponents installation failed - exiting
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: './A-subcomponents'

Code: Select all

[root@exotic-owl nagiosxi]# free -m
             total       used       free     shared    buffers     cached
Mem:          7400         35       7364        432          0         33
-/+ buffers/cache:          1       7398
Swap:   8796093014807          0 8796093014806

Re: Getting error in Nagios XI

Posted: Tue Feb 28, 2017 12:10 pm
by mcapra
Can you share the output of the following commands executed from the CLI of your Nagios XI machine:

Code: Select all

yum clean all
yum install httpd
rpm -qa | grep http
Can you also try running the fullinstall script after those steps?

Re: Getting error in Nagios XI

Posted: Wed Mar 01, 2017 3:04 am
by rlinux57
Below are the output of following command, still same error after running given commands:

Code: Select all

[root@exotic-owl ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base cr epel extras nagios-base nagiosxi-deps updates
Cleaning up Everything
Cleaning up list of fastest mirrors

Code: Select all

[root@exotic-owl ~]# yum install httpd
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base

Code: Select all

[root@exotic-owl ~]# rpm -qa | grep http
httpd-tools-2.2.15-56.el6.centos.3.x86_64

Re: Getting error in Nagios XI

Posted: Wed Mar 01, 2017 12:50 pm
by mcapra
It looks as if this machine is unable to resolve the CentOS repository hosts:

Code: Select all

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
That is likely the root of your problems. Is this machine in an offline environment? We have offline repositories for such a setup, though they should only be used if this machine has no internet access:
http://repo.nagios.com/

Otherwise, you'll probably need to change your system's network settings or resolv.conf to properly resolve the various CentOS repository mirrors.