Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an odd problem. I'm trying to install nagios NRPE but it keeps failing with

nagios-plugins-1.4.15-2.el5.rf.i386 from rpmforge has depsolving problems
  --> Missing Dependency: perl(Net::SNMP) is needed by package nagios-plugins-1.4.15-2.el5.rf.i386 (rpmforge)

The package 1:net-snmp-perl- is already installed and latest version.


The environment is Centos 5.5 with Cpanel 11 installed.

share|improve this question
Is the base nagios package already installed, and from which repository did you install it? – Scott Pack Dec 20 '10 at 18:59
up vote 5 down vote accepted

Just in case someone else is having issues with this: check your yum exclude list here: /etc/yum.conf

with Cpanel installed lots of packages are getting excluded. So for the one-off install of nagios-nrpe remove perl* from the list of excluded packages, run 'yum install nagios-nrpe.x86_64' and add it back after installation.

share|improve this answer

install it from here

share|improve this answer
This is a dependency nightmare, I cant install that without other modules that are "already" installed. Can't I update a repo or something and do this with yum? – Mech Software Dec 20 '10 at 18:20

You are confusing net-snmp-perl and perl-Net-SNMP. They are not the same. The file lists do not overlap.

perl-Net-SNMP provides perl(Net::SNMP)

Details: net-snmp-perl is the perl interface to the net-snmp (aka ucsd snmp) library. perl-Net-SNMP is completely independent of (and does not require) the net-snmp library.

share|improve this answer
I got that the package perl-Net-SNMP is not available. I'm using RPMForge is there another repo I should be using? – Mech Software Dec 20 '10 at 22:00
@mech-software No, it is in rpmforge: yum info perl-Net-SNMP Loaded plugins: fastestmirror, priorities 68 packages excluded due to repository priority protections Available Packages Name : perl-Net-SNMP Arch : noarch Version : 5.2.0 Release : 1.2.el5.rf Size : 96 k Repo : rpmforge – Mark Wagner Dec 20 '10 at 23:14
yum repolist | grep rpmforge: rpmforge RHEL 5 - - dag enabled: 10,152 – Mark Wagner Dec 20 '10 at 23:16

A summary of the answers here with added commands:

  1. With cPanel, remove perl* from exclude in /etc/yum.conf
  2. Install perl-Net-SNMP not net-snmp-perl (from rpmforge:
  3. Put perl* back in /etc/yum.conf in exclude

Copy paste command line fu:

    cp /etc/yum.conf /etc/yum.conf.bak-`date +"%Y-%m-%d"`
    sed -i 's/perl\* //g' /etc/yum.conf
    yum install -y perl-Net-SNMP nagios-nrpe
    sed -i 's/php\*/perl\* php\*/g' /etc/yum.conf
share|improve this answer

I have had similiar problems:

--> Package fping.x86_64 0:2.4b2-7.el5 set to be updated
--> Processing Dependency: nagios-plugins = 1.4.15-2.el5 for package: nagios-plugins-load

The origin of the problem was an additional package repository, in my case 'Dag RPM Repository for Red Hat Enterprise Linux'. I have created an extra configuration file /etc/yum.repos.d/dag.repo

To check if you have the same problem, execute the following command

yum list nagios\*
* epel:
Installed Packages
nagios-plugins.x86_64  1.4.15-2.el5   installed
Available Packages
nagios-plugins.x86_64  1.4.15-2.el5.rf     dag <-- the additional repository!

The solution is to exclude this package in the dag-repository. You can do this on repository level.

Add the following line to the additional repository configuration file(/etc/yum.repos.d/dag.repo):


Note: If you want to exclude more packages just add them to the line with a space between different excludes.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.