1snmptrapd MySQL Logging 2----------------------- 3 4A trap handler for logging traps to a MySQL database was added 5in release 5.5.0. 6 7The MySQL database location and password must be configured in 8/root/.my.cnf: 9 10 [snmptrapd] 11 host=localhost 12 password=sql 13 14User may also be configured, if using a MySQL user besides root. 15 16snmptrapd.conf must be configured to for the queue size and 17periodic flush interval: 18 19 # maximum number of traps to queue before forced flush 20 sqlMaxQueue 140 21 22 # seconds between periodic queue flushes 23 sqlSaveInterval 9 24 25A value of 0 for sqlSaveInterval will completely disable MySQL 26logging of traps. 27 28The schema must be loaded into MySQL before running snmptrapd. 29The schema can be found in dist/schema-snmptrapd.sql 30