On 16/04/2008, Alejandro Islas <[EMAIL PROTECTED]> wrote:
> But when I try to read a table..the snmpd deamon crashes.
> Could anyone give me an idea of where to
> start to lookaround???
One thing would be to identify exactly what triggers the crash.
Does it fail on a GETNEXT of the first entry?
On a GETNEXT of any of the four columns?
On a GETNEXT of an internal row instance?
What about GET requests for particular values?
What about GET requests for missing values?
Try running the agent under a debugger, and see where
the crash occurs in the code.
> Here is part of my mib file (one of the tables)...
A few comments:
> MonThreadsTable OBJECT-TYPE
> SYNTAX SEQUENCE OF monThreadsEntry
The name of the table must start with a lower case letter
(monThreadsTable)
The name of the type must start with an upper case letter
And it's the name of the SEQUENCE type, not the Entry
object. (MonThreadsEntry)
> monThreadsEntry OBJECT-TYPE
> SYNTAX monThreadsDetailsEntry
The syntax of this object must match that of the
monThreadsTable entry. Conventionally, this
would be the same as the name of this MIB
object, but capitalised (MonThreadsEntry)
> monThreadsDetailsEntry ::=
> SEQUENCE {
MonThreadsEntry
> IdThread OBJECT-TYPE
> SYNTAX INTEGER
> ACCESS read-only
The index object should be "not-accessible".
> ProcTime OBJECT-TYPE
> MaxProcTime OBJECT-TYPE
> ExecNumber OBJECT-TYPE
These objects must start with a lower-case letter.
Conventionally, you would normally use a common prefix,
to make clear that they're all part of the same table.
monThreadsProcTime
monThreadsMaxProcTime
monThreadsExecNumber
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders