make sure that the dlmod line is correct in your config file.
dlmod mymodule /opt/lib/myplugin
Then try running something like this:
./snmpd -f -L -D -c snmpd.conf 2>foo
The -D throws lots of debugging output.
Now go back and grep for the name of your module.
You should have entries like this:
read_config: /usr/local/share/snmp/snmpd.conf:27 examining: dlmod mymodule
/opt/lib/myplugin
read_config: /usr/local/share/snmp/snmpd.conf:27 examining: dlmod mymodule
/opt/lib/myplugin
read_config: Found a parser. Calling it: dlmod / mymodule /opt/lib/myplugin
dlmod: dlmod_load_module mymodule: /opt/lib/myplugin
Presumably one of these steps is failing out. So go back through the output
and see what the complaint is.
--john
On Sat, 3 Jul 2004 08:57:29 -0700 (PDT)
Luiz Flip <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to implement a MIB in C and add it to the
> agent.
>
> I am using the agent/mibgroups/examples/examples.c
>
> Then I did:
> ./configure --with-mib-modules=mymib
>
> Then agent/make
>
> Then generate the snmpd.conf.
>
> Then, run the agent: ./snmpd -f -L -d -c snmpd.conf
>
> Then run:
> snmpget -v1 -c public localhost
> .1.3.6.1.4.1.2021.254.0
>
> But I got:
> Error in packet
> Reason: (noSuchName) There is no such variable name in
> this MIB.
> Failed object: UCD-SNMP-MIB::ucdavis.254.0
>
> I tried using the scalar_int.c and it didnot work
> either.
>
> Any help????
>
> Reading the FAQ I got:
>
> Finally, the agent itself can be extended to support
> additional MIB
> groups, by writing the necessary C code, and
> including this within
> the main agent - either statically compiled in, or
> dynamically loaded.
> This is covered further in the next section.
>
> It is not covered in the next section!!!
> The next section is: What's the difference between
> 'exec', 'sh' and 'pass'?
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Net-snmp-coders mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders