On Mon, 14 Jun 2004 07:30:45 +0100 mikael.danielsson wrote:
MDTBC> Is there a way to let the trapd forward the trap to another process by
MDTBC> the use of IPC? 
MDTBC> e.g is it possible to use the logging function to write to a named pipe 
MDTBC> created by another process? 

Have you tried specifying a named pipe as the log file for snmptrapd?

MDTBC> I'm writing a interface towards an application that handles alarms
MDTBC> within a system, what I want to do is to collect SNMP traps and convert
MDTBC> them into a system alarm. 
MDTBC> My idea was to use the trapd to collect the trap and to forward them to
MDTBC> my interface process. My process has to be running continuously so I
MDTBC> don't think I can use the "invoke" method  

I think the log file -> named pipe idea would work, though you'll be getting
text versions of the traps, which you'll have to parse. The other option is to
embed a trap receiver in your application, and forward the traps to it.

If efficiency is a concern, then you might want to consider modifying snmptrapd
and using a custom IPC method to send binary data directly to your app.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
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