Re: traps from table

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/5/15 Michael Musenbrock <[email protected]>:
> I want to send a trap  if some value has changed in my snmp-table...
> I have to save all the values and compare it to the new one?! Is this right?

Correct.


> And are there some given structures to do that task, e.g. every x seconds?

The simplest approach would probably be to use the cache helper to
load the contents of the table from your external source.   This can
be configured to run automatically every X seconds, rather than
"on demand" when a relevant SNMP request comes in.

  The 'load' routine could then compare the new values for each row with
the previous ones, and trigger the trap if anything significant changes.
(Note that you may need to tweak the 'free' routine as well, to not release
the old data).


Alternatively you could use the DisMan Event MIB functionality, which
does this.   See the "monitor" directive in the snmpd.conf(5) man page.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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.