Hi,

Thank you for your answer.

In fact, I used my own timer to collect link status very 3 second, I start
my timer just before the receive() function in snmpd.c.

My issue is that there 2 interfaces, for the first interface, program
running fine, but when running to the second interface, at the function
"snmp_varlist_add_variable", the program dumped.

Thank you for your help.

Li

-----Original Message-----
From: Wes Hardaker [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 22, 2006 9:52 AM
To: Li Gan
Cc: [email protected]
Subject: Re: how can I send linkUp trap in my code

>>>>> "LG" == Li Gan <[EMAIL PROTECTED]> writes:

LG> Am I right? unfortunately, it doesn't work, please help me ,
LG> thanks!

It's unclear where the code is being executed?  It won't work during
the init_XXX() phases of your code, but if you set an snmp_alarm and
put it in a function for after the agent gets fully running you should
be able to send notifications.  However, make sure you configure the
agent with a notification destination.
-- 
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to