On 8 February 2010 12:28, Alexander King <chenyapu1...@qq.com> 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 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