How to generate SNMP trap on Linux ?

Need to Generate SNMP trap for an application failure in Linux.The same trap has to be handled and the error has to be recorded.

Please help with the procedure and steps preferable using C++.
Who is Participating?
This should really be limited to the Linux Programming Zone, given that this is strictly a programming question.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.