This is a discussion on Re: add a forever process in agent within the SNMP Users forums, part of the Networking and Network Related category; On Thu, 2005-09-22 at 16:56 +0800, Jim Su wrote: > I need to add a forever process ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Thu, 2005-09-22 at 16:56 +0800, Jim Su wrote:
> I need to add a forever process in my agent. This process periodically > reads one particular directory and generates a list of data. That list is > to be used by a var_ABCTable() function in my agent when a snmpwalk or > snmpget request to this table is received. Will the agent make any other use of this list? In particular, if the agent doesn't receive any requests for this table for a day or two, is it necessary to keep regenerating the list all the time? If not, then I suggest you look at using the cache helper to generate this list "on demand". If this is not possible (either because generating the list takes too long, or because the data *is* needed for other purposes in the meantime), then you can use 'snmp_alarm_register' to specify a routine to run - either as a one-off, or regularly (until it's explicitly cancelled). Dave ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ 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/...net-snmp-users |