6.7 SNMP Issues

6.7.1 Issues After Upgrading from eDirectory 8.7.3 to eDirectory 8.8

After upgrading from eDirectory 8.7.3 to eDirectory 8.8, you might get the following error:

%%% Attempting to restart the NetIQ eDirectory SNMP subagent (ndssnmpsa)...
Starting NDS SNMP Subagent ...
Initialization failure. Error code : -255
Please Wait...
Done

%%% Unable to start ndssnmpsa... Please try starting it manually...

This error occurs because with eDirectory 8.8, eDirectory does not listen on the localhost. Earlier the ndssnmp.cfg file had SERVER localhost set by default.

To resolve this error, you need to manually edit the ndssnmp.cfg file and include the host name of the eDirectory server, which needs to be monitored.

For example, type the following in the ndssnmp.cfg file:

SERVER test-server

test-server is the hostname on which eDirectory is running on the default NCP port (that is 524). If eDirectory is running on a different port (for ex: 1524), the entry should be as follows:

SERVER test-server:1524

6.7.2 Errors While Starting the NDS Subagent

The subagent can fail with the following message:

Unable to load library: libnetsnmp.so

To resolve this, export the environment variable SNMP_MAJOR_VERSION with the net-snmp library’s (libnetsnmp.so) major version number. For example, you might use the following command:

export SNMP_MAJOR_VERSION=10

6.7.3 Restarting ndssnmpsa

When the master agent is restarted on Linux, ndssnmpsa needs to be restarted.

To restart ndssnmpsa, stop ndssnmpsa and then start it again.

To stop ndssnmpsa, enter the following command:

/etc/init.d/ndssnmpsa stop

To start ndssnmpsa, enter the following:

/etc/init.d/ndssnmpsa start

6.7.4 Errors While Starting ndssnmpsa

When you start ndssnmpsa on Linux, you might get the following errors:

Error: eDirectory SNMP Initialization component. Error code: -168
Error: eDirectory SNMP Initialization component. Error code: 9

To resolve this, unload and load ndssnmp using the following commands:

/opt/novell/eDirectory/bin/ndssnmp -u

/opt/novell/eDirectory/bin/ndssnmp -l

6.7.5 Errors While Stopping ndssnmpsa

When ndssnmpsa is stopped on SLES 9, an error message similar to "*** glibc detected *** double free or corruption (!prev): 0x0819cdd0 *** " is displayed on the screen.

You can ignore these messages.

6.7.6 Compiling edir.mib

The eDirectory MIB file (<eDirectoryInstallRootDir>\snmp\edir.mib) on Windows compiles with some errors and warnings on HP OpenView. You can ignore these errors.

6.7.7 Modifying the SNMP Configuration File

If LDAP is not configured to run in clear text mode, the name of the trusted root certificate file must be given in the SNMP configuration file (for example, SSLKEY C:\Novell\nds\trust.der) before bringing up the eDirectory SNMP subagent.

ndssnmp.cfg is found in C:\novell\nds\snmp on Windows.

6.7.8 Using SNMP After a New Tree Installation

When you install eDirectory 8.8 SP8 for the first time (creating a new tree), if the Windows SNMP Service is installed on the server, and the SNMP Service has one or more dependent services, eDirectory cannot shut down the SNMP Service. If this happens, SNMP is not ready to use after the eDirectory installation.

Follow these steps to restart the SNMP service:

  1. Click Start > Settings > Control Panel > Administrative Tools > Services.

  2. Right-click SNMP Service in the Name list, then click Stop.

  3. Click Yes to All.

  4. Right-click SNMP Service in the Name list, then click Start.

6.7.9 SNMP Object Creation Error on Windows Server

While installing eDirectory on any supported Windows platform server, if you get an SNMP group object creation error, you need to manually create the SNMP group object. For information on the steps to manually create an SNMP object, refer to the “eDirectory and SNMP” section of the NetIQ eDirectory 8.8 SP8 Administration Guide.

6.7.10 Uninstalling SNMP with eDirectory Uninstallation

If the Windows SNMP Service is installed on a server, and the SNMP Service has one or more dependent services, the eDirectory uninstall does not delete all the SNMP files in the C:\novell\nds folder. However, the other uninstallation processes complete successfully, including the deletion of the SNMP registry entries, and the deconfiguration process that the NetIQ SNMP agent does with DS and the SNMP Service.

To complete the uninstallation:

  1. Click Start > Settings > Control Panel > Administrative Tools > Services.

  2. Right-click SNMP Service in the Name list, then click Stop.

  3. Click Yes to All.

  4. Right-click SNMP Service in the Name list, then click Start.

  5. Manually delete the remaining SNMP files in the C:\novell\nds folder.

6.7.11 ndssnmpsa Crashes While Loading on RHEL 7

RHEL 7 provides NET-SNMP version 5.7.2 and installs the following versions of SSL libraries:

  • *)openssl-1.0.1e-34.el7.x86_64

  • *)openssl098e-0.9.8e-29.el7.x86_64

When NET-SNMP is loaded with a newer version, the openssl-1.0.1e-34.el7.x86_64 library causes missing of symbols and dumps the core.

To workaround this issue, perform the following actions:

  1. Load the "LD_PRELOAD" libssl.so.0.9.8* library before loading ndssnmpsa by using the /etc/init.d/ndssnmpsa script.

    For example, load "LD_PRELOAD" libssl.so.0.9.8e library before loading ndssnmpsa.

  2. Modify the line that loads ndssnmpsa to look like the following:

    LD_PRELOAD="/usr/lib64/libssl.so.0.9.8*"

    /opt/novell/eDirectory/bin/ndssnmpsa

    NOTE:Replace libssl.so.0.9.8* with the actual name of the /usr/lib64/libssl.so.0.9.8 library displayed on your computer in both step 1 and 2.

  3. Restart ndsd.