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
ncpa agent install issue
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: ncpa agent install issue
This looks like you have the nagios-repo for CentOS 7 already installed on this CentOS 6 server
Run
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 -yRe: ncpa agent install issue
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.
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
Try running
Then try again.
If it still fails show the output of
Code: Select all
yum clean allIf it still fails show the output of
Code: Select all
cat /etc/*release
cat /etc/yum.repos.d/nagios-6.repoRe: ncpa agent install issue
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
Great!senthilc wrote:That worked. Thank you!
Locking thread