Wes Hardaker wrote:
>>>>>> On Fri, 06 Feb 2009 09:58:00 -0700, Tushar Gohad <tgo...@mvista.com> 
>>>>>> said:
>
> TG> My question is: were the 'release' routines left out intentionally,
> TG> say to avoid cleaning out someone else's (subagent, command line
> TG> trap addition etc) monitor entries?  Or is there a safe way to clean
> TG> the entries out?
>
> They were left out simply because they weren't finished.  We'd happily
> accept a patch to create the appropriate release routines :-)
Many thanks, Wes.  I'll try to come up with a patch.

> TG> Most of the 'monitor' entries seem to be created with owner
> TG> 'snmpd.conf.'
>
> The Table requires some sort of owner name.  We could make that
> configurable, you're right, but "snmpd.conf" seemed simple and easy and
> making it configurable to something else didn't seem worth the effort
> since it would be of little use.
Ok.  So is it reasonable to clear out all the 'monitor' entries
on SIGHUP?  In case of notifications, the comment on the release
function says the following:


-- 8< ------- agent/mibgroup/notification/snmpNotifyTable.c ----------
...
/*
 * XXX: this really needs to be done for the target mib entries too.
 * But we can only trust that we've added stuff here and we don't want
 * to destroy other valid entries in the target tables, so...  Don't
 * do too many kill -HUPs to your agent as re reading the config file
 * will be a slow memory leak in the target mib.
 */
int
notifyTable_unregister_notifications(int major, int minor,
                                     void *serverarg, void *clientarg)
{
...
-----------------------------------------------------------------------


Similarly, should we be worried about 'other valid' monitor
entries?


>
> TG> Is there any other way to distinguish the entries as being owned by
> TG> the process that the SIGHUP is sent to?
>
> I understand what that question is trying to ask...
Just so that I don't reinvent it, is there a way already that will
tell monitor entries as being owned by a process (pid) that the
SIGHUP is issued to ..?

> In the future, please don't write personal messages to people asking for
> help...  You have to be patient with the mailing lists as people are
> busy and get to the list when they get the time as open source projects
> are often supported by people on their own time.  The people that
> contribute answers get to an answer when we have time to respond to
> questions on the list.
Apologies.  I understand.  I just wasn't sure if the other community
members were interested in the topic. So chose to write only to the
core developers.


Cheers,

- Tushar


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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