RS> Use standard IPC to send the data to the agent when an event occurs
and you need to send a trap.
Is there any example for using standard IPC to send the data to the
agent?
-FT
---
This SF.net email is sponsored by Demarc:
A global provide
On Tue, 29 Mar 2005 11:53:17 +0200 Grasic wrote:
GI> I wonder, how can I implement sending traps in agent, triggered from some
GI> other thread that listen independent events?
GI>
GI> In other words: I have snmpd thread that reacts on snmpXXX events. Where
GI> and how in the agent I should add cod
On Tue, 29 Mar 2005 16:49:39 +0800 (CST) [EMAIL PROTECTED] wrote:
LMCC> Thanks very much for your help. But could you please
LMCC> give me some guides about how to notify the snmpd
LMCC> thread to send a trap?
You can use and standard IPC mechanism available to you. Semaphores, shared
memory, name
, www.iskratr.com
From: Toth, Gregory S <[EMAIL PROTECTED]>
RE: thread-safe support of snmpd
2005-03-28 09:04
You can also wrap all calls to the net-snmp api with mutex"s
-Original Message-
From: Robert Story [mailto:[EMAIL PROTECTED]
Sent: Monday, March 28, 2005
--- Robert Story <[EMAIL PROTECTED]> wrote:
>>> The only way to use snmpd in a multi-threaded
>>> application is to keep ALL snmp
>>> functionality in ONE thread. Other threads may
>>> listen for non-snmp related
>>> events, and notify the snmpd thread that a trap
>>> needs to be sent, but the tr
You can also wrap all calls to the net-snmp api with mutex's
-Original Message-
From: Robert Story [mailto:[EMAIL PROTECTED]
Sent: Monday, March 28, 2005 8:44 AM
To: [EMAIL PROTECTED]
Cc: net-snmp-coders@lists.sourceforge.net
Subject: Re: thread-safe support of snmpd
On Mon, 2
On Mon, 28 Mar 2005 18:38:31 +0800 (CST) [EMAIL PROTECTED] wrote:
LMCC> Since there are at least two threads running in
LMCC> snmpd: the main thread which handles SNMP requests and
LMCC> the event listening thread, we must make sure snmpd
LMCC> could run thread-safely.
No, snmpd is not thread sa
Hi,
I want to use snmpd to develop an application.
I use callback mechanism(SNMP_CALLBACK_LIBRARY and
SNMP_CALLBACK_SESSION_INIT) to let snmpd create a
thread which will listen user defined events and
update the global cache or generate traps according to
the analysis of these events. The glob