nagios service issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nagios service issue

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
nschetu
Posts: 46
Joined: Fri May 05, 2017 10:39 am

Re: nagios service issue

Post 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.
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nagios service issue

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nagios service issue

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nschetu
Posts: 46
Joined: Fri May 05, 2017 10:39 am

Re: nagios service issue

Post by nschetu »

Uninstalled nagios tool and going to install now.
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nagios service issue

Post by dwhitfield »

Let us know if you run into any issues!
nschetu
Posts: 46
Joined: Fri May 05, 2017 10:39 am

Re: nagios service issue

Post 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]#
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nagios service issue

Post 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.
nschetu
Posts: 46
Joined: Fri May 05, 2017 10:39 am

Re: nagios service issue

Post by nschetu »

I am not configured this one. Linux admin team did that one. I am having root access to install nagios and configuration.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: nagios service issue

Post by dwhitfield »

You'll need to speak with someone on your Linux admin team then.
Locked