2014-06-05 Vanessa Gil <vanessa.gil@artica.es>
* godmode/agentes/configurar_agentes.php: Changed interval in conf. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10118 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
35bbf90f0f
commit
0c2d74d586
|
@ -1,3 +1,8 @@
|
|||
2014-06-05 Vanessa Gil <vanessa.gil@artica.es>
|
||||
|
||||
* godmode/agentes/configurar_agentes.php: Changed
|
||||
interval in conf.
|
||||
|
||||
2014-06-05 Vanessa Gil <vanessa.gil@artica.es>
|
||||
|
||||
* godmode/gis_maps/configure_gis_maps.php: Changed
|
||||
|
|
|
@ -630,6 +630,7 @@ if ($update_agent) { // if modified some agent paramenter
|
|||
$url_description = (string) get_parameter("url_description");
|
||||
$quiet = (int) get_parameter("quiet", 0);
|
||||
|
||||
$old_interval = db_get_value('intervalo', 'tagente', 'id_agente', $id_agente);
|
||||
$fields = db_get_all_fields_in_table('tagent_custom_fields');
|
||||
|
||||
if ($fields === false) $fields = array();
|
||||
|
@ -705,6 +706,11 @@ if ($update_agent) { // if modified some agent paramenter
|
|||
__('There was a problem updating the agent'));
|
||||
}
|
||||
else {
|
||||
|
||||
if ($old_interval != $intervalo) {
|
||||
enterprise_hook('config_agents_update_config_interval', array($id_agente, $intervalo));
|
||||
}
|
||||
|
||||
$info = 'Group: ' . $grupo . ' Interval: ' . $intervalo .
|
||||
' Comments: ' . $comentarios . ' Mode: ' . $modo .
|
||||
' ID OS: ' . $id_os . ' Disabled: ' . $disabled .
|
||||
|
|
Loading…
Reference in New Issue