Blame README.sql

Packit Service b38f0b
snmptrapd MySQL Logging
Packit Service b38f0b
-----------------------
Packit Service b38f0b
Packit Service b38f0b
A trap handler for logging traps to a MySQL database was added
Packit Service b38f0b
in release 5.5.0.
Packit Service b38f0b
Packit Service b38f0b
The MySQL database location and password must be configured in
Packit Service b38f0b
/root/.my.cnf:
Packit Service b38f0b
Packit Service b38f0b
	[snmptrapd]
Packit Service b38f0b
	host=localhost
Packit Service b38f0b
	password=sql
Packit Service b38f0b
Packit Service b38f0b
User may also be configured, if using a MySQL user besides root.
Packit Service b38f0b
Packit Service b38f0b
snmptrapd.conf must be configured to for the queue size and
Packit Service b38f0b
periodic flush interval:
Packit Service b38f0b
Packit Service b38f0b
	# maximum number of traps to queue before forced flush
Packit Service b38f0b
	sqlMaxQueue 140
Packit Service b38f0b
Packit Service b38f0b
	# seconds between periodic queue flushes
Packit Service b38f0b
	sqlSaveInterval 9
Packit Service b38f0b
Packit Service b38f0b
A value of 0 for sqlSaveInterval will completely disable MySQL
Packit Service b38f0b
logging of traps.
Packit Service b38f0b
Packit Service b38f0b
The schema must be loaded into MySQL before running snmptrapd.
Packit Service b38f0b
The schema can be found in dist/schema-snmptrapd.sql