Hello,

I'm trying to build a manager around Net-SNMP which
uses both snmpd and snmptrapd demons. I have agents
distributed in some copmuters monitoring some events.
When it is necesary they generate a trap that needs to
be reveived by this manager. Basically I'm building a
manager to receive traps and to hava an MIB for
himself (that's why I need snmpd). I need to build
this manager using Java, but
I would need that the snmptrapd demon forwards the
traps to this manager that would be expecting these
traps (the manager only needs the variables and its
corresponding value, to calculate some statistics). I
was thinking in embeding the trapreceiver in
the manager and to forward the traps to it (using
JNI). The problem is that I don't know how to acheive
this. I have read the FAQs and documentation and found
nothing usefull. I tried to use the forward option in
the snmptrapd.conf file, and it forwards the traps but
I can't seem to print the traps. The problem in doing
this is that it would need the manager to decrypt and
authenticate traps, since I'm use authPriv traps.

I have looked through the anmptrapd code but I'm a
little confused and I don't know what functions are
usefull and basic for building a snmptrapd demon. Can
you point me out how to do this?

Is there a way to acces the traps within the snmptrapd
code? Where can I see and manipulate the data in the
traps in the snmptrapd demon? So that I can manipualte
the traps within the code of the snmptrapd demon, when
a trap is received?

Are traps sent as a flow of characters? How are traps
sent to the configured snmptrapd demon? What does it
send to the socket? Can you point me to an example?

Basically I need to send the traps to the manager so
that it can use them to graph some data and do some
calculations. Any guidance would be very appreciated.
I just need to comunicate both snmpd and snmptrapd
with the java program I need to write.

Thanks a lot for your collaboration.


                
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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