From 30463a226837a15dd2fccd7f19437f177ea42f89 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 11 Mar 2013 14:28:12 +0000 Subject: [PATCH] 2013-03-11 Miguel de Dios * godmode/agentes/planned_downtime.list.php: fixed the lost data from planned downtime, show in the table of audits. Fixes: #3607608 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7827 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/godmode/agentes/planned_downtime.list.php | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 503256625d..2e61c4ab36 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2013-03-11 Miguel de Dios + + * godmode/agentes/planned_downtime.list.php: fixed the lost data + from planned downtime, show in the table of audits. + + Fixes: #3607608 + 2013-03-11 Miguel de Dios * include/functions_tags.php: fixed the function diff --git a/pandora_console/godmode/agentes/planned_downtime.list.php b/pandora_console/godmode/agentes/planned_downtime.list.php index 685933de94..1275664759 100755 --- a/pandora_console/godmode/agentes/planned_downtime.list.php +++ b/pandora_console/godmode/agentes/planned_downtime.list.php @@ -67,9 +67,12 @@ if ($stop_downtime) { if ($result) { events_create_event ("Manual stop downtime ". - $downtime['name'] . "(" . $downtime['id'] . ") by " . + $downtime['name'] . " (" . $downtime['id'] . ") by " . $config['id_user'], 0, 0, EVENT_STATUS_NEW, $config["id_user"], "system", 1); + db_pandora_audit("Planned Downtime management", + "Manual stop downtime " . $downtime['name'] . " (ID " . $downtime['id'] . ")", + false, true); //Reenabled the Agents or Modules or alerts...depends of type $downtime = db_get_row('tplanned_downtime', 'id', $id_downtime);