Main Page | Modules | Data Structures | File List | Data Fields

Clean (mod_snmp)
[Extension Modules]


Functions

sul_error_tmodsnmp_initialize (smd_module_system_t *modsys, sul_cfg_block_t *cfg, apr_pool_t *pool)
sul_error_tmodsnmp_destroy (apr_pool_t *pool)

Detailed Description

This is a very simply module that spawns a worker thread that awakens at a predefined interval and sends a VACUUM ANALYZE to the PostgreSQL database. This improves performance over long durations and keeps everything moving smoothly. It is highly suggested that you load this module, unless you provide similar functionality in a cron job or some other mechanism.

Function Documentation

sul_error_t* modsnmp_destroy apr_pool_t *  pool  ) 
 

Destroys this Modules runtime state and stops anything that the Module may be doing. Usually invoked when the Module is being unloaded and the server is being stopped.

Parameters:
pool Pool used to allocate the Module.
Returns:
An sul_error_t instance if an error occured and NULL otherwise.

sul_error_t* modsnmp_initialize smd_module_system_t modsys,
sul_cfg_block_t cfg,
apr_pool_t *  pool
 

Called when the Module is being loaded and should create and initialize itself. All modules start here and this is where all of the work starts. This function MUST always return.

Parameters:
modsys Module system that is loading the Module
cfg Configuration details for the Module.
pool Pool to allocate module overhead from.
Returns:
An sul_error_t instance if an error occured and NULL otherwise.


Generated on Wed Apr 28 09:38:37 2004 for State by doxygen 1.3.5