Hi,
On my host I have: snmpd (master agent), application (subagent). In 
application need to invoke something when trap is received.
It's possible to use snmptrapd and forward traps on any other host:port 
(also I can forward it to master agent). And now the problem to receive 
this traps inside my application (subagent).
I tried to use next:

In snmptrapd.conf:

forward default localhost:9161

In application:

session.peername = "localhost";
session.localname = "localhost";
session.local_port = 9161;

_trap_session = snmp_open(&session);

But _trap_session is not initialized (NULL).

Well, may be anyone know how implement: receive traps in subagent 
(doesn't matter as from master agent as from snmptrad)

--
thanks,
Alexander.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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