Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-20-2010, 11:16 AM
|
#1
|
LQ Newbie
Registered: Jan 2010
Location: Idaho
Distribution: CentOS, Ubuntu
Posts: 5
Rep:
|
Error when trying to install repository - CentOS 5
I am very new to Linux. So, any suggestions are going to have to be spelled out quite basically for me to follow them. I am trying to install an RPM that should allow me to install NAGIOS on a CentOS 5 machine that I just installed.
The problem I'm running into is this. After typing in the following command as root in a terminal window to add a repository to yum so I can install nagios I get this:
[root@localhost ~]# rpm -Uhv http://apt.sw.be/redhat/e15/en/x86_64/rpmforge/RPMS
//rpmforge-release-0.3.6-1.e15.rf.x86_64.rpm
Retrieving http://apt.sw.be/redhat/e15/en/x86_6...mforge-release
-0.3.6-1.e15.rf.x86_64.rpm
error: skipping http://apt.sw.be/redhat/e15/en/x86_6...S//rpmforge-re
lease-0.3.6-1.e15.rf.x86_64.rpm - transfer failed - Unknown or unexpected error
warning: u 0xac65520 ctrl 0xac68e10 nrefs != 0 (apt.sw.be http)
Any thoughts on how I should proceed with an error like this?
Just as a reference I was using this guide to help me with the Nagios install....
http://docs.cslabs.clarkson.edu/wiki...os_on_CentOS_5
|
|
|
01-20-2010, 11:23 AM
|
#2
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hello and Welcome to LinuxQuestions,
Have a look at this site:
http://wiki.centos.org/HowTos/Nagios
It lists all you need in very easy steps to install Nagios on your CentOS machine.
Kind regards,
Eric
|
|
|
01-20-2010, 11:30 AM
|
#3
|
LQ Newbie
Registered: Jan 2010
Location: Idaho
Distribution: CentOS, Ubuntu
Posts: 5
Original Poster
Rep:
|
Unfortunately I have already been to that site, when I enter in their command to install NAGIOS (see below)
[me@mymachine ~] yum install nagios nagios-plugins nagios-plugins-nrpe nagios-devel
I get a message about "NO PACKAGE NAGIOS AVAILABLE" and so on for each of the plugins as well. I assumed I needed the repositories installed for the above yum install line to work. Is that not the case?
Thanks
|
|
|
01-20-2010, 11:40 AM
|
#4
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Did you run:
before trying to install the packages? Have you already installed other packages using yum? What do you have listed as repositories in your directory:
or
Kind regards,
Eric
|
|
|
01-20-2010, 11:53 AM
|
#5
|
LQ Newbie
Registered: Jan 2010
Location: Idaho
Distribution: CentOS, Ubuntu
Posts: 5
Original Poster
Rep:
|
I had not run "yum update". I just did that and its installing 90 updates I assume? I'll try the nagios install after that and see if it works. Back in a moment...
|
|
|
01-20-2010, 11:56 AM
|
#6
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hi,
OK, that looks promising. The update option synchronizes to the repositories. So most likely after the updates you can install Nagios the normal way. Let's hope so. Looking forward to your next post.
Kind regards,
Eric
|
|
|
01-20-2010, 12:16 PM
|
#7
|
LQ Newbie
Registered: Jan 2010
Location: Idaho
Distribution: CentOS, Ubuntu
Posts: 5
Original Poster
Rep:
|
Ok ran the updates then ran the Nagios install command and got the same message. "No Nagios Package"
In my /etc/yum.repos.d/ folder I have two files.
CentOS-Base.repo
CentOS-Media.repo
Not sure what that means?
Thanks!
|
|
|
01-20-2010, 12:20 PM
|
#8
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hi,
In the meantime I've been searching Google in order to find what repo has to be added so that you can install Nagios. I found this site:
RPMForge repository
That repository apparently contains the Nagios packages. Follow the instructions on that site to add the repository to your yum configuration and after that it should work.
Kind regards,
Eric
|
|
1 members found this post helpful.
|
01-20-2010, 12:53 PM
|
#9
|
LQ Newbie
Registered: Jan 2010
Location: Idaho
Distribution: CentOS, Ubuntu
Posts: 5
Original Poster
Rep:
|
That did it!
First I downloaded the package to my root desktop.
http://packages.sw.be/rpmforge-relea....rf.x86_64.rpm
I had to run this command: Install DAG's GPG key
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Then I ran this one: Install the package
rpm -i rpmforge-release-0.5.1-1.el5.rf.*.rpm (Ran this after switching directories to my desktop where I downloaded the file)
Then ran yum-check update and it snagged updates. Then I was able to install Nagios by running my previous command.
Thanks so much for the help!
|
|
|
01-20-2010, 12:55 PM
|
#10
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
That's great news. Glad you got it working. Happy to be of assistance. If you consider this solved then please mark it as such using the Thread Tools.
Kind regards,
Eric
|
|
|
All times are GMT -5. The time now is 10:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|