Re: sending traps from embedded AgentX subagent

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 14/12/06, David Arthur <[email protected]> wrote:
> The send_easy_trap(5, 0) call is made after the init_xxx() calls and the
> agent processing loop is started.

In the code fragment you posted, the "send_easy_trap(5, 0)" call
is only made after the agent processing loop has *finished*.
At which point the subagent probably can't talk to the master
agent any more.

If you need to send a trap, it should probably be done within
the "while(!bSNMPShutdown)" loop.
  Or at the very least, *before* calling

     snmp_shutdown("agentSNMPAlert");
     SOCK_CLEANUP;

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-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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.