Re: How to send the traps in different way.

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 8 February 2010 12:28, Alexander King <[email protected]> wrote:
> The initializing had done.I use function snmp_alarm_register() send the
> trps each time at a predetermined time period(10 seconds, or 30 seconds).
>
> But,I want to send traps like this:
> 3.just send it;

Call the routine sendXxxTrap()
(as generated by mib2c.notify.conf)


> 1.when the value changed;
> 2.when the value is higher or lower than a specific value;

The easiest way to do these two would be to use the
DisMan Event MIB.   See the snmpd.conf(5) man page
discussion of the "monitor" directive.

Or else insert a call to sendXxxTrap into the code that
loads the contents of the table.

Dave

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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.