[Nagiosplug-devel] Problem with nagios-plugin built RPM

Andreas Kasenides ank at cs.ucy.ac.cy
Tue Dec 13 02:17:10 CET 2005

Brian Ipsen wrote:

> I'm trying to build an RPM with the nagios plugins...
>Basically, what I do, is:
># perl -MCPAN -e 'install Net::SNMP'
># /usr/sbin/groupadd nagios
># /usr/sbin/useradd -r -d /var/log/nagios -s /bin/sh -c "nagios" -g nagios
># cd /usr/src/whitebox/SOURCES
># wget
># tar xzpf nagios-plugins-1.4.2.tar.gz *.spec
># mv -f nagios-plugins-1.4.2/nagios-plugins.spec ../SPECS/
># rm -Rf nagios-plugins-1.4.2
># cd ../SPECS
># chown 0.0 nagios-plugins.spec
># rpmbuild -ba nagios-plugins.spec
># rpm -Uvh ../RPMS/i386/nagios-plugins-1.4.2-1.i386.rpm
>But this gives me:
>error: Failed dependencies:
>        perl(Net::SNMP) is needed by nagios-plugins-1.4-2.1.el3.rf.i386
>I then check:
># perl -MCPAN -e 'install Net::SNMP'
>CPAN: Storable loaded ok
>Going to read /root/.cpan/Metadata
>  Database was generated on Tue, 06 Dec 2005 01:01:00 GMT
>Net::SNMP is up to date.
>Why is it complaining about Net::SNMP ??
>I also tried:
># rpm -qa | grep net-snmp
>Where is the problem ??
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems?  Stop!  Download the new AJAX search engine that makes
>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
>Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
>::: Please include plugins version (-v) and OS when reporting any issue. 
>::: Messages without supporting info will risk being sent to /dev/null
You may want to try http://www.kasenides.org/nagios/RPMS/ where I 
maintain Nagios and Nagios related
RPMs (including dependencies). These are for Fedora core 4 but I haven´t 
found any problems yet with any
Fedora release. I would appreciate it if you let me know if you run into 
Andreas Kasenides
Tel: +357 - 22892714
e-mail: Andreas.Kasenides%at%cs.ucy.ac.cy 
(replace the %at% above with @)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20051213/d95b9eee/attachment.html>

More information about the Devel mailing list