mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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
0ea1032176
commit
3d0b20a047
@ -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>
|
2008-11-26 Jorge Gonzalez <jorgegonz@artica.es>
|
||||||
|
|
||||||
* pandoradb_data.sql: Added korean translation.
|
* 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
|
$sql = sprintf ("UPDATE tagente_modulo SET
|
||||||
descripcion = '%s',
|
descripcion = '%s',
|
||||||
|
id_module_group = %d,
|
||||||
nombre = '%s',
|
nombre = '%s',
|
||||||
max = %d,
|
max = %d,
|
||||||
min = %d,
|
min = %d,
|
||||||
@ -742,7 +743,7 @@ if ((isset ($_POST["update_module"])) && (!isset ($_POST["oid"]))) { // if modif
|
|||||||
post_process = %f,
|
post_process = %f,
|
||||||
prediction_module = %d,
|
prediction_module = %d,
|
||||||
max_timeout = %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_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);
|
$form_plugin_parameter, $form_id_plugin, $form_post_process, $form_prediction_module, $form_max_timeout, $id_agente_modulo);
|
||||||
$result = process_sql ($sql);
|
$result = process_sql ($sql);
|
||||||
|
@ -274,11 +274,8 @@ if (isset ($_POST["delete"])) {
|
|||||||
temp_sql_delete ("tagente_datos_inc", "id_agente_modulo", $id_module_dest);
|
temp_sql_delete ("tagente_datos_inc", "id_agente_modulo", $id_module_dest);
|
||||||
|
|
||||||
//String data
|
//String data
|
||||||
temp_sql_delete ("tagente_datos_string", "id_agente_modulo", $id_module_dest);
|
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);
|
|
||||||
|
|
||||||
//Events (up/down monitors)
|
//Events (up/down monitors)
|
||||||
temp_sql_delete ("tevento", "id_agentmodule", $id_module_dest);
|
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"])) {
|
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)
|
// 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')");
|
process_sql ("INSERT INTO tconfig (token,value) VALUES ('prominent_time','comparation')");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user