Issue Downloading NCPA on CentOS7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
wneville
Posts: 100
Joined: Wed Mar 31, 2021 3:35 pm

Issue Downloading NCPA on CentOS7

Post by wneville »

Hello,

I seem to be having issues configuring NCPA on CentOS7. I started by trying to install according to https://assets.nagios.com/downloads/ncp ... g-NCPA.pdf

First, I tried to install via "rpm -Uvh http://repo.nagios.com/nagios/7/nagios- ... noarch.rpm" but this fed me a cert error:

Code: Select all

Retrieving http://repo.nagios.com/nagios/7/nagios-repo-7-4.el7.noarch.rpm
curl: (60) Peer's certificate issuer has been marked as not trusted by the user.
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
error: skipping http://repo.nagios.com/nagios/7/nagios-repo-7-4.el7.noarch.rpm - transfer failed
The -k and --insecure flags returned 'unknown option'
Then I tried to install using "rpm -Uvh https://assets.nagios.com/downloads/ncp ... x86_64.rpm" but this also fed a cert error.

Then I tried to use two separate commands:

Code: Select all

curl -k -O https://repo.nagios.com/nagios/7/nagios-repo-7-4.el7.noarch.rpm
rpm -Uvh nagios-repo-7-4.el7.noarch.rpm
but the service doesn't appear/files under /usr/local/ncpa aren't populated properly. Does anyone know what my issue might be?

Code: Select all

uname -a
Linux ********_data_server 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

cat /etc/*-release
CentOS Linux release 7.6.1810 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
User avatar
danderson
Posts: 234
Joined: Wed Aug 09, 2023 10:05 am

Re: Issue Downloading NCPA on CentOS7

Post by danderson »

Thanks for reaching out @wneville,

The repo file you mentioned hasn't been updated since 2019, and there is a newer one at https://repo.nagios.com/nagios/7/nagios ... noarch.rpm

I believe the certificate for repo.nagios.com was updated recently and may not work with older versions of SSL present on CentOS 7. I don't know for sure on that though, just a theory.

When you install nagios-repo-7-5.el7.noarch.rpm, that's just the repo. You still have to do yum clean all, yum makecache, yum install ncpa in order to install NCPA.

You may run into issues installed because CentOS 7 is EOL and Nagios can't really support it anymore.
Post Reply