Problem creating my own Agentx Subagent... Help needed
"Srivastava, Namburi (IE10)" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <8325D0885E183748BB42C7706A59C7D49DB0E9@IE10EV801.global.ds.honeywell.com> |
> Hi, > > I have tried to create my own Agentx Subagent based on the > instructions given at the following link. > http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/demon/inde > x.html > > I AM USING THE NET-SNMP VERSION net-snmp-5.1.4 > > But using both the techniques, I get the following error message > > [root@localhost myexpts]# net-snmp-config --compile-subagent > mysubagent nstAgentSubagentObject.c > generating the tmporary code file: netsnmptmp.29591.c > void init_nstAgentSubagentObject(void); > checking for init_nstAgentSubagentObject in nstAgentSubagentObject.c > init_nstAgentSubagentObject(void) > running: gcc -g -O2 -Dlinux -I. -I/usr/local/include -o mysubagent > netsnmptmp.29591.c nstAgentSubagentObject.c -L/usr/local/lib > -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldl -lcrypto > -lm -ldl -lcrypto -lm > removing the tmporary code file: netsnmptmp.29591.c > subagent program mysubagent created > > [root@localhost myexpts]# ./mysubagent & > [1] 29612 > [root@localhost myexpts]# ./mysubagent: error while loading shared > libraries: libnetsnmpmibs.so.8: cannot open shared object > file: No such file or directory > > [1]+ Exit 127 ./mysubagent > > > To tell more about the experiment, I have copied the > nstAgentSubagentObject.c & nstAgentSubagentObject.h files in a > separate folder called myexpts in the root folder of net-snmp-5.1.4. > > The other technique mentioned in the above embedded html link > regarding the instrumenting the code with agentx subagent support also > yields the same error when tried to run the example-demon > error while loading shared libraries: libnetsnmpmibs.so.8: cannot open > shared object > file: No such file or directory > > > Kindly help me resolve the issue. > > Regards, > Sri. > > ********************************************************************** > ********************************************************************** > ********************************************************************** > *********** > This e-mail, and any attachments thereto, are intended only for use by > the addressee(s) named herein and may contain privileged and/or > confidential information. If you are not the intended recipient of > this e-mail, you are hereby notified that any dissemination, > distribution or copying of this e-mail, and any attachments thereto, > is illegal and strictly prohibited. If you have received this e-mail > in error, please immediately notify me by telephone and permanently > delete the original and any copy of any e-mail and any printout > thereof. > >