Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 433169

Summary: net-analyzer/net-snmp needs a mysql USE flag
Product: Gentoo Linux Reporter: Dag Bakke <dag>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dag Bakke 2012-08-29 13:20:20 UTC
snmptrapd can log directly to mysql now.
See:
http://www.net-snmp.org/wiki/index.php/Snmptrapd
http://fossies.org/unix/misc/net-snmp-5.7.1.tar.gz:a/net-snmp-5.7.1/README.sql

Reproducible: Always

Steps to Reproduce:
1. emerge net-snmp.
2. follow steps noted in Description
use this in /etc/snmp/snmptrapd.conf
authCommunity log 1.2.3.4
sqlMaxQueue 140
sqlSaveInterval 9

3. run snmptrapd -t -f -n -Lo

Actual Results:  
Notice how snmptrapd complains about the sql-related config options

Expected Results:  
Complained about missing mysql socket

A trap handler for logging traps to a MySQL database was added in release 5.5.0.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-09-03 10:59:08 UTC
Yes I knew about it but I haven't implemented yet. Will look into it asap.

This will only be implemented for 5.7 and later though.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-10-04 15:28:02 UTC
Added to 5.7.2_rc3.