mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Merge branch 'ent-3581-proyectos-bug-deshabilitar-agente-software' into 'develop'
ticket resolved See merge request artica/pandorafms!2207
This commit is contained in:
commit
efd7abfc66
@ -118,7 +118,7 @@ if ($enable_agent) {
|
||||
enterprise_include_once('include/functions_agents.php');
|
||||
$values = ['disabled' => 0];
|
||||
enterprise_hook('agent_update_from_cache', [$enable_agent, $values, $server_name]);
|
||||
|
||||
config_agents_update_config_token($enable_agent, 'standby', 0);
|
||||
db_pandora_audit('Agent management', 'Enable '.$alias);
|
||||
} else {
|
||||
db_pandora_audit('Agent management', 'Fail to enable '.$alias);
|
||||
@ -140,6 +140,7 @@ if ($disable_agent) {
|
||||
enterprise_include_once('include/functions_agents.php');
|
||||
$values = ['disabled' => 1];
|
||||
enterprise_hook('agent_update_from_cache', [$disable_agent, $values, $server_name]);
|
||||
config_agents_update_config_token($disable_agent, 'standby', 1);
|
||||
|
||||
db_pandora_audit('Agent management', 'Disable '.$alias);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user