Factor out cache/munge. Add StoreSession.

The internal cache and munge parts of the global and attr handlers have been
factored out. This allows us to wrap the global and attr handlers and to
short-circuit them, yet still support pre/post cache and munge lookups.

Also added the StoreSession feature which dumps received raw data from
Net-SNMP to a text file in "qual_leaf = var" format. Enabled using
StoreSession param to new(), and filename optionally set with SessionDataFile.
This commit is contained in:
Oliver Gorwits
2013-09-26 15:31:59 +01:00
parent 6071beb15d
commit 2b46ea310a
2 changed files with 132 additions and 50 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.db