2009-04-24 Esteban Sánchez <estebans@artica.es>

* godmode/agentes/module_manager.php: Added extra parameter to
	enterprise_hook call.
	
	* include/functions_modules.php: Added get_network_component_group_name()



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1655 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
esanchezm 2009-04-24 10:47:30 +00:00
parent e654b051a5
commit c3cb427651
3 changed files with 24 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-04-24 Esteban Sánchez <estebans@artica.es>
* godmode/agentes/module_manager.php: Added extra parameter to
enterprise_hook call.
* include/functions_modules.php: Added get_network_component_group_name()
2009-04-24 Manuel Arostegui <marostegui@artica.es>
* operation/agentes/status_monitor.php: Fixed bug #2779382

View File

@ -54,7 +54,9 @@ if ($wmi_available)
$modules['wmiserver'] = __('Create a new WMI Server module');
if ($prediction_available)
$modules['predictionserver'] = __('Create a new prediction Server module');
enterprise_hook ('set_enterprise_module_types', array (&$modules));
if (!isset ($local_components))
$local_components = false;
enterprise_hook ('set_enterprise_module_types', array (&$modules, $local_components));
print_select ($modules, 'moduletype', '', '', '', '', false, false, false);
print_input_hidden ('edit_module', 1);
echo '</td>';

View File

@ -156,6 +156,20 @@ function get_network_component_groups ($id_module_components = 0) {
return $retval;
}
/**
* Get the name of a network components group.
*
* @param int Network components group id.
*
* @return string The name of the components group.
*/
function get_network_component_group_name ($id_network_component_group) {
if (empty ($id_network_component_group))
return false;
return @get_db_value ('name', 'tnetwork_component_group', 'id_sg', $id_network_component_group);
}
/**
* Deletes a module from an agent.
*