New Installation Error
New Installation Error
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
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.
Re: New Installation Error
[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.
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
Config File Permissions Check - Config Files Error
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: New Installation Error
The log tells us that this is not a fresh install: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.
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=530As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: New Installation Error
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!
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!
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: New Installation Error
Can you please upload the file:
/etc/sudoers
Also, any files in /etc/sudoers.d/
/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.
Re: New Installation Error
Sudoers File Attached
/etc/sudoers.d/ was empty
/etc/sudoers.d/ was empty
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: New Installation Error
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.
Re: New Installation Error
Attached Upgrade Log
You do not have the required permissions to view the files attached to this post.
Re: New Installation Error
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:
For some reason, this is failing.
Can you run the following commands, and show the output?
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
# 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/configCan you run the following commands, and show the output?
Code: Select all
umask
sestatus
chage nagios -l
chage apache -l
grep nag /etc/group
Code: Select all
Defaults:nagios !requirettyBTW, have you tried resetting the config permissions?
Code: Select all
cd /usr/local/nagiosxi/scripts/
./reset_config_perms.shBe sure to check out our Knowledgebase for helpful articles and solutions!