snmpd fails to start after installing GroupWise High Availability (GWHA)

  • 3736743
  • 08-Jan-2007
  • 05-Jun-2013

Environment

Novell GroupWise 7 Support Pack 1
Novell GroupWise 7 Support Pack 1 High Availability
Novell Open Enterprise Server (Linux based) Support Pack 2

GroupWise 7 Support Pack 1 High Availability components are installed on an OES or SUSE Linux server to provide High Availability service for an existing GroupWise Agents on that server.

Situation

error: /usr/lib/libnetsnmpmibs.so.5: undefined symbol: dbg_tokens
libnetsnmp.so.5 from GroupWise breaks snmpd binary
the snmp daemon will not start and gives an undefined symbol error on systems that have the Groupwise HA installed

Resolution

This is not an issue with SLES 10 and later.

Workaround
The following steps provide a workaround at this time for SLES 9 systems.

Edit the file /etc/sysconfig/net-snmp file and add a LD_LIBRARY_PATH variable at the end of the file so the
correct working library is found by the linker

1. open the file /etc/sysconfig/net-snmp in an editor of your choice

2. add the following two lines to the end of the file

LD_LIBRARY_PATH=/lib:/lib/i686:/usr/lib:/usr/local/lib:
export LD_LIBRARY_PATH

3. save the file and exit the editor

4. restart snmpd

/etc/init.d/snmpd restart

Additional Information

root cause:
The dynamic linker is finding the library /opt/novell/groupwise/agents/lib/libnetsnmp.so.5 instead of /usr/lib/libnetsnmp.so.5

steps to duplicate:
1. install GroupWise High Availability packages on a working OES Linux server
2. restart snmpd - example:

server:~ # /etc/init.d/snmpd restart
Shutting down snmpd:
done
Starting snmpd/usr/sbin/snmpd: symbol lookup error: /usr/lib/libnetsnmpmibs.so.5: undefined symbol: dbg_tokens
startproc: exit status of parent of /usr/sbin/snmpd: 127
failed

alternate workaround steps:
Another workaround to start the snmpd process to without an error is:

1. comment out the line "/opt/novell/groupwise/agents/lib" in the file /etc/ld.so.conf
2. run the ldconfig command to re-generate the linker cache
3. then start or restart snmpd again
4. uncomment the line again in case the gwha processes need to be restarted

This process is manual and requires intervention each time the server is restarted.