Nagios xi offline install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

Re: Nagios xi offline install

Post by vuduops »

This is not a kickstart issue. This is an issue with the nagios-xi install. As you can see it is failing at step 6.

MySQL initialized OK
Database servers initialized OK
RESULT=0
Running './4-services'...
/etc/services updated
RESULT=0
Running './5-sudoers'...
sudoers configured OK
RESULT=0
Running './6-firewall'...
iptables: Applying firewall rules: iptables-restore v1.4.7: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 3
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]^M
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: './6-firewall'


-Krishna
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios xi offline install

Post by rkennedy »

Try enabling the module as this post mentions (http://askubuntu.com/questions/28215/ho ... ble-filter) -

Code: Select all

modprobe /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/iptable_filter.ko
Former Nagios Employee
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

Re: Nagios xi offline install

Post by vuduops »

Wanted to check if you had chance to look at my question. We disable firewall during the kickstart. Is there a way I can have the fullinstall skip the iptables setup?


-Krishna
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios xi offline install

Post by bwallace »

If you really want to skip the iptables setup then you can always try commenting out the corresponding line in the fullinstall script:
# run_sub ./6-firewall

Or comment out lines 42 onward in the '6-firewall' script.

This is not supported so I've never tried it and can't guarantee anything. Otherwise what was the outcome of the command in rkennedy's post?
Is the outcome any different if you run through the process manually instead of through KS as tmcdonald mentioned?
Be sure to check out the Knowledgebase for helpful articles and solutions!
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

Re: Nagios xi offline install

Post by vuduops »

This all the I see in the full install script

[[email protected] nagiosxi]# cat fullinstall
#!/bin/sh -e

yum -y --nogpgcheck localinstall *.rpm

[[email protected] nagiosxi]# ls
./ nagiosxi-wmic-5-2.9.el6.x86_64.rpm
../ nmap-6.47-1.x86_64.rpm*
fping-3.10-1.el6.rf.x86_64.rpm* perl-Config-IniFiles-2.72-2.el6.noarch.rpm*
freetds-0.91-2.el6.x86_64.rpm* perl-Crypt-DES-2.05-9.el6.x86_64.rpm*
fullinstall* perl-Crypt-Rijndael-1.09-2.el6.x86_64.rpm*
libmcrypt-2.5.8-9.el6.x86_64.rpm* perl-Mail-IMAPClient-3.37-1.el6.noarch.rpm*
nagiosxi-5-2.9.el6.x86_64.rpm perl-Mail-POP3Client-2.18-6.el6.noarch.rpm*
nagiosxi-ajaxterm-5-2.9.el6.x86_64.rpm perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch.rpm*
nagiosxi-mrtg-5-2.9.el6.x86_64.rpm perl-Net-SNMP-5.2.0-4.el6.noarch.rpm*
nagiosxi-nagioscore-5-2.9.el6.x86_64.rpm perl-Number-Format-1.73-3.el6.noarch.rpm*
nagiosxi-nagiosmobile-5-2.9.el6.x86_64.rpm php-mcrypt-5.3.3-4.el6.x86_64.rpm*
nagiosxi-nagiosplugins-5-2.9.el6.x86_64.rpm php-mssql-5.3.3-4.el6.x86_64.rpm*
nagiosxi-nagiosql-5-2.9.el6.x86_64.rpm php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm*
nagiosxi-nagvis-5-2.9.el6.x86_64.rpm php-pecl-ssh2-0.11.0-7.el6.x86_64.rpm*
nagiosxi-ndoutils-5-2.9.el6.x86_64.rpm pymssql-1.0.2-4.el6.x86_64.rpm*
nagiosxi-nrds-5-2.9.el6.x86_64.rpm python-bson-2.5.2-3.el6.1.x86_64.rpm*
nagiosxi-nrpe-5-2.9.el6.x86_64.rpm python-pymongo-2.5.2-3.el6.1.x86_64.rpm*
nagiosxi-nsca-5-2.9.el6.x86_64.rpm nagiosxi-pnp-5-2.9.el6.x86_64.rpm upgrade*
nagiosxi-wkhtmltox-5-2.9.el6.x86_64.rpm

-Krishna
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios xi offline install

Post by mcapra »

Is installing/enabling iptables on this system in the interim an option? The nagiosxi-5-2.9.el6.x86_64.rpm depends on iptables. The rpm could be rebuilt without the iptables dependency, but I don't know how likely that is of happening.
Former Nagios employee
https://www.mcapra.com/
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

Re: Nagios xi offline install

Post by vuduops »

I was able to install nagios-xi by touching the installed.firewall to skip the iptables setup. I however have few followup question.

1. Setup the nagiosAdmin user without using the GUI ?
2. Accept the license without using the GUI?
3. Is there a way to add the license key manually without using the GUI?

Thanks
Krishna
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios xi offline install

Post by rkennedy »

That is one way to get around it. To answer your questions, none of these are going to be possible. Accessing the GUI is required to finish the initial installation.

Is there a specific reason for your questions?
Former Nagios Employee
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

Re: Nagios xi offline install

Post by vuduops »

Yes, Most of the application we have are automated through our kickstart or rollout process.

We check-in any custom configuration files for an application and install it through our rollout process or make the required change using automated scripts. So that we can quickly bring up an instance in-case of an issue with the current application with less manual intervention.

So it there was a way to set up a default admin password and accepting the license it would be helpful.

Also it would be great if you can share any documentation for Nagios-xi AD integration without using the GUI.

Thanks
Krishna
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios xi offline install

Post by ssax »

The functionality to set the admin password, accept the license, or configure AD from the command line is not currently available. If this is something that you need help implementing you can reach out to [email protected] to get a quote on custom development.

Thank you
Locked