On Mon, Jan 23, 2012 at 5:20 AM, Nico Schottelius
<[email protected]> wrote:
> Hello,
>
> trying to install nagios-plugins-all results in the following error:
>
> /usr/bin/yum -d 0 -e 0 -y install nagios-plugins-all:

That's part of your problem, right there. nagios-plugins-all is from
EPEL. It's a meta package, a list of the nagios plugins provided by
EPEL. But the naming scheme of plugins is different between EPEL and
RPMforge. RPMforge has most of them in the nagios-plugins package
itself, and splits off a few of them into the nagios-plugins-setuid
package, including the check_dhcp.

EPEL splits more of the checks into individual packages, such as
nagios-plugins-dhcp, and chaos is ensuing due to the obsolecence and
merging. If you wind up mixing and matching plugins from the different
repos, I *guarantee* chaos whenever the numbering of the basic
'nagios-plugins' package changes, because the one from RPMforge has
most of the plugins, and the one from EPEL has only the structure for
the *other* packages and plugins. When the 'nagios-plugins' in EPEL
updates ahead of Repoforge, it's going to erase a bunch of plugins
that were in Repoforge. This isn't the case today, but it can lead to
craziness, which I've run into in the past, and dealt with by using
exclude options in the /etc/yum.repos.d files.

In this case, I appreciate the EPEL structure, because it allows me to
install the packages individually as needed. But it's extra work to
maintain, and you wind up with adventures like this one. It would seem
reasonable for the "nagios-plugins-setuid" package from RPMforge to
say "Provides: nagios-plugins-dhcp".

The diff would be something like this:

$ diff -u nagios-plugins.spec.orig  nagios-plugins.spec
--- nagios-plugins.spec.orig    2010-11-26 11:22:13.000000000 -0500
+++ nagios-plugins.spec 2012-01-23 07:09:05.102005260 -0500
@@ -23,7 +23,7 @@
 Summary: Host/service/network monitoring program plugins for Nagios
 Name: nagios-plugins
 Version: 1.4.15
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPL
 Group: Applications/System
 URL: http://nagiosplug.sourceforge.net/
@@ -87,6 +87,9 @@
 Obsoletes: nagios-plugins-icmp <= %{version}-%{release}
 Obsoletes: nagios-plugins-dhcp <= %{version}-%{release}

+Provides: nagios-plugins-icmp = %{version}-%{release}
+Provides: nagios-plugins-dhcpp = %{version}-%{release}
+
 %description setuid
 This package contains the setuid plugins necessary for use with the
 Nagios package.
@@ -325,6 +328,10 @@
 %{_libdir}/nagios/plugins/check_icmp

 %changelog
+* Mon Jan 23 201 Nico Kadel-Garcia <[email protected]> - 14.15-3
+- Add Provides: nagios-plugins-dhcp and nagios-plugins-icmp for
+  obsoleted components in nagios-plugins-setuid.
+
 * Fri Nov 26 2010 Dag Wieers <[email protected]> - 14.15-2
 - Rebuild against radiusclient-ng 0.5.6.
_______________________________________________
users mailing list
[email protected]
http://lists.repoforge.org/mailman/listinfo/users

Reply via email to