From: omar s. <pri...@ho...> - 2008-11-18 17:15:33
|
Hello everyone I'm getting this error when i start Master SNMP Nov 18 18:16:52 smsdvrt1 snmpd: snmpd startup succeeded Nov 18 18:16:52 smsdvrt1 snmpd[24559]: Turning on AgentX master support. Nov 18 18:16:52 smsdvrt1 snmpd[24559]: dlopen failed: /usr/lib/libcmaX.so.1.0: cannot open shared object file: No such file or directory Here is some information about my system: smsdvrt1:/etc/snmp> uname -a Linux smsdvrt1 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux smsdvrt1:/etc/snmp> smsdvrt1:/etc/snmp> rpm -qi net-snmp Name : net-snmp Relocations: (not relocatable) Version : 5.1.2 Vendor: Scientific Linux CERN, http://cern.ch/linux Release : 13.el4 Build Date: Wed 30 Jul 2008 01:22:03 EST Install Date: Sat 15 Nov 2008 09:33:39 EST Build Host: lxcert-amd64.cern.ch Group : System Environment/Daemons Source RPM: net-snmp-5.1.2-13.el4.src.rpm Size : 2028043 License: BSDish Signature : DSA/SHA1, Wed 30 Jul 2008 18:00:35 EST, Key ID 5e03fde51d1e034b Packager : CERN Linux Support <lin...@ce...> URL : http://www.net-snmp.org Summary : A collection of SNMP protocol tools and libraries. Description : SNMP (Simple Network Management Protocol) is a protocol used for network management. The NET-SNMP project includes various SNMP tools: an extensible agent, an SNMP library, tools for requesting or setting information from SNMP agents, tools for generating and handling SNMP traps, a version of the netstat command which uses SNMP, and a Tk/Perl mib browser. This package contains the snmpd and snmptrapd daemons, documentation, etc. You will probably also want to install the net-snmp-utils package, which contains NET-SNMP utilities. smsdvrt1:/etc/snmp> My snmp.conf smsdvrt1:/etc/snmp> cat snmpd.conf ########################################################################### # # snmpd.conf # # - created by the snmpconf configuration program # ########################################################################### # SECTION: Agent Operating Mode # # This section defines how the agent will operate when it # is running. # master: Should the agent operate as a master agent or not. # Currently, the only supported master agent type for this token # is "agentx". # # arguments: (on|yes|agentx|all|off|no) master agentx # agentuser: The system user that the agent runs as. # arguments: name|#uid agentuser root # agentgroup: The system group that the agent runs as. # arguments: group|#GID agentgroup root # agentaddress: The IP address and port number that the agent will listen on. # By default the agent listens to any and all traffic from any # interface on the default SNMP port (161). This allows you to # specify which address, interface, transport type and port(s) that you # want the agent to listen on. Multiple definitions of this token # are concatenated together (using ':'s). # arguments: [transport:]port[@interface/address],... agentaddress 705 ########################################################################### # SECTION: System Information Setup # # This section defines some of the information reported in # the "system" mib group in the mibII tree. # syslocation: The [typically physical] location of the system. # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysLocation.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: location_string syslocation Unknown (edit /etc/snmp/snmpd.conf) # syscontact: The contact information for the administrator # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysContact.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: contact_string syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf) The file that im getting in snmpd.log is there: smsdvrt1:/usr/lib> ls -lrt libcmaX.so* -rwxr-xr-x 1 root root 17848 Nov 15 08:12 libcmaX.so.1.0 lrwxrwxrwx 1 root root 14 Nov 18 05:49 libcmaX.so.1 -> libcmaX.so.1.0 lrwxrwxrwx 1 root root 14 Nov 18 05:51 libcmaX.so -> ./libcmaX.so.1 smsdvrt1:/usr/lib> The selinux is disabled Any help would really be appreciated Thanks Omar ########################################################################### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # rocommunity: a SNMPv1/SNMPv2c read-only access community name # arguments: community [default|hostname|network/bits] [oid] rocommunity public smsdvrt1 .1.3.6.1.4.1.2032.1.3.2.1 # rwcommunity: a SNMPv1/SNMPv2c read-write access community name # arguments: community [default|hostname|network/bits] [oid] rwcommunity rMxjh65VKtBt 127.0.0.1 rwcommunity public smsdvrt1 .1.3.6.1.4.1.2032.1.3.2.1 ########################################################################### # SECTION: Trap Destinations # # Here we define who the agent will send traps to. # trap2sink: A SNMPv2c trap receiver # arguments: host [community] [portnum] trap2sink 172.27.100.12 ########################################################################### # SECTION: Extending the Agent # # You can extend the snmp agent to have it return information # that you yourself define. # pass: Run a command that intepretes the request for an entire tree. # The pass program defined here will get called for all # requests below a certain point in the mib tree. It is then # responsible for returning the right data beyond that point. # # arguments: miboid program # # example: pass .1.3.6.1.4.1.2021.255 /path/to/local/passtest # # See the snmpd.conf manual page for further information. # # Consider using "pass_persist" for a performance increase. pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat # dlmod: dynamically extend the agent using a shared-object # arguments: module-name module-path dlmod cmaX /usr/lib/libcmaX.so proxy -p ${SHM}1 -v 2c -c public localhost .1.3.6.1.4.1.6629.2 # # Unknown directives read in from other files by snmpconf # com2sec notConfigUser default public group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser view systemview included .1.3.6.1.2.1.1 view systemview included .1.3.6.1.2.1.25.1.1 view systemview included .1.3.6.1.4.1.2032.1.3.2.1 access notConfigGroup "" any noauth exact systemview none none #proxy -p ${SHM}1 -v 2c -c public localhost .1.3.6.1.4.1.6629.2 _________________________________________________________________ |