mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 23:05:30 +02:00
Fixed small bug when make a snmpwalk.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@64 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
fdfee7fe40
commit
02e65b4c07
@ -2,7 +2,7 @@
|
|||||||
// Pandora - the Free monitoring system
|
// Pandora - the Free monitoring system
|
||||||
// ====================================
|
// ====================================
|
||||||
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
||||||
// Copyright (c) 2005-2006 Artica Soluciones Tecnológicas S.L, info@artica.es
|
// Copyright (c) 2005-2006 Artica Soluciones Tecnologicas S.L, info@artica.es
|
||||||
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
|
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU General Public License
|
// modify it under the terms of the GNU General Public License
|
||||||
@ -458,7 +458,6 @@ if (give_acl($id_user, 0, "AW")==1) {
|
|||||||
}
|
}
|
||||||
$sql_update = "UPDATE tagente_modulo SET max ='".$modulo_max."', min = '".$modulo_min."', nombre='".$nombre."', descripcion='".$descripcion."', tcp_send = '$tcp_send', tcp_rcv = '$tcp_rcv', tcp_port = '$tcp_port', ip_target = '$ip_target', snmp_oid = '$snmp_oid', snmp_community = '$snmp_community', id_module_group = '$id_module_group', module_interval = '$module_interval' WHERE id_agente_modulo = ".$id_agente_modulo;
|
$sql_update = "UPDATE tagente_modulo SET max ='".$modulo_max."', min = '".$modulo_min."', nombre='".$nombre."', descripcion='".$descripcion."', tcp_send = '$tcp_send', tcp_rcv = '$tcp_rcv', tcp_port = '$tcp_port', ip_target = '$ip_target', snmp_oid = '$snmp_oid', snmp_community = '$snmp_community', id_module_group = '$id_module_group', module_interval = '$module_interval' WHERE id_agente_modulo = ".$id_agente_modulo;
|
||||||
$result=mysql_query($sql_update);
|
$result=mysql_query($sql_update);
|
||||||
echo "debug $sql_update <br>";
|
|
||||||
if (! $result)
|
if (! $result)
|
||||||
echo "<h3 class='error'>".$lang_label["update_module_no"]."</h3>";
|
echo "<h3 class='error'>".$lang_label["update_module_no"]."</h3>";
|
||||||
else
|
else
|
||||||
@ -793,9 +792,11 @@ if ($update_module == "1"){
|
|||||||
else {
|
else {
|
||||||
echo '<input type="hidden" name="insert_module" value=1>';
|
echo '<input type="hidden" name="insert_module" value=1>';
|
||||||
// Default values for new modules
|
// Default values for new modules
|
||||||
$ip_target = $direccion_agente;
|
if ($ip_target == ""){
|
||||||
$snmp_community = "public";
|
$ip_target = $direccion_agente;
|
||||||
$module_interval = $intervalo;
|
$snmp_community = "public";
|
||||||
|
$module_interval = $intervalo;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<h3><?php echo $lang_label["module_asociation_form"] ?></h3>
|
<h3><?php echo $lang_label["module_asociation_form"] ?></h3>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user