Re: generating user defined traps

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 10 January 2011 18:05, MAS . <[email protected]> wrote:
> I have snmp daemon running on my special hardware. I want to generate trap
> after checking particular register. so how and where to add my code (in c).
> how to monitor some register continuously?

I suggest you consider this problem in two parts:
   -  the code needed to generate the trap, and  (separately)
   -  detecting *when* to send the trap.

The template mib2c.notify.conf  can be used to generate a routine that
will send the trap (though you may need to tweak it slightly to provide any
necessary varbind values).

The question of *when* to send the trap is somewhat harder.

What event or condition does the trap represent?
How would you (as a person, not a programmer)
  decide that this trap should be generated?

Dave

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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.