Re: trapsink2 - example\notification.c

Leo Lin <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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 <[email protected]> wrote:


From: Dave Shield <[email protected]>
Subject: Re: trapsink2 - example\notification.c
To: "Leo Lin" <[email protected]>
Cc: "Net-snmp-users" <[email protected]>
Date: Friday, September 10, 2010, 2:50 AM


On 9 September 2010 15:30, Leo Lin <[email protected]> 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.