2008-11-26 Sancho Lerena <slerena@artica.es>
* godmode/agentes/configurar_agente.php: Fixed problem with agent module groups. * include/config_process.php: Fixed typo on prominent_time config token. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1265 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
bca1dd9324
commit
7b997a5a7e
|
@ -1,3 +1,11 @@
|
|||
2008-11-26 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* godmode/agentes/configurar_agente.php: Fixed problem with agent module
|
||||
groups.
|
||||
|
||||
* include/config_process.php: Fixed typo on prominent_time config token.
|
||||
|
||||
|
||||
2008-11-26 Jorge Gonzalez <jorgegonz@artica.es>
|
||||
|
||||
* pandoradb_data.sql: Added korean translation.
|
||||
|
|
|
@ -721,6 +721,7 @@ if ((isset ($_POST["update_module"])) && (!isset ($_POST["oid"]))) { // if modif
|
|||
}
|
||||
$sql = sprintf ("UPDATE tagente_modulo SET
|
||||
descripcion = '%s',
|
||||
id_module_group = %d,
|
||||
nombre = '%s',
|
||||
max = %d,
|
||||
min = %d,
|
||||
|
@ -742,7 +743,7 @@ if ((isset ($_POST["update_module"])) && (!isset ($_POST["oid"]))) { // if modif
|
|||
post_process = %f,
|
||||
prediction_module = %d,
|
||||
max_timeout = %d
|
||||
WHERE id_agente_modulo = %d", $form_description, $form_name, $form_maxvalue, $form_minvalue, $form_interval, $form_tcp_port, $form_tcp_send, $form_tcp_rcv,
|
||||
WHERE id_agente_modulo = %d", $form_description, $form_id_module_group, $form_name, $form_maxvalue, $form_minvalue, $form_interval, $form_tcp_port, $form_tcp_send, $form_tcp_rcv,
|
||||
$form_snmp_community, $form_snmp_oid, $form_ip_target, $form_flag, $form_id_modulo, $form_disabled, $form_id_export, $form_plugin_user, $form_plugin_pass,
|
||||
$form_plugin_parameter, $form_id_plugin, $form_post_process, $form_prediction_module, $form_max_timeout, $id_agente_modulo);
|
||||
$result = process_sql ($sql);
|
||||
|
|
|
@ -274,11 +274,8 @@ if (isset ($_POST["delete"])) {
|
|||
temp_sql_delete ("tagente_datos_inc", "id_agente_modulo", $id_module_dest);
|
||||
|
||||
//String data
|
||||
temp_sql_delete ("tagente_datos_string", "id_agente_modulo", $id_module_dest);
|
||||
|
||||
//Data image
|
||||
temp_sql_delete ("tagent_data_image", "id_agent_module", $id_module_dest);
|
||||
|
||||
temp_sql_delete ("tagente_datos_string", "id_agente_modulo", $id_module_dest);
|
||||
|
||||
//Events (up/down monitors)
|
||||
temp_sql_delete ("tevento", "id_agentmodule", $id_module_dest);
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ if (!isset ($config["sla_period"]) || empty ($config["sla_period"])) {
|
|||
|
||||
if (!isset ($config["prominent_time"])) {
|
||||
// Prominent time tells us what to show prominently when a timestamp is displayed. The comparation (... days ago) or the timestamp (full date)
|
||||
$config["prominent_time"] == "comparation";
|
||||
$config["prominent_time"] = "comparation";
|
||||
process_sql ("INSERT INTO tconfig (token,value) VALUES ('prominent_time','comparation')");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue