On 23 February 2012 08:00, Chris Smith <[email protected]> wrote: > I'm coding a subagent which sends periodic reports using a trap, but it > needs to send them to a destination which is itself configured using an > SNMP set request.
Try manipulating the snmpTargetAddrTable and snmpNotifyTable. Setting entries in these tables will control where traps are directed. (This is essentially what the 'trapsink' and similar directives set up) > is it possible to either: > > 1. Change the config of a running snmpd from within a subagent; Not easily from within a subagent - no. (other than via SNMP SET requests). >From within the main agent, you can always invoke 'netsnmp_config()' with the text of the directive that you want to apply. > 2. Force snmpd to reload its config from the subagent; See UCD-SNMP-MIB::versionUpdateConfig (or send the main agent process the HUP signal) > 3. Get snmpd to watch its config file and reload on change? That's not a supported feature - no. Patches always welcome.... Dave ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ 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
