Donate Share

SNMP Trap Translator

Tracker: Support Requests

5 Anybody ever used it with embedded perl? - ID: 2815188
Last Update: Settings changed ( alex_b )

I noticed that snmptthandler is quite heavy and snmptt --daemon takes
noticeable time to pick up traps, which then get the wrong timestamp.
The FAQ says: "Net-SNMP allows Perl to be embedded into the SNMP agent by
specifying --enable-embedded-perl during compilation. This is not currently
required by SNMPTT." This would nicely address the problem -- but has
anybody ever tried that successfully?


Peter Klausner ( pklausner ) - 2009-07-01 12:44

5

Closed

None

Nobody/Anonymous

snmptt

None

Public


Comments ( 2 )

Date: 2009-07-19 14:15
Sender: alex_bProject Admin

The embedded handler will be available in snmptt 1.3. A beta version of
1.3 has been released and is available on the download page.



Date: 2009-07-01 17:47
Sender: alex_bProject Admin

I've written an embedded version of snmptthandler that will be included in
the next version which I hope to release as a beta soon. I just committed
the new file to CVS so you can grab it from there. The new file is
snmptthandler-embedded.

I need to add some additional variable substitutions for the SNMPv3 engine
IDs and also update the documentation. Here's some info to get started:

Make sure you have the ExtUtils-Embed Perl module. For Fedora, it's
perl-ExtUtils-Embed.

Compile Net-SNMP using:

configure --enable-embedded-perl

I don't know if any of the RedHat or other distributions include embedded
Perl in their binaries.

The Net-SNMP tutorial is here:

http://www.net-snmp.org/wiki/index.php/Tut:Extending_snmpd_using_perl

Remove the current traphandle from snmptrapd.conf and add:

perl do "/usr/sbin/snmptthandler-e";

I haven't done much testing with this so please let me know if there are
any issues.

Even if snmptt takes a while to process the traps, they should still have
the correct time stamp. When running in daemon mode it pulls the time from
the first line of the trap file generated by snmptthandler*. When running
in stand-alone mode, it takes the current time which is one reason I don't
recommend using stand-alone mode.

Alex



Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2009-07-19 14:15 alex_b
allow_comments 1 2009-07-19 14:15 alex_b
close_date - 2009-07-19 14:15 alex_b