Hello.
I have a PC with Net-SNMP and other program installed.
I need the program send a TRAP when a specific function is runing.
I know that I can build a "trap" in bash with "snmptrap" command, for
example: snmptrap -c password localhost 1.2....etc.
There is a function in C/C++, it is called "system", for example, if you
write:
system ( " cd /home " );
in a file with C code, it´s like if you write the same in the bash.
I have thought to write that function like this:
system ( "snmptrap -c password...." );
inside my specific function.
what do you think about this? is any way else?
Thanks in advance.
------------------------------------------------------------------------------
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