Use module parameters in monitors
All monitors now declare the parameters that they use. This allows the core to check the validity of the parameters before they are passed to the monitor. It also simplifies the processing of the parameters as they are guaranteed to be valid.
This commit is contained in:
@ -1946,10 +1946,9 @@ check_config_objects(CONFIG_CONTEXT *context)
|
||||
}
|
||||
else if (!strcmp(type, "monitor"))
|
||||
{
|
||||
// TODO: Declare monitor parameters
|
||||
//param_set = monitor_params;
|
||||
//module = config_get_value(obj->parameters, "module");
|
||||
//module_type = MODULE_MONITOR;
|
||||
param_set = monitor_params;
|
||||
module = config_get_value(obj->parameters, "module");
|
||||
module_type = MODULE_MONITOR;
|
||||
}
|
||||
else if (!strcmp(type, "filter"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user