chown: cannot access ‘/usr/local/nagios/etc/hosts/*.cfg’: No such file or directory
This folder holds all of the host configuration files so if it is missing, that will stop the nagios daemon from starting and also the upgrade will fail.
Can you login to the Nagios server as root, run the following commands and post the /tmp/ls.txt file?
Attached ls.txt file after running below command. Also I have copied few cfg files which are showing in the screen shot from other system for fixing below issue. Please check and let me know.
You do not have the required permissions to view the files attached to this post.
sudo: >>> /etc/sudoers.d/205_ITIMEPAIGANA_NA: Alias `ITIM_HOSTS_LIN' already defined near line 21 <<<
sudo: parse error in /etc/sudoers.d/205_ITIMEPAIGANA_NA near line 21
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
RESETTING CONFIG PERMS FAILED!\n
RESULT=1
===================
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: './E-importnagiosql'
[root@bhusprv024 nagiosxi]#
You do not have the required permissions to view the files attached to this post.
Are you using chef, puppet, ansible, salt, whatever to manage the sudoers? You need to turn that off. As long as your errors continue to be permission related even on install, there's not going to be much we can do. The install needs to happen on a clean system with absolutely no modifications.