Dear All
I have created two subagent processes one to handle get/sets and another to
send traps.
In the process that sends traps, I have no threads now.
First I created connection with the master agent and registered for no MIB
variables. (I am not calling the agent_check_and_process() any more).
When there is a large volume of sending traps the master agent.
I see the following message on the console window:
"AgentX master agent failed to respond to ping. Attempting to re-register."
After I see this line, my process crashes. Has any one got this kind of
problem or have the knowledge how to fix this problem?
I really appreciate your help in fixing this problem.
I am running Net-SNMP 5.4 on a 64 bit RHEL 4.0 OS machine.
Thank you very much
Reddy
Dave Shield <[EMAIL PROTECTED]> wrote: On 04/01/07, Venkata Guddeti wrote:
> 1. Can I create two subagent processes on the same machine. One for
> processing get/set and the other for sending the traps.
That is likely to be the safest approach.
As explained in README.thread, the agent code is not thread-safe, so
having two threads (one sending traps and one handling GET/SET requests)
is unlikely to work reliably. We've also had reports of problems with
high-volume subagent trap generation - though that's tended to be as a
result of deadlock with GET handling.
The bottom line is that multiple subagents should *not* be run as separate
threads of the same basic process. Separating the two tasks into two
completely separate processes feels much the safest approach.
> 2. Integrate my code that does get/set into snmpd and create another process
> to send traps based on the triggers received from outside.
That should work too.
Dave
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders