LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-20-2010, 11:16 AM   #1
new2linux2010
LQ Newbie
 
Registered: Jan 2010
Location: Idaho
Distribution: CentOS, Ubuntu
Posts: 5

Rep: Reputation: 0
Question 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
 
Old 01-20-2010, 11:23 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 01-20-2010, 11:30 AM   #3
new2linux2010
LQ Newbie
 
Registered: Jan 2010
Location: Idaho
Distribution: CentOS, Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 01-20-2010, 11:40 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Did you run:
Code:
yum update
before trying to install the packages? Have you already installed other packages using yum? What do you have listed as repositories in your directory:
Code:
/etc/yum.repos.d/
or
Code:
/etc/yum/repos.d/
Kind regards,

Eric
 
Old 01-20-2010, 11:53 AM   #5
new2linux2010
LQ Newbie
 
Registered: Jan 2010
Location: Idaho
Distribution: CentOS, Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
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...
 
Old 01-20-2010, 11:56 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 01-20-2010, 12:16 PM   #7
new2linux2010
LQ Newbie
 
Registered: Jan 2010
Location: Idaho
Distribution: CentOS, Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
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!
 
Old 01-20-2010, 12:20 PM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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.
Old 01-20-2010, 12:53 PM   #9
new2linux2010
LQ Newbie
 
Registered: Jan 2010
Location: Idaho
Distribution: CentOS, Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
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!
 
Old 01-20-2010, 12:55 PM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
CentOS 5.2 yum repository error - Please help tezarin Linux - Software 7 01-07-2009 12:18 PM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. stioanid Linux - Software 3 12-13-2008 01:22 AM
BREAK( INSTALL ) Repository Error in Feisty 7.04 athlime Ubuntu 1 05-09-2007 01:08 AM
fc6 yum install error multiple repository entries joncampbell60 Linux - Software 7 11-28-2006 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration