2010-04-14 Sergio Martin <sergio.martin@artica.es>
* godmode/alerts/alert_list.php: Controled the sucessful of the create an alarm to audit it for bug 2987006 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2561 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
094997242c
commit
d9df010901
|
@ -1,3 +1,8 @@
|
|||
2010-04-14 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/alerts/alert_list.php: Controled the sucessful of the
|
||||
create an alarm to audit it for bug 2987006
|
||||
|
||||
2010-04-14 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/alerts/alert_list.php,
|
||||
|
|
|
@ -74,9 +74,12 @@ if ($create_alert) {
|
|||
$alert_template_name = get_db_value ("name", "talert_templates","id", $id_alert_template);
|
||||
$module_name = get_db_value ("nombre", "tagente_modulo","id_agente_modulo", $id_agent_module);
|
||||
$agent_name = get_agent_name (get_db_value ("id_agente", "tagente_modulo","id_agente_modulo", $id_agent_module));
|
||||
|
||||
audit_db ($config["id_user"],$_SERVER['REMOTE_ADDR'], "Alert management",
|
||||
|
||||
// Audit the creation only when the alert creation is correct
|
||||
if($id) {
|
||||
audit_db ($config["id_user"],$_SERVER['REMOTE_ADDR'], "Alert management",
|
||||
"Added alert '$alert_template_name' for module '$module_name' in agent '$agent_name'");
|
||||
}
|
||||
|
||||
$messageAction = print_result_message ($id, __('Successfully created'), __('Could not be created'), '', true);
|
||||
if ($id !== false) {
|
||||
|
|
Loading…
Reference in New Issue