On Mon, 31 Oct 2011 10:23:13 +0100 Jan wrote: JS> I have a simple perl agent in embedded perl, let's say JS> http://www.net-snmp.org/tutorial/tutorial-5/toolkit/perl/perl_module.pl JS> and following config file: JS> JS> rocommunity public JS> perl do "/path/to/perl_module.pl"; JS> JS> When I start the snmpd agent, it executes all 'perl do' statements and JS> my subagent is registered. So far so good. JS> JS> But now I send HUP signal to my snmpd -> it reloads the config and JS> re-executes all 'perl do' statements. That's somehow expected, but it JS> leads to $agent->register() with an OID, which is already registered -> JS> I see a warning and the registration is not replaced. JS> JS> So, the right way would be to detect that my perl script is running for JS> second time and un-register the old handler first... but how? There is JS> no $agent->unregister method! How can I replace a handler in perl? JS> JS> Is there a way, how to resolve this situation? I think I am missing JS> something obvious.
And excellent question. Wes, any ideas? ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
