Hi,
 
I was able to have the example (notification.c).  There are 2 things that I've 
noticed
 
1. if I forked the snmptrapd;
 
/usr/local/sbin/snmptrapd -Lo
 
then the traps are not reported to stdout.  On the other hand if I donot fork;
 
/usr/local/sbin/snmptrapd -f -Lo
 
then, it can display the trapesses to stdout, but I cannot do other tasks from 
the shell.
 
2. snmp_alarm_register() only call the callback handler once.  It is set to 
trigger the handler every 30 sec.  I placed the copy of the handler in a 
subroutine that is called everytime I snmpset the beartbeatName.  The handler 
is called every single time without errors.
 
Is there any configuration that I'm missing?
 
Thanks!
 
Leo;
 
/usr/local/sbin/snmptrapd -f -Lo
 


--- On Fri, 9/10/10, Dave Shield <d.t.shi...@liverpool.ac.uk> wrote:


From: Dave Shield <d.t.shi...@liverpool.ac.uk>
Subject: Re: trapsink2 - example\notification.c
To: "Leo Lin" <hayashi_...@yahoo.com>
Cc: "Net-snmp-users" <net-snmp-users@lists.sourceforge.net>
Date: Friday, September 10, 2010, 2:50 AM


On 9 September 2010 15:30, Leo Lin <hayashi_...@yahoo.com> wrote:
>  I also started the trap listener, snmptrapd

How?

> the snmpd.log shows that the trap is being sent, but some how I don't see it 
> in the stdout.

What's the configuration of snmptrapd?
Is it authorized to accept traps with the community "secret"


Dave



      
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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