NagiosXI Install fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pmuthyal
Posts: 5
Joined: Mon Oct 24, 2016 9:07 am

NagiosXI Install fails

Post by pmuthyal »

NagiosXI full install fails on RHEL 6.8 on a vanilla install with proxies disabled.

It fails at the E-importnagiosql.

Nagios XI Installation Log
==========================
DATE: Thu Oct 20 16:49:08 EDT 2016

DISTRO INFO:
RedHatEnterpriseServer
6.8
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=5.3.1
major=5
minor=3.1
releasedate=2016-10-19
release=531

================

Please find my log file attached.

Thanks
Preethi
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NagiosXI Install fails

Post by rkennedy »

Please attach the full install.log for us to review.
Former Nagios Employee
pmuthyal
Posts: 5
Joined: Mon Oct 24, 2016 9:07 am

Re: NagiosXI Install fails

Post by pmuthyal »

Please find the install.log attached.

Thanks
Preethi
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: NagiosXI Install fails

Post by avandemore »

What is the output of /usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfg?
Previous Nagios employee
pmuthyal
Posts: 5
Joined: Mon Oct 24, 2016 9:07 am

Re: NagiosXI Install fails

Post by pmuthyal »

[root@DAMonitor01 preethi]# /usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config directory '/usr/local/nagios/etc/services'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Error: There are no services defined!
Checked 0 services.
Error: There are no hosts defined!
Checked 0 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 0 contact groups.
Checked 124 commands.
Checked 3 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 0 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 3 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 2

***> One or more problems was encountered while running the pre-flight check...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

[root@DAMonitor01 preethi]#
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: NagiosXI Install fails

Post by avandemore »

What is the output of ls -la /usr/local/nagios/etc/hosts/ /usr/local/nagios/etc/services/. I haven't ever seen a clean install of Nagios Core/XI fail to create basic localhost entries for these locations, however it seems your installation might be experiencing that. If this is early in your setup I would recommend installing on a clean system using these instructions: Manual Installation Instructions
Previous Nagios employee
pmuthyal
Posts: 5
Joined: Mon Oct 24, 2016 9:07 am

Re: NagiosXI Install fails

Post by pmuthyal »

[root@DAMonitor01 preethi]# ls -la /usr/local/nagios/etc/hosts/ /usr/local/nagios/etc/services/
/usr/local/nagios/etc/hosts/:
total 8
drwsrwsr-x 2 apache nagios 4096 Oct 24 15:39 .
drwsrwsr-x 7 apache nagios 4096 Oct 24 15:44 ..

/usr/local/nagios/etc/services/:
total 8
drwsrwsr-x 2 apache nagios 4096 Oct 24 15:39 .
drwsrwsr-x 7 apache nagios 4096 Oct 24 15:44 ..
[root@DAMonitor01 preethi]#
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: NagiosXI Install fails

Post by avandemore »

Can you try with a clean install as outlined in the document from my previous post?
Previous Nagios employee
pmuthyal
Posts: 5
Joined: Mon Oct 24, 2016 9:07 am

Re: NagiosXI Install fails

Post by pmuthyal »

I tried installing Nagios on a brand new VM and I run into the same issue.

Is there some script which can do a pre-check before I reinstall? I can delete the VM and create a new one.

Thanks
Preethi
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NagiosXI Install fails

Post by dwhitfield »

I think at this point starting from scratch is the best course of action.

Your install.log shows this isn't a clean install. There was an install on last Thursday before the one yesterday. I have no doubt that the install last Thursday was clean. The install.log gave no indication as to why the first install failed. It just failed. The cruft from the first failed install is what is causing you issues now. It's possible another tech started an install on Thursday and didn't tell you about it. I don't mean to suggest this is in any way your fault, but the install is not clean.
Last edited by dwhitfield on Tue Oct 25, 2016 3:17 pm, edited 1 time in total.
Reason: added the word "failed"
Locked