Re: Install net-snmp into Ubuntu
francisco moreno <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAFsRNvTbUzQ-eph_AHX+m+4_GOgJ3MAgw=WL1atzqOMmiMVO_g@mail.gmail.com> |
Hello, I solved my problem with the library (libnetsnmpagent.so.15). I use Ubuntu 8.04 My new problem is the "agentx/master". I tried run the scrip "dist/snmp-init.d" and this show the next message: ".: 10: Can't open /etc/rc.d/init.d/functions" I think that this message is because my system has not got the "rc.d" folder. Next, I run the script that I have into "/etc/init.d" folder. The snmpd script has the flags "-Dcallback -Dregister_mib" which output is on the "snmpd.log" file. The last lines of this output are: 9:callback:lock: locked (LIB,POST_PREMIB_READ_CONFIG) callback: registered (0,3) at 0x80d53f8 with priority 0 9:callback:lock: unlocked (LIB,POST_PREMIB_READ_CONFIG) 9:callback:lock: locked (LIB,SHUTDOWN) callback: registered (0,2) at 0x80d5410 with priority 0 9:callback:lock: unlocked (LIB,SHUTDOWN) 9:callback:lock: locked (LIB,SHUTDOWN) callback: registered (0,2) at 0x80d5428 with priority 0 9:callback:lock: unlocked (LIB,SHUTDOWN) 9:callback:lock: locked (LIB,POST_READ_CONFIG) callback: registered (0,0) at 0x80d55b8 with priority 0 9:callback:lock: unlocked (LIB,POST_READ_CONFIG) 9:callback:lock: locked (LIB,POST_PREMIB_READ_CONFIG) callback: START calling callbacks for maj=0 min=3 callback: calling a callback for maj=0 min=3 callback: calling a callback for maj=0 min=3 callback: calling a callback for maj=0 min=3 callback: calling a callback for maj=0 min=3 callback: END calling callbacks for maj=0 min=3 (4 called) 9:callback:lock: unlocked (LIB,POST_PREMIB_READ_CONFIG) Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-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 (HOST-RESOURCES-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 (HOST-RESOURCES-TYPES): 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 (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) /etc/snmp/snmpd.conf: line 112: Error: bad SUBTREE object id Turning on AgentX master support. 9:callback:lock: locked (LIB,POST_READ_CONFIG) callback: START calling callbacks for maj=0 min=0 callback: calling a callback for maj=0 min=0 callback: calling a callback for maj=0 min=0 callback: calling a callback for maj=0 min=0 callback: calling a callback for maj=0 min=0 callback: calling a callback for maj=0 min=0 callback: END calling callbacks for maj=0 min=0 (5 called) 9:callback:lock: unlocked (LIB,POST_READ_CONFIG) Error: Couldn't open a master agentx socket to listen on (): The line most important is the last: "Error: Couldn't open a master agentx socket to listen on ():" I run mi snmpd with the process describe above but this is not running. What is happening? Why the "agentx/master" is not creating? Why the "snmpd" is not running? Thanks P.S. In other email I told you that I solved the problem with the installation. The problem was the "shell" that contain the "intallation scripts", some with "bash" and others with "sh". I put all script with the "shell bash". How there was many files to change, I made the next process: "The /bin directory has the bash and the sh. The sh is a symbolic link to dash sh. I deleted the sh and then I made a symbolic link 'ln -s bash sh'. Then I installed the snmp package and the installation was sucessfull. Then I deleted the sh symbolic link and restore it (ln -s dash sh)" 2011/11/16 Dave Shield <[email protected]> > On 16 November 2011 15:38, francisco moreno <[email protected]> wrote: > > I solved the install problem. The problem was that some "scripts" using > the > > "sh shell" and others the "bash shell". I changed the symbolic link > /bin/sh > > -> /bin/dash to /bin/sh -> /bin/bash. Then the intallation was > successfull. > > Do you know which scripts were being affected by this? > This is something that we should try to fix if possible. > > > > I run the "snmpd" daemon that it is on "/usr/local/sbin/snmpd" > > and it show this message: > > error while loading shared libraries: libnetsnmpagent.so.15: > > cannot open shared object file: No such file or directory > > Does this library exist anywhere? > (Probably as /usr/local/lib/libnetsnmpagent.so.15) > > What does 'ldd /usr/local/sbin/snmpd' report? > Try running the command 'ldconfig' (as root) > What does 'ldd /usr/local/sbin/snmpd' report? > > If it's still complaining about missing libraries, > then is there a directory /etc/ld.conf.d ? > If so, then try creating a file > /etc/ld.conf.d/net-snmp.conf > containing > /usr/local/lib > and then run 'ldconfig' again. > > What does ldd report now? > Does the agent start or not? > > > > My other problem is the "agentx" not start and my application doesn't > work > > >> - the "agentx" wasn't into "/var" directory > > As I already said, this will be created automatically when you run the > agent. > If the agent is not able to run (because of the missing library problem), > then of course, it won't be creating this folder! > > Concentrate on fixing the agent first > > Dave > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ 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