[ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]


On 14/12/06, David Arthur <[EMAIL PROTECTED]> wrote:
> Thanks again for your help Dave.
> This is the function that I am using now for the agent processing loop:
>
> extern "C" void CESSubagentThread(void *pvArgs){
>
>   bool bSendTrap = true;                          // Send trap once only
>
>   while(!bSNMPShutdown){                          // While SNMP is running,
>     if(bSendTrap){                                //  if need to send trap,
> printf("Sending the EGP loss trap now.\n");
>       send_easy_trap(5, 0);                       //   send it
>       bSendTrap = false;                          //   flag no more traps
>     }
>     agent_check_and_process(1);                   //  process SNMP gets/sets
>   }
>   snmp_shutdown("agentSNMPAlert");                // Shutdown the subagent
>   SOCK_CLEANUP;                                   // Clean up after socket
> }
>
> I still am getting only the cold start trap from the master agent.
> I am seeing the printf above in my STDOUT though.
> (IOW, I *am* making the send_easy_trap call.)

OK - try running the master agent with the '-d' flag.
Does it see the trap request coming from the subagent?

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

Reply via email to