Hi,

I have tested the "Third party packages" from openSUSE build service, 
managed by tanders and darix, together with our 'native' php-snmp package.

The test includes start of snmpd daemon and simple snmpget() call in php 
code, just to check the rpm dependencies are satisfied and dynamic 
linking works. Following versions work together well:

RHEL5: net-snmp-5.3.x.svn200804200330-1.1 (php-snmp-5.1.6-15)
Fedora7: net-snmp-5.4.x.svn200803270330-1.1 (php-snmp-5.2.4-1)
Fedora8: net-snmp-5.4.x.svn200804200330-1.1 (php-snmp-5.2.4-3)

What goes not well is the installation. The administrator must cope with 
following problems:

- net-snmp-libs are installed by default on RHEL and Fedora
   -> plain 'rpm -Uvh net-snmp-5.4.x.svn200803270330-1.1.i386.rpm' 
results in lots of errors like "file /usr/lib/libnetsnmp.so.15 from 
install of net-snmp-5.4.x.svn200803270330-1.1 conflicts with file from 
package net-snmp-libs-5.4-16.fc7"

   -> users must 'rpm -e --nodeps' (!) the Fedora/RHEL package and then 
'rpm -i' the new one

- your snmpd logs to /var/log/snmpd.log. This is denied by SELinux and 
admin must turn SELinux off or add new rules. RHEL/Fedora uses syslog 
(/var/log/messages target) by default.

- admin must choose the right version of net-snmp, i.e. 5.3.x for RHEL5, 
5.4.x for Fedora, otherwise the soname won't match.

All these problems are pretty expectable and average admin should know 
what to do with that.

Following two should be IMHO fixed:

- when using your yum repository, yum still pulls native package - we 
have Epoch:1 in RHEL5 and Fedora. With native repo disabled, yum pulls 
net-snmp from correct repo, but always the newest version 
(net-snmp-5.5.x), which will break dynamic linking.
   - to fix it, you need higher Epoch: to always override the native one 
+ provide only the right net-snmp version for each distro (5.3.x for 
RHEL4, 5.4.x for Fedora7-8-9). Some Conflicts: statements would be also 
nice, to let yum always uninstall the native rpms (otherwise manual rpm 
-e of the native ones is needed)
   - IMHO the repo should not be provided as it only confuses admins.

- after installation, there is no snmpd.conf in /etc - IMHO there should 
be some at least in /usr/share/doc/net-snmp (/etc/snmp/ would be better)

Jan

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to