--- Dave Shield <[EMAIL PROTECTED]> wrote:

> On Wed, 2005-06-15 at 03:16, Steve S. Law wrote:
> >                                           My MIB
> is a
> > table generated by mib2c tool using iterate.conf.
> One
> > row in the table corresponds to one application
> > process being monitored.
> 
> How do the iterator 'get_{first,next}' hook routines
> obtain the list of entries to work with?
> Do you have an internal list, or something similar?
> How is this generated?
Iterator routines are generated by mib2c tool. There
is a global pointer to the list - 
struct applTable_entry *applTable_head , which is a
linked list, also generated by mib2c The
applTable_createEntry routine was also auto-generate.
> 
> 
> >                                    If a process I
> am
> > moitoring is down, I want to delete the row for
> that
> > process. Right now, If I "snmpwalk" again after
> some
> > process dies, I got errors for those "dead" rows
> 
> Then the iterator hook routines need to omit that
> entry from the list that they return.
> 
> >                                       My MIB table
> > does not have RowStatus column. (I read somewhere
> that
> > RowStatus has to do with deleting the row.. but
> not
> > quite sure how to use it).
> 
> RowStatus is the standard mechanism for having a
> management
> client application instruct the agent to delete a
> row
> from the table (together with removing whatever that
> row refers to).  In this case, that would probably
> correspond to shutting down the corresponding
> process.
> 
> If you're just trying to monitor the existing state
> of the system, then RowStatus control is not
> relevant.
> Concentrate on the iterate hook list.
> 
> Dave
> 
For my situation, I just need to write/implement a new
function applTable_removeEntry which will look for the
entry and delete it from the linked list. Correct?

Steve


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to