The better way would be to use the API to send a trap. Rather than call snmptrap from within a system call, look at the insides of the apps/snmptrap.c file and copy how it creates a trap (or inform) PDU and send it via function calls instead.
-- Wes Hardaker Please mail all replies to [email protected] ------------------------------------------------------------------------------ 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-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
