On 30/05/07, Need Help <[EMAIL PROTECTED]> wrote:
> If there is another widely used configuration file then I would like to play
> around with that one as well to get a better feeling of different kinds of
> approaches which can be used in NetSNMP.

I'd tend to prefer the 'mib2c.table_data.conf' framework.
If the MIB is monitoring data taken from an underlying subsystem,
then you'd probably want to invoke this as

    mib2c -c mib2c.table_data.conf -Scache=1  myTable

to include the 'load()' routine.   This is where you'd read in the
current contents of the table from this underlying system.


> If you do recommend another configuration file, perhaps you could give a one
> paragraph description indicating which procedures need to be updated to
> perform certain functions.

The main code to look at would be the load() routine.
That's the main interface between the MIB module and the
underlying system, so is the one place where we can't really
provide automatically generated code.   The initial contents
are simply a basic example, to give you the general idea.

You'd also need to check that the per-row data structure is
suitable for your needs, and that the GET handling is correct
(especially for string-based variables).

It's difficult to be more specific, without knowing more details about your
tables and the information that they are monitoring.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to