ncpa agent install issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
senthilc
Posts: 11
Joined: Wed Oct 04, 2017 2:50 pm

ncpa agent install issue

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ncpa agent install issue

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
senthilc
Posts: 11
Joined: Wed Oct 04, 2017 2:50 pm

Re: ncpa agent install issue

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ncpa agent install issue

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
senthilc
Posts: 11
Joined: Wed Oct 04, 2017 2:50 pm

Re: ncpa agent install issue

Post by senthilc »

That worked. Thank you!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ncpa agent install issue

Post by scottwilkerson »

senthilc wrote:That worked. Thank you!
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked