diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index a6ba0be9fb..fe61fc675e 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -94,7 +94,8 @@ function agents_create_agent ($name, $id_group, $interval, $ip_address, $values if (! is_array ($values)) $values = array (); - $values['nombre'] = $name; + $values['alias'] = $name; + $values['nombre'] = hash("sha256",$name . "|" .$ip_address ."|". time() ."|". sprintf("%04d", rand(0,10000))); $values['id_grupo'] = $id_group; $values['intervalo'] = $interval;