On 31 January 2011 14:52, th exterit wrote:
> 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).
Which version of the software are you using?
The 5.6 release has an SQL module for snmptrapd,
Global variables are declared in one file above any functions as:
int my_variable;
and used in the other as:
extern int my_variable;
--
Wes Hardaker
Cobham Analytic Solutions
--
Special Offer-- Download ArcSight
> On Fri, 28 Jan 2011 13:35:14 +, Dave Shield
> said:
DS> Please see
DS>
http://net-snmp.sourceforge.net/wiki/index.php/Strong_Authentication_or_Encryption
DS> In particular, note the final paragraph
I actually just amended that page as it was out of date. Quick,
re-read it!
--
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
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