Merge branch 'ent-3692-No-esta-incluyendo-version-en-wizard-interfaces-para-modulos-satelite' into 'develop'
Add module version line to config module configuration data See merge request artica/pandorafms!2259 Former-commit-id: 5595b821efd2c15e25458cbe8f5d52ab708c533a
This commit is contained in:
commit
e0c63e17d7
|
@ -369,7 +369,7 @@ if ($create_modules) {
|
||||||
if ($row['server_type'] == 13) {
|
if ($row['server_type'] == 13) {
|
||||||
$module_type_name = db_get_value_filter('nombre', 'ttipo_modulo', ['id_tipo' => $values['id_tipo_modulo']]);
|
$module_type_name = db_get_value_filter('nombre', 'ttipo_modulo', ['id_tipo' => $values['id_tipo_modulo']]);
|
||||||
|
|
||||||
$new_module_configuration_data = "module_begin\nmodule_name ".io_safe_input($name)."\nmodule_description ".io_safe_output($values['descripcion'])."\nmodule_type ".$module_type_name."\nmodule_snmp\nmodule_oid ".$conf_oid."\nmodule_community ".$values['snmp_community']."\nmodule_end";
|
$new_module_configuration_data = "module_begin\nmodule_name ".io_safe_input($name)."\nmodule_description ".io_safe_output($values['descripcion'])."\nmodule_type ".$module_type_name."\nmodule_snmp\nmodule_version ".$snmp_version."\nmodule_oid ".$conf_oid."\nmodule_community ".$values['snmp_community']."\nmodule_end";
|
||||||
|
|
||||||
config_agents_add_module_in_conf($id_agent, $new_module_configuration_data);
|
config_agents_add_module_in_conf($id_agent, $new_module_configuration_data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue