Building RPM's from provided nagios-plugins.spec

Stuart Browne stuart.browne at ausregistry.com.au
Thu Jul 29 06:23:30 CEST 2010


> From: Tracy Phillips [mailto:tracy.phillips at amerinap.com] 
> Sent: Thursday, 29 July 2010 13:03
> 
> Hi List!
> 
> I am building RPM's (on RHEL 5.5 x86_64) from the provided
> nagios-plugins.spec file.
> 
> The build goes well, however after the install when I try to install
> the RPM's I get the following:
> 
> error: Failed dependencies:
> 	perl(Net::SNMP) is needed by nagios-plugins-1.4.14-1.x86_64
> 
> How can I get  clean build without the perl(Net::SNMP) dependencies?
> 
> Just for kicks, I even installed the net-snmp-perl rpm and still get
> the dependency error.
> 
> I am looking for a solution to remove the dependency from the RPM,
> not circumventing with --nodeps
> 
> Any ideas?

I prefer the SPEC file that breaks each of the individual plugins into its own sub-package, which I think was the Fedora version of the SPEC file.

perl(Net::SNMP) is provided by an extra perl module, available from CPAN, RPMforge (http://packages.sw.be/perl-Net-SNMP/) or EPEL (http://download.fedora.redhat.com/pub/epel/5/SRPMS/repoview/perl-Net-SNMP.html).

The perl module is a requirement of the check_ifstatus/check_ifoperstatus plugins.  You could try removing them from the EXTRA_DIST line of the plugins-scripts/Makefile.in file, and see how you go.

Stuart
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list