RE: trap daemon
"Ron Rader" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <C88FF64CFD06EE4B91C5B89CD48379FE53A9A0@dellserver.cipheroptics.local> |
Look at "snmptrapd," especially the tutorial http://www.net-snmp.org/wiki/index.php/TUT:Configuring_snmptrapd#Example _handler_script . You might be able to implement this by configuring snmptrapd appropriately, then writing scripts to extract trap information & insert into your DB. Ron ________________________________ From: th exterit [mailto:[email protected]] Sent: Monday, January 31, 2011 9:53 AM To: [email protected] Subject: trap daemon Hi, I've been tasked with writing a trap listener in C which will then take specific device info from these traps and shove them in a database (postgresql). Can somebody point me in the right direction? I have had a look at apps/snmptrap*.c but I quickly ran out of steam when trying to follow it. I would like this to be as simple as possible. Listen for traps, parse them for specific information, then add to database. I found this thread - http://www.mail-archive.com/[email protected]/msg1626 5.html Should I be looking at these functions? Is there a better way? Thanks, T The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ 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
logo.jpg
(image/jpeg, 7.7 KB) - not displayed