SIGHUP/duplicate monitor instances
Tushar Gohad <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello folks,
In the current net-snmp version, there are no 'release' routines
corresponding to parse_mteTriggerTable(), parse_simple_monitor() or
parse_default_monitors(). This is causing the 'monitor' definitions not
getting cleaned out on a SIGHUP. In case of linkUpDownNotifications for
instance, duplicate 'monitor's get added to the mteTriggerTable and
multiple traps are seen for the same link up/down event. The number of
traps seen is equal to the number of SIGHUPs issued--which suggests that
the old 'monitor' entries should have been removed before adding them
again on reconfig.
My question is: were the 'release' routines left out intentionally, say
to avoid cleaning out someone else's (subagent, command line trap
addition etc) monitor entries? Or is there a safe way to clean the
entries out?
Most of the 'monitor' entries seem to be created with owner
'snmpd.conf.' Is there any other way to distinguish the entries as
being owned by the process that the SIGHUP is sent to?
Reference code:
--- agent/mibgroup/disman/mteTriggerTable.c ---
init_mteTriggerTable(void)
{
...
/*
* register our config handler(s) to deal with registrations
*/
snmpd_register_config_handler("mteTriggerTable", parse_mteTriggerTable,
NULL, NULL);
snmpd_register_config_handler("monitor", parse_simple_monitor, NULL,
"[options] monitor_expression [see
\"man snmpd.conf\"]");
snmpd_register_config_handler("defaultMonitors",
parse_default_monitors, NULL, "yes|no");
...
}
-----------------------------------------------
Many thanks,
- 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users