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

Disk Space Reporting (mod_disk)
[Extension Modules]


Defines

#define SMD_MODDISK_NODE_WARNING_XPATH   "/StateConf/Disk/Node[@IP='%s']/@Warning"
#define SMD_MODDISK_NODE_CRITICAL_XPATH   "/StateConf/Disk/Node[@IP='%s']/@Critical"
#define SMD_MODDISK_PART_WARNING_XPATH   "/StateConf/Disk/Node[@IP='%s']/Partition[@Name='%s']/@Warning"
#define SMD_MODDISK_PART_CRITICAL_XPATH   "/StateConf/Disk/Node[@IP='%s']/Partition[@Name='%s']/@Critical"
#define SMD_MODDISK_PART_IGNORE_XPATH   "/StateConf/Disk/Node[@IP='%s']/Partition[@Name='%s']/@Ignore"

Functions

sul_error_tmoddisk_initialize (smd_module_system_t *modsys, sul_cfg_block_t *cfg, apr_pool_t *pool)
sul_error_tmoddisk_destroy (apr_pool_t *pool)

Define Documentation

#define SMD_MODDISK_NODE_CRITICAL_XPATH   "/StateConf/Disk/Node[@IP='%s']/@Critical"
 

Path used to find the critical level for a partition on a specific node. This is formatted and then used in a lookup in the configuration to find the double value with the partition's percentage.

#define SMD_MODDISK_NODE_WARNING_XPATH   "/StateConf/Disk/Node[@IP='%s']/@Warning"
 

Path used to find the warning level for a partition on a specific node. This is formatted and then used in a lookup in the configuration to find the double value with the partition's percentage.

#define SMD_MODDISK_PART_CRITICAL_XPATH   "/StateConf/Disk/Node[@IP='%s']/Partition[@Name='%s']/@Critical"
 

Path used to find the critical level for a partition on a specific node. This is formatted and then used in a lookup in the configuration to find the double value with the partition's percentage.

#define SMD_MODDISK_PART_IGNORE_XPATH   "/StateConf/Disk/Node[@IP='%s']/Partition[@Name='%s']/@Ignore"
 

Path used to find if a specific partition should be ignored.

#define SMD_MODDISK_PART_WARNING_XPATH   "/StateConf/Disk/Node[@IP='%s']/Partition[@Name='%s']/@Warning"
 

Path used to find the warning level for a partition on a specific node. This is formatted and then used in a lookup in the configuration to find the double value with the partition's percentage.


Function Documentation

sul_error_t* moddisk_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* moddisk_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