2011-09-01 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Improve the delete modules function to do the same actions of the console git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4866 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
17534052ed
commit
1049f5adb3
|
@ -1,3 +1,8 @@
|
|||
2011-09-01 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* lib/PandoraFMS/Core.pm: Improve the delete modules
|
||||
function to do the same actions of the console
|
||||
|
||||
2011-09-01 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* util/pandora_manage.pl
|
||||
|
|
|
@ -1327,8 +1327,11 @@ sub pandora_delete_module ($$;$) {
|
|||
# Delete templates asociated to the module
|
||||
db_do ($dbh, 'DELETE FROM talert_template_modules WHERE id_agent_module = ?', $module_id);
|
||||
|
||||
# Delete events asociated to the module
|
||||
db_do ($dbh, 'DELETE FROM tevento WHERE id_agentmodule = ?', $module_id);
|
||||
|
||||
# Set pending delete the module
|
||||
db_do ($dbh, 'UPDATE tagente_modulo SET disabled = 1, delete_pending = 1 WHERE id_agente_modulo = ?', $module_id);
|
||||
db_do ($dbh, 'UPDATE tagente_modulo SET disabled = 1, delete_pending = 1, nombre = "delete_pending" WHERE id_agente_modulo = ?', $module_id);
|
||||
|
||||
my $agent_id = get_module_agent_id($dbh, $module_id);
|
||||
|
||||
|
|
Loading…
Reference in New Issue