Page 5 of 9
Re: nagios service issue
Posted: Fri May 12, 2017 10:57 am
by tgriep
The error below is not a good thing.
Code: Select all
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?
Code: Select all
ls -lR /usr/local/nagios >/tmp/ls.txt
ls -lR /usr/local/nagiosxi >>/tmp/ls.txt
Thanks
Re: nagios service issue
Posted: Fri May 12, 2017 11:32 am
by nschetu
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.
Re: nagios service issue
Posted: Fri May 12, 2017 11:38 am
by dwhitfield
You appear to have the correct permissions on hosts now. Are you now able to run the upgrade? If not, please send the new upgrade.log.
Re: nagios service issue
Posted: Fri May 12, 2017 11:47 am
by tgriep
I am assuming that this started out as a brand new install that failed because of the issues with the sudoers file.
Is this correct?
In the ls.txt file, it shows that the default localhost configs are missing and I suggest removing and reinstalling the server.
First, to remove XI, follow this guide.
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
After it is removed, follow this guide to reinstall XI
https://assets.nagios.com/downloads/nag ... -Linux.pdf
Let us know how it works out.
Re: nagios service issue
Posted: Fri May 12, 2017 12:18 pm
by nschetu
Uninstalled nagios tool and going to install now.
Re: nagios service issue
Posted: Fri May 12, 2017 12:55 pm
by dwhitfield
Let us know if you run into any issues!
Re: nagios service issue
Posted: Fri May 12, 2017 1:09 pm
by nschetu
I got below error message while installing. Please check and let me know. Also attached install log file.
2017-05-12 13:49:17 (1.42 MB/s) - ‘nagiosql.import.monitoring’ saved [23512]
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]#
Re: nagios service issue
Posted: Fri May 12, 2017 1:43 pm
by dwhitfield
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.
Re: nagios service issue
Posted: Fri May 12, 2017 1:55 pm
by nschetu
I am not configured this one. Linux admin team did that one. I am having root access to install nagios and configuration.
Re: nagios service issue
Posted: Fri May 12, 2017 2:01 pm
by dwhitfield
You'll need to speak with someone on your Linux admin team then.