Re: Sending traps from an agentX subagent, and snmpd robustness

2004-11-22 Thread Users
On Mon, 22 Nov 2004 13:27:02 +1100 Russell wrote: RB> I couldn't use agent_check_and_process() to wait for events because RB> it ignores fd's registered with register_readfd(). Only receive() RB> in snmpd.c uses external_readfd[]. Gack. We need to fix that... RB> A separate question. The main a

Re: Sending traps from an agentX subagent, and snmpd robustness

2004-11-21 Thread Russell Bell
I asked last week how best to send traps from an agentX subagent, where the trap originates in a separate thread from the main SNMP thread. With Rob Storey's help I've arrived at the the following solution, which works fine so far. In summary, the main thread creates a pipe, and the main loop us