Getting error in Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Getting error in Nagios XI

Post 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: 
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Getting error in Nagios XI

Post by rlinux57 »

Any update ?
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

Re: Getting error in Nagios XI

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Getting error in Nagios XI

Post 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'
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Getting error in Nagios XI

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Getting error in Nagios XI

Post 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?
Former Nagios employee
https://www.mcapra.com/
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Getting error in Nagios XI

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Getting error in Nagios XI

Post 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.
Former Nagios employee
https://www.mcapra.com/
Locked