Nube here…
I am would like to run a program that would act on  SNMP Traps and run
a perl program and act on the alert accordantly.
The NetSNMP::TrapReceiver perl module appears to do exactly what I
would like especially since it was tied to the event I would not need
to watch the log.

>From Linux

Installed net-snmp-5.5 via
./configure --enable-embedded-perl
make
make install

I did not see an error

---------------------------------------------------------
           Net-SNMP configuration summary:
---------------------------------------------------------

 SNMP Versions Supported:    1 2c 3
 Building for:               linux
 Net-SNMP Version:           5.5
 Network transport support:  Callback Unix Alias TCP UDP
 SNMPv3 Security Modules:     usm
 Agent MIB code:             default_modules =>  snmpv3mibs mibII
ucd_snmp notification notification-log-mib target agent_mibs agentx
disman/event disman/schedule utilities host
 MYSQL Trap Logging:         unavailable
 Embedded Perl support:      enabled
 SNMP Perl modules:          building -- embeddable
 SNMP Python modules:        disabled
 Authentication support:     MD5 SHA1
 Encryption support:         DES AES

Installed the Perl modules by using the install inside the perl folder
in net-snmp-5.5
 ( no errors )


To test I followed the instructions on
http://search.cpan.org/~hardaker/NetSNMP-TrapReceiver-5.0401/TrapReceiver.pm

here is a copy of my /etc/snmp/snmptrapd.conf

#######
disableAuthorization yes
perl do "/usr/local/share/snmp/mytrapd.pl";
#######
When I issue command
/usr/bin/snmptrapd -f -Le -c /etc/snmp/snmptrapd.conf

I see…
NET-SNMP version 5.5

But it does not say “Loaded the perl snmptrapd handler”

What am I doing wrong?


Thanks for you help


Todd
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to