RE: Enterprise trapquestion/send_v2trap API call

This is a discussion on RE: Enterprise trapquestion/send_v2trap API call within the SNMP Users forums, part of the Networking and Network Related category; Our internal network is finally back up, so I was able to test my theory from yesterday (it stinks coming ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-03-2008
McGowen, Wendy
 
Posts: n/a
Default RE: Enterprise trapquestion/send_v2trap API call

Our internal network is finally back up, so I was able to test my theory
from yesterday (it stinks coming back from vacation and not being able
to get any work done!):

I created an AgentX agent based on the sample 30-second heartbeat code
and ran it on a system that did not have snmpd compiled with that
support built in (to ensure that the traps are coming from my agent, not
snmpd). I am able to receive those heartbeat traps on my trap receiver,
but again, my enterprise-defined traps sent out from the same system do
NOT get sent to the trap receiver.

So does that mean that there's something "wrong" with the way I defined
the traps in my MIB??? Or is there something else that needs to be
configured for traps from an enterprise OID to be sent out? Can someone
please take a look at the MIB snippet from my previous post and see if
there's something obvious that I've overlooked? (If you need more
detail, just let me know and I'll post it. I'm using the latest version
of net-snmp, 5.4.1 on Linux).

Thanks!!

~ Wendy

-----Original Message-----
From: net-snmp-users-bounces@lists.sourceforge.net
[mailto:net-snmp-users-bounces@lists.sourceforge.net] On Behalf Of
McGowen, Wendy
Sent: Wednesday, January 02, 2008 9:54 AM
To: net-snmp-users@lists.sourceforge.net
Subject: AgentX agent not sending traps (was RE: Enterprise
trapquestion/send_v2trap API call)

Happy New Year, everyone! I didn't see any responses to this issue over
the last 2 weeks, and I'm still stuck on this problem.

Basically, I am unable to generate any traps from my AgentX agent - I
know from my debug output that my code is being triggered, and I'm
calling the SNMP API to send the trap accordingly, but nothing happens.
The 30-second "built in" heartbeat code (the example) is working just
fine, so I know that traps are being sent and received - i.e. the
destination is set up correctly in the configuration files. (My earlier
response has some of the details.)

So is there a known issue with AgentX and traps? Do I need to configure
the AgentX agent in some special way to get the traps to work? Or is it
more likely something in the way I've defined the trap itself? I used
mib2c to create the actual "trap" code, so it should be correct, as far
as SNMP is concerned.

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 }

Thanks in advance for any advice - I'm really at my wits end here! As an
experiment later today, I'm going to try to build the 30-second
heartbeat sample trap code as an AgentX agent, and try running that - if
I don't see those traps, then I guess it will confirm my suspicion that
my problem has to do with the fact that I'm trying to send a trap from
an AgentX agent, instead of the main SNMP process. The problem is, I
have to compile my stuff separately from SNMP; I can't add the overhead
of building the entire SNMP product into our build process.

~ Wendy


-------------------------------------------------------------------------
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/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0