Page 1 of 1

NRPE Transaction Error During Install

Posted: Thu Jul 31, 2014 1:26 pm
by anauleau
Hello Everyone,

I am trying to install the NRPE Plugin for Nagios.

when I run:

sudo yum --enablerepo=epel -y install nrpe

I receive this error:

Transaction check error:
file /etc/nagios from install of nagios-nrpe-2.14-1.el6.rf.x86_64 conflicts with file from package nagios-common-3.5.1-1.8.amzn1.x86_64
file /usr/lib64/nagios/plugins from install of nagios-nrpe-2.14-1.el6.rf.x86_64 conflicts with file from package nagios-common-3.5.1-1.8.amzn1.x86_64

I've tried to get around it, but have had no success. Any help would be greatly appreciated!

Re: NRPE Transaction Error During Install

Posted: Thu Jul 31, 2014 1:47 pm
by eloyd
So you're running in AWS EC2 space, which means you have their repositories already. You should be able to just install from their repositories:

Code: Select all

sudo yum install nagios-plugins-all nagios-plugins-nrpe nrpe
sudo chkconfig nrpe on

Re: NRPE Transaction Error During Install

Posted: Thu Jul 31, 2014 2:37 pm
by anauleau
eloyd wrote:So you're running in AWS EC2 space, which means you have their repositories already. You should be able to just install from their repositories:

Code: Select all

sudo yum install nagios-plugins-all nagios-plugins-nrpe nrpe
sudo chkconfig nrpe on

Still get the same error, which is why I tried multiple repositories.

Re: NRPE Transaction Error During Install

Posted: Thu Jul 31, 2014 5:20 pm
by eloyd
I'll be honest - I've never installed Nagios from packages before, but I've done a lot of work on AWS EC2 (in fact, you should come to the Nagios World Conference in October [see my signature] and come to my talk on Running Nagios on AWS EC2!!) :-)

So I take it at some point you installed nagios-common? Did you also install the nagios package? I just tried the following on a new AWS EC2 instance and had no problem:

Code: Select all

sudo yum install nagios nagios-common nagios-plugins-all nagios-plugins-nrpe nrpe
I'm not going to try to figure out why it's not working - instead, I'm going to suggest a brute force fix (though I would REALLY suggest deleting the instance and starting over if possible). Try adding "--skip-broken" to your yum command:

Code: Select all

sudo yum install nagios-plugins-all nagios-plugins-nrpe nrpe
and see if it's any better.

Re: NRPE Transaction Error During Install

Posted: Mon Aug 04, 2014 1:18 pm
by anauleau
Tried the --skip-broken, didn't change anything. I also tried "yum update" and "yum clean all" still no success.

Re: NRPE Transaction Error During Install

Posted: Mon Aug 04, 2014 1:21 pm
by eloyd
Did you also try:

Code: Select all

sudo yum install nagios nagios-common nagios-plugins-all nagios-plugins-nrpe nrpe
?

Re: NRPE Transaction Error During Install

Posted: Mon Aug 11, 2014 1:34 pm
by tmcdonald
@anauleau, have you tried eloyd's suggestion yet?