Hi,

Fortunately this is an easy to fix problem (more or less).

First do:

1) ldd my_snmp_agent

This will tell you of the default libraries used. What's for any missing ones 
or wrong type.

2) Correct your LD_LIBRARY_PATH. Try a new ldd with the corrected path.

3) If (2) fails, you will need to recompile your agent with the correct 
LD_LIBRARY_PATH, and repeat ldd with the correct environment.

BR,
Nikos

  ----- Original Message ----- 
  From: maksud 
  To: [email protected] 
  Sent: Tuesday, January 06, 2009 7:16 AM
  Subject: Shared Library Problem....


  Hi,
  This is rather a peculiar problem. I had installed NetSNMP 5.3.1 without any 
problem in my Fedora Core 8 distribution and used it. I had implemented many 
tables using mib2c -c mib2c.mfd.conf files. So far no problem.

  But, in the past two days I couldn't install it on my other PC's which also 
features Fedora Core 8.
  First I get the following errors when I install 5.4.1


    [r...@localhost SNMPAgent]# ./my_snmp_agent -f 
    netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
    netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
    netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
    Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
    Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
    Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
    Cannot find module (TCP-MIB): At line 0 in (none)
    Cannot find module (UDP-MIB): At line 0 in (none)
    Cannot find module (MTA-MIB): At line 0 in (none)
    Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none)
    Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
    Cannot find module (IP-MIB): At line 0 in (none)
    Cannot find module (IF-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-SMI): At line 0 in (none)
    Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
    Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
    Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
    Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
    Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
    Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
    Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
    Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
    Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
    Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
    Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
    Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
    Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
    Cannot find module (IPV6-MIB): At line 0 in (none)
    Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
    Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
    Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
    Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
    Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
    Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-TM): At line 0 in (none)
    Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
    Warning: Failed to connect to the agentx master agent ([NIL]): 
    Successfully created container
    In Container Load...


  Then I uninstalled the version and installed 5.3.1 instead. At the beginning 
it was working well. But now it stopped working and I get 


    [r...@localhost ~]# cd workspace/SNMP_Agent/
    [r...@localhost SNMP_Agent]# ./my_snmp_agent -f
    ./my_snmp_agent: error while loading shared libraries: 
libnetsnmpagent.so.10: cannot open shared object file: No such file or directory
    [r...@localhost SNMP_Agent]# 


  That is I can not start my subagent. I can run the agent snmpd and could see 
the valuse of ifTable and get proper result. But I just can not start my 
subagent. It compiles well but can't start.

  I have seen the librarys in /usr/local/lib but I can't understant why they 
are not loaded.

  Hope you could help me with the problem.

  Maksud



------------------------------------------------------------------------------


  ------------------------------------------------------------------------------



------------------------------------------------------------------------------


  _______________________________________________
  Net-snmp-users mailing list
  [email protected]
  Please see the following page to unsubscribe or change other options:
  https://lists.sourceforge.net/lists/listinfo/net-snmp-users
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to