2012-04-20 Sergio Martin <sergio.martin@artica.es>

* lib/PandoraFMS/Core.pm: Setted last_reference to current utimestamp
	in the alert table when create it



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6068 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2012-04-20 12:10:10 +00:00
parent e0ae525140
commit 1e25daff32
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-04-20 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Setted last_reference to current utimestamp
in the alert table when create it
2012-04-20 Koichiro Kikuchi <koichiro@rworks.jp>
* conf/pandora_server.conf.windows,

View File

@ -1203,7 +1203,7 @@ sub pandora_create_template_module ($$$$;$$$) {
$standby = 0 unless defined $standby;
my $module_name = get_module_name($dbh, $id_agent_module);
return db_insert ($dbh, 'id', "INSERT INTO talert_template_modules (`id_agent_module`, `id_alert_template`, `id_policy_alerts`, `disabled`, `standby`) VALUES (?, ?, ?, ?, ?)", $id_agent_module, $id_alert_template, $id_policy_alerts, $disabled, $standby);
return db_insert ($dbh, 'id', "INSERT INTO talert_template_modules (`id_agent_module`, `id_alert_template`, `id_policy_alerts`, `disabled`, `standby`, `last_reference`) VALUES (?, ?, ?, ?, ?, ?)", $id_agent_module, $id_alert_template, $id_policy_alerts, $disabled, $standby, time);
}
##########################################################################