2009-09-17 Miguel de Dios <miguel.dedios@artica.es>
* pandora_console/include/functions_events.php: fix the insert event, before Pandora console inserted timestamp as string timestamp, now Pandora console insert the event with clean and numeric unix timestamp. * pandora_console/include/functions_alerts.php: cleanup the sourcecode. Fixes: 2854087 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1952 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
70ce6c151f
commit
889b4b2f73
|
@ -1,3 +1,11 @@
|
|||
2009-09-17 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* pandora_console/include/functions_events.php: fix the insert event,
|
||||
before Pandora console inserted timestamp as string timestamp, now Pandora
|
||||
console insert the event with clean and numeric unix timestamp.
|
||||
* pandora_console/include/functions_alerts.php: cleanup the sourcecode.
|
||||
Fixes: 2854087
|
||||
|
||||
2009-09-16 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* operation/agentes/estado_agente.php, godmode/alerts/alert_list.php: fix
|
||||
|
|
|
@ -554,7 +554,8 @@ function validate_alert_agent_module ($id_alert_agent_module) {
|
|||
$group_id, $agent_id, 1, $config["id_user"],
|
||||
"alert_manual_validation", 1, $alert["id_agent_module"],
|
||||
$id);
|
||||
} elseif ($result === false) {
|
||||
}
|
||||
elseif ($result === false) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -236,7 +236,7 @@ function create_event ($event, $id_group, $id_agent, $status = 0, $id_user = "",
|
|||
$sql = sprintf ('INSERT INTO tevento (id_agente, id_grupo, evento, timestamp,
|
||||
estado, utimestamp, id_usuario, event_type, criticity,
|
||||
id_agentmodule, id_alert_am)
|
||||
VALUES (%d, %d, "%s", NOW(), %d, NOW(), "%s", "%s", %d, %d, %d)',
|
||||
VALUES (%d, %d, "%s", NOW(), %d, UNIX_TIMESTAMP(NOW()), "%s", "%s", %d, %d, %d)',
|
||||
$id_agent, $id_group, $event, $status, $id_user, $event_type,
|
||||
$priority, $id_agent_module, $id_aam);
|
||||
|
||||
|
|
Loading…
Reference in New Issue