Offline Nagios XI installation and certification issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Offline Nagios XI installation and certification issue

Post by axvers »

Hi support,

I have a server which is definitely need to be isolated from the Internet and need to install Nagios XI on it.

I followed the step provided from https://repo.nagios.com/nagiosxi-offline/ to install nagios xi offline.

1. download this:
https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz

2. followed exactly the instruction's guide

Code: Select all

mkdir -p /tmp/rpms
cd /tmp/rpms
rm -rf nagiosxi*
Place the tarball downloaded from above in /tmp/rpms/

Code: Select all

tar xzf nagiosxi*
cd nagiosxi*
./fullinstall
3. first installation was failed and it showed - (please check the attachment #1)
Snipaste_2019-05-13_16-26-22.png
4. I used the following command on another Internet-reachable server tried to fix rpm dependencies error:

Code: Select all

yum reinstall --downloadonly --downloaddir=/tmp/download-rpms <packages>

where the <packages> are contained:

Code: Select all

dejavu-lgc-sans-fonts
dejavu-lgc-sans-mono-fonts
graphviz-gd
net-snmp-libs
net-snmp-perl
net-snmp
net-snmp-agent-libs
net-snmp-perl
php-devel
php-mbstring
php-snmp
perl-Config-Tiny
perl-Crypt-DES
perl-Parse-RecDescent
5. run ./fullinstall again, and I got - (please check the 2nd attachment)
Snipaste_2019-05-13_16-26-39.png
------

env info:
- centos 7.1
- 64 bit
- new/clean server before the installing steps described above.

-----

Could you provide a real full-installed package?

or other work-around to this?

Because that server is really need to be isolated from Internet due to some policies.
(It is ok running older version of nagios xi as long as it can run.)

Another issue is that, even if we installed nagios xi offline successfully, the license token still need to be activated online.

Could you provide another way for license token activation?
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Offline Nagios XI installation and certification issue

Post by cdienger »

Part of the install requirements is that the machine still have access to the CentOS base repository which doesn't appear to have been the case here:
CentOS
Offline server must still have access to CentOS Base Repo (actual or clone) for installation/upgrade
This repo does not have to be found on the internet - you could install a local repo or load the packages via installation media:

https://www.tecmint.com/setup-local-htt ... -centos-7/
https://www.itzgeek.com/how-tos/linux/c ... g-dvd.html

The machine doesn't need to be online to activate it - you can use http://www.nagios.com/activate to get an activation key. See:

https://assets.nagios.com/downloads/nag ... vation.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: Offline Nagios XI installation and certification issue

Post by axvers »

I tried make a local repo:

1. copy iso

I copied the Everything.iso from (http://archive.kernel.org/centos-vault/ ... 503-01.iso),

which is 7.1 version of centos.

2. install nagios xi fullinstall script...and add a rrdtool-devel-1.9.rpm it finally works. Thanks!


but here is a new problem:

After the fullinstall scirpt showed "installation done" (or something), I can't reach nagios xi through browsers.

Note: I am not sure about if there's some firewall issue by now, but..

1. services are dead.
- httpd: dead
- nagios: dead
- mariadb: dead

2. the xi-install.log file left a message:

Code: Select all

Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
Users and groups added OK
./init-mysql: line 15: [: too many arguments
ERROR: MySQL not installed - exiting.
Is it normal at this point?

I think the services should be running after the installation, right?

I will check the firewall issue from the admins later, but i am not sure if the installation is correctly.

If not, could you advise us how to uninstall nagios xi correctly?


--- new 1 ---
There is no firewall issues because I can touch the httpd default page.

The following service could start by manual:
- mariadb
- httpd

But when I want to start nagios, it showed failed; and couldn't find any error messages.
nagios-service-status.png
Didn't change anything in all installations except:
- added rrdtool-devel-1.9.rpm due to message got from error dependencies while doing yum installs.
- added a local-repo packages all from everything.iso.


attached nagios.cfg here if needed:

Code: Select all

[root@nagiosxi01 etc]# cat nagios.cfg
# MODIFIED
admin_email=root@localhost
admin_pager=root@localhost
translate_passive_host_checks=1
log_event_handlers=0
use_large_installation_tweaks=1
enable_environment_macros=0


# NDOUtils module
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg


# PNP settings - bulk mode with NCPD
process_performance_data=1
# service performance data
service_perfdata_file=/usr/local/nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$\tLONGSERVICEOUTPUT::$LONGSERVICEOUTPUT$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file-bulk
# host performance data
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$\tLONGHOSTOUTPUT::$LONGHOSTOUTPUT$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-bulk


# OBJECTS - UNMODIFIED
#cfg_file=/usr/local/nagios/etc/objects/commands.cfg
#cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
#cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
#cfg_file=/usr/local/nagios/etc/objects/templates.cfg
#cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg


# STATIC OBJECT DEFINITIONS (THESE DON'T GET EXPORTED/IMPORTED BY NAGIOSQL)
cfg_dir=/usr/local/nagios/etc/static

# OBJECTS EXPORTED FROM NAGIOSQL
cfg_file=/usr/local/nagios/etc/contacttemplates.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/commands.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/servicegroups.cfg
cfg_file=/usr/local/nagios/etc/hosttemplates.cfg
cfg_file=/usr/local/nagios/etc/servicetemplates.cfg
cfg_file=/usr/local/nagios/etc/servicedependencies.cfg
cfg_file=/usr/local/nagios/etc/serviceescalations.cfg
cfg_file=/usr/local/nagios/etc/hostdependencies.cfg
cfg_file=/usr/local/nagios/etc/hostescalations.cfg
cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg
cfg_dir=/usr/local/nagios/etc/hosts
cfg_dir=/usr/local/nagios/etc/services

# GLOBAL EVENT HANDLERS
global_host_event_handler=xi_host_event_handler
global_service_event_handler=xi_service_event_handler



# UNMODIFIED
accept_passive_host_checks=1
accept_passive_service_checks=1
additional_freshness_latency=15
auto_reschedule_checks=1
auto_rescheduling_interval=30
auto_rescheduling_window=45
bare_update_check=0
cached_host_check_horizon=15
cached_service_check_horizon=15
check_external_commands=1
check_for_orphaned_hosts=1
check_for_orphaned_services=1
check_for_updates=1
check_host_freshness=0
check_result_path=/usr/local/nagios/var/spool/checkresults
check_result_reaper_frequency=10
check_service_freshness=1
command_file=/usr/local/nagios/var/rw/nagios.cmd
daemon_dumps_core=0
date_format=us
debug_file=/usr/local/nagios/var/nagios.debug
debug_level=0
debug_verbosity=1
enable_event_handlers=1
enable_flap_detection=1
enable_notifications=1
enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1
event_broker_options=-1
event_handler_timeout=30
execute_host_checks=1
execute_service_checks=1
high_host_flap_threshold=20.0
high_service_flap_threshold=20.0
host_check_timeout=30
host_freshness_check_interval=60
host_inter_check_delay_method=s
illegal_macro_output_chars=`~$&|'"<>
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
interval_length=60
lock_file=/var/run/nagios.lock
log_archive_path=/usr/local/nagios/var/archives
log_external_commands=0
log_file=/usr/local/nagios/var/nagios.log
log_host_retries=1
log_initial_states=0
log_notifications=1
log_passive_checks=0
log_rotation_method=d
log_service_retries=1
low_host_flap_threshold=5.0
low_service_flap_threshold=5.0
max_check_result_file_age=3600
max_check_result_reaper_time=30
max_concurrent_checks=0
max_debug_file_size=1000000
max_host_check_spread=30
max_service_check_spread=30
nagios_group=nagios
nagios_user=nagios
notification_timeout=30
object_cache_file=/usr/local/nagios/var/objects.cache
obsess_over_hosts=0
obsess_over_services=0
ocsp_timeout=5
passive_host_checks_are_soft=0
perfdata_timeout=5
precached_object_file=/usr/local/nagios/var/objects.precache
resource_file=/usr/local/nagios/etc/resource.cfg
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
retained_host_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_service_attribute_mask=0
retain_state_information=1
retention_update_interval=60
service_check_timeout=60
service_freshness_check_interval=60
service_inter_check_delay_method=s
service_interleave_factor=s
soft_state_dependencies=0
state_retention_file=/usr/local/nagios/var/retention.dat
status_file=/usr/local/nagios/var/status.dat
status_update_interval=10
temp_file=/usr/local/nagios/var/nagios.tmp
temp_path=/tmp
use_aggressive_host_checking=0
use_regexp_matching=0
use_retained_program_state=1
use_retained_scheduling_info=1
use_syslog=1
please help!
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Offline Nagios XI installation and certification issue

Post by cdienger »

Try forcing a reinstall:

Code: Select all

cd /tmp/rpms
yum -y --nogpgcheck reinstall *.rpm
Failing that, there are likely going to be some conflicts due to the failed attempt before - if possible I'd try to start with a fresh install of the OS.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: Offline Nagios XI installation and certification issue

Post by axvers »

Not worked.

We're processing re-import vm now.

After some test, we found it could be wrong OS sub-version causing mysql installation failure.

The latest nagios xi offline tgz file not working on centos 7.1, but 7.6; both doing with offline and the everything.iso repo.

So want to ask that if you can provide the support matrix of CentOS 7.x v.s. offline installation packages (5.x.tar.gz)?

It would be very helpful while installing Nagios xi with different centos versions.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Offline Nagios XI installation and certification issue

Post by cdienger »

I would expect the install to work with the 7.1 version. I'm downloading an 7.1 ISO now to test and will let you know if I can reproduce.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked