Page 1 of 1

ncpa agent install issue

Posted: Fri Oct 25, 2019 1:30 am
by senthilc
When I tried to install ncpa agent, it throws the following error and not able to install ncpa agent on Centos 6.x machine.

[root@test]# rpm -Uvh https://repo.nagios.com/nagios/6/nagios ... noarch.rpm
Retrieving https://repo.nagios.com/nagios/6/nagios ... noarch.rpm
Preparing... ########################################### [100%]
package nagios-repo-7-4.el7.noarch (which is newer than nagios-repo-6-4.el6.noarch) is already installed

[root@test]# yum install ncpa -y
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.dal10.us.leaseweb.net
* epel: fedora-epel.mirror.lstn.net
* extras: repos.dfw.quadranet.com
* updates: mirror.us-midwest-1.nexcess.net
No package ncpa available.
Error: Nothing to do

Re: ncpa agent install issue

Posted: Fri Oct 25, 2019 8:49 am
by scottwilkerson
This looks like you have the nagios-repo for CentOS 7 already installed on this CentOS 6 server

Run

Code: Select all

yum remove nagios-repo
rpm -Uvh https://repo.nagios.com/nagios/6/nagios-repo-6-4.el6.noarch.rpm
yum install ncpa -y

Re: ncpa agent install issue

Posted: Fri Oct 25, 2019 4:32 pm
by senthilc
For some reason, it is trying to install el7

yum install ncpa -y
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.dal10.us.leaseweb.net
* epel: fedora-epel.mirror.lstn.net
* extras: repos.dfw.quadranet.com
* updates: mirror.us-midwest-1.nexcess.net
Resolving Dependencies
--> Running transaction check
---> Package ncpa.x86_64 0:2.2.0-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================
Installing:
ncpa x86_64 2.2.0-1.el7 nagios-base 11 M

Transaction Summary
===================================================================================================================================================================================
Install 1 Package(s)

Total download size: 11 M
Installed size: 27 M
Downloading Packages:
https://repo.nagios.com/nagios/6/ncpa-2 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.


Error Downloading Packages:
ncpa-2.2.0-1.el7.x86_64: failure: ncpa-2.2.0.el7.x86_64.rpm from nagios-base: [Errno 256] No more mirrors to try.

Re: ncpa agent install issue

Posted: Sat Oct 26, 2019 12:35 pm
by scottwilkerson
Try running

Code: Select all

yum clean all
Then try again.

If it still fails show the output of

Code: Select all

cat /etc/*release
cat /etc/yum.repos.d/nagios-6.repo

Re: ncpa agent install issue

Posted: Sat Oct 26, 2019 12:54 pm
by senthilc
That worked. Thank you!

Re: ncpa agent install issue

Posted: Mon Oct 28, 2019 8:57 am
by scottwilkerson
senthilc wrote:That worked. Thank you!
Great!

Locking thread