New Installation Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

New Installation Error

Post by sgiworks »

Hello Team,

I am performing a new install at AWS, however when I run ./fullinstall I get the below error. Attached install log for your reference.

===================
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: './B-installxi'


Regards,
Swapnil
You do not have the required permissions to view the files attached to this post.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: New Installation Error

Post by sgiworks »

[root@ip-xx-xx-xx-xx nagiosxi]# service nagios restart
Running configuration check...

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...
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
Error processing object config files!


***> One or more problems was encountered while processing the config files...

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.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: New Installation Error

Post by sgiworks »

Config File Permissions Check - Config Files Error
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: New Installation Error

Post by Box293 »

sgiworks wrote:I am performing a new install at AWS, however when I run ./fullinstall I get the below error. Attached install log for your reference.
The log tells us that this is not a fresh install:

Code: Select all

DISTRO INFO:
CentOS
6.8
x86_64

THIS IS AN UPGRADE!

OLD VERSION:
full=5.3.0
major=5
minor=3.0
releasedate=2016-10-03
release=530
Are you trying to install XI on a server that has previously had XI installed?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: New Installation Error

Post by sgiworks »

Yes, I had deployed Nagios XI using a AMI https://assets.nagios.com/downloads/nag ... -Cloud.pdf

However to fix the config permission issue I tried installing again.
Also tried ./upgrade but that too fails

any suggestion to fix the problem will be appreciated!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: New Installation Error

Post by Box293 »

Can you please upload the file:
/etc/sudoers
Also, any files in /etc/sudoers.d/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: New Installation Error

Post by sgiworks »

Sudoers File Attached

/etc/sudoers.d/ was empty
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: New Installation Error

Post by Box293 »

Can you please post the upgrade.log file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: New Installation Error

Post by sgiworks »

Attached Upgrade Log
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: New Installation Error

Post by lmiltchev »

There is something wrong with the permissions on your Nagios XI server. Have you made any changes to the system, i.e. security changes/hardening, etc.? The upgrade script seems to stall at "Fixing config file permissions...". The script is trying to change permissions on the configs in various directories - see below:

Code: Select all

# Fix permissions on config files
echo "Fixing config file permissions..."
chown $apacheuser:$nagiosgroup /usr/local/nagios/etc/*.cfg
chown $apacheuser:$nagiosgroup /usr/local/nagios/etc/hosts/*.cfg
chown $apacheuser:$nagiosgroup /usr/local/nagios/etc/services/*.cfg
chown -R "$apacheuser:$apachegroup" /var/www/html/nagiosql/config
For some reason, this is failing.

Can you run the following commands, and show the output?

Code: Select all

umask
sestatus
chage nagios -l
chage apache -l
grep nag /etc/group
I noticed that you are missing the following line in the sudoers:

Code: Select all

Defaults:nagios !requiretty
You will need to add this line back.

BTW, have you tried resetting the config permissions?

Code: Select all

cd /usr/local/nagiosxi/scripts/
./reset_config_perms.sh
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked