Thanks Mike - as it turns out, it was an initialization problem in the
AgentX agent. 

I modified the test program I wrote yesterday (based on notification.c)
to send our trap OID, and the receivers did receive the trap. While
debugging, I noticed that there were some initialization steps that were
occurring with the test AgentX program that weren't happening with my
AgentX code (based on the debug output). Long story short, we were
bailing during init, which prevented SNMP from correctly initializing
the agent. When we later made the SNMP API call to send the trap, the
code was truly falling into a black hole, because the agent never
completed init. The init routine has been fixed, and the traps are being
sent out correctly.

Thanks again!

~ Wendy

-----Original Message-----
From: Mike Ayers [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 03, 2008 2:43 PM
To: McGowen, Wendy; net-snmp-users@lists.sourceforge.net
Subject: RE: Enterprise trapquestion/send_v2trap API call


> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of McGowen, Wendy
> Sent: Thursday, January 03, 2008 6:18 AM

> Here's the trap stuff from my MIB:
> 
> pivot3                  OBJECT IDENTIFIER ::= { enterprises 25148 }
> 
> pvt3System MODULE-IDENTITY
>     LAST-UPDATED "200712060000Z"
>     DESCRIPTION  "MIB for all Pivot3 databank objects"
>     REVISION     "200712060000Z"
>     DESCRIPTION  "First revision"
>     ::= { pivot3 1 }
> 
> pvt3SysTraps            OBJECT IDENTIFIER ::= { pvt3System 3 }
> 
>     pvt3DatabankDriveStateFailed NOTIFICATION-TYPE
>         OBJECTS { name,
>                   slot }
>         STATUS  current
>         DESCRIPTION "This trap is sent when the state of a drive in
>                      a databank has changed to FAILED."
>         ::= { pvt3SysTraps 7 }

        Note that this *notification* can not be converted to v1 format.
If your target receiver is listed as v1, this will never be sent.  Could
that be your problem?


        HTH,

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to