Page 1 of 1

Problem during a clean install

Posted: Tue Nov 02, 2021 4:32 am
by swackle
Hi,

Trying to install nagios xi but we get a error:

ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved Permanently
Trying other mirror.

One of the configured repositories failed (Nagios),


Have attached install log.

Re: Problem during a clean install

Posted: Tue Nov 02, 2021 3:13 pm
by gsmith
Hi

Please run the following on the command line (CLI):

Code: Select all

sudo yum check-update
sudo yum update -y
Then run the Nagios installer again.

Please let me know the results.

Thanks

Re: Problem during a clean install

Posted: Mon Nov 08, 2021 3:46 am
by swackle
Getting this:

yum check-update
Loaded plugins: product-id, search-disabled-repos, subscription-manager
http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved Permanently
Trying other mirror.


One of the configured repositories failed (Nagios),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum --disablerepo=nagios-base ...

4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:

yum-config-manager --disable nagios-base
or
subscription-manager repos --disable=nagios-base

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=nagios-base.skip_if_unavailable=true

failure: repodata/repomd.xml from nagios-base: [Errno 256] No more mirrors to try.
http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved Permanently

Re: Problem during a clean install

Posted: Mon Nov 08, 2021 12:44 pm
by gsmith
Hi

It seems like during the install something is unable to follow the redirect
from: http://repo.nagios.com/nagios/7/repodata/repomd.xml
to: https://repo.nagios.com/nagios/7/repodata/repomd.xml


On the machine you are installing Nagios, please run the following from
the command line:

Code: Select all

yum -v repolist enabled | tee /tmp/repolist.txt
and send me the resulting /tmp/repolist.txt file.

I am curious to see what you are getting for this part of the output
of that command:

Code: Select all

Repo-id      : nagios-base
Repo-name    : Nagios
Repo-revision: 1631211155
Repo-updated : Thu Sep  9 14:12:44 2021
Repo-pkgs    : 99
Repo-size    : 600 M
Repo-baseurl : https://repo.nagios.com/nagios/7/
Repo-expire  : 21,600 second(s) (last: Wed Oct 20 11:07:37 2021)
  Filter     : read-only:present
Repo-excluded: 1
Repo-filename: /etc/yum.repos.d/nagios-7.repo
Thanks!

Re: Problem during a clean install

Posted: Tue Nov 09, 2021 12:57 am
by swackle
Ended up with same issue, somehow our proxy is messing it up, so I have made a offline installation and that one is all good.

Except persmission wise, I am trying to find what permissions I need to add to sudoers file for the nagios user, looked in reset_config_perms.sh but want to make sure so could you point me in the right direction.

Re: Problem during a clean install

Posted: Tue Nov 09, 2021 10:27 am
by gsmith
Hi

Sounds good.

I am attaching a sudoers file from one of my test servers, please let
me know if you need anything else.

Thanks