Page 1 of 2
New Installation Error
Posted: Mon Oct 03, 2016 5:15 pm
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
Re: New Installation Error
Posted: Mon Oct 03, 2016 5:19 pm
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.
Re: New Installation Error
Posted: Mon Oct 03, 2016 5:25 pm
by sgiworks
Config File Permissions Check - Config Files Error
Re: New Installation Error
Posted: Mon Oct 03, 2016 6:38 pm
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?
Re: New Installation Error
Posted: Mon Oct 03, 2016 7:57 pm
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!
Re: New Installation Error
Posted: Mon Oct 03, 2016 9:58 pm
by Box293
Can you please upload the file:
/etc/sudoers
Also, any files in /etc/sudoers.d/
Re: New Installation Error
Posted: Mon Oct 03, 2016 10:40 pm
by sgiworks
Sudoers File Attached
/etc/sudoers.d/ was empty
Re: New Installation Error
Posted: Mon Oct 03, 2016 11:04 pm
by Box293
Can you please post the upgrade.log file.
Re: New Installation Error
Posted: Tue Oct 04, 2016 8:38 am
by sgiworks
Attached Upgrade Log
Re: New Installation Error
Posted: Tue Oct 04, 2016 9:58 am
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:
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