2008-10-01 Ramon Novoa <rnovoa@artica.es>

* godmode/agentes/module_manager_editor_network.php: Added support for
          different SNMP versions.

        * godmode/agentes/configurar_agente.php: Removed debugging code.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1126 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2008-10-01 17:19:44 +00:00
parent b1bdfbb9dc
commit 4641cf74bb
3 changed files with 33 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-10-01 Ramon Novoa <rnovoa@artica.es>
* godmode/agentes/module_manager_editor_network.php: Added support for
different SNMP versions.
* godmode/agentes/configurar_agente.php: Removed debugging code.
2008-10-01 Ramon Novoa <rnovoa@artica.es>
* extensions/update_manager/lib/libupdate_manager_client.php: Added a

View File

@ -785,7 +785,7 @@ if (((!isset ($_POST["nc"]) OR ($_POST["nc"] == -1))) && (!isset ($_POST["oid"])
$form_id_module_group, $form_interval, $form_ip_target, $form_tcp_port, $form_tcp_rcv, $form_tcp_send, $form_id_export, $form_plugin_user, $form_plugin_pass,
$form_plugin_parameter, $form_id_plugin, $form_post_process, $form_id_prediction_module, $form_max_timeout, $form_disabled, $form_id_modulo);
$id_agente_modulo = process_sql ($sql, 'insert_id');
echo $sql;
if ($id_agente_modulo === false){
echo '<h3 class="error">'.__('There was a problem adding module').'</h3>';
} else {

View File

@ -215,6 +215,24 @@ echo '<td class="datos">'.__('SNMP Community')."</td>";
echo '<td class="datos"><input type="text" name="form_snmp_community" size="12" value="'.$form_snmp_community.'"></td>';
echo '</tr>';
// SNMP version
echo '<tr>';
echo '<td class="datos">'.__('SNMP version');
$snmp_versions["1"] = "1";
$snmp_versions["2"] = "2";
$snmp_versions["2c"] = "2c";
$snmp_versions["3"] = "3";
echo '</td>';
echo '<td>';
// SNMP module, tcp_send contains the snmp version
if ($form_id_tipo_modulo >= 15 && $form_id_tipo_modulo <= 18) {
print_select ($snmp_versions, 'form_tcp_send', $form_tcp_send, '', '', '', false, false);
} else {
print_select ($snmp_versions, 'form_tcp_send_void', 0, '', '', '', false, false);
}
echo '</td>';
echo '</tr>';
// Max / min value
echo '<tr>';
echo '<td class="datos2">'.__('Min. Value')."</td>";
@ -248,7 +266,13 @@ echo '<tr>';
echo '<td class="datos2" valign="top">'.__('TCP send');
pandora_help ("tcp_send");
echo "</td>";
echo '<td class="datos2"><textarea cols=20 style="height:55px;" name="form_tcp_send">'.$form_tcp_send.'</textarea>';
// SNMP module, tcp_send contains the SNMP version
if ($form_id_tipo_modulo >= 15 && $form_id_tipo_modulo <= 18) {
echo '<td class="datos2"><textarea cols=20 style="height:55px;" name="form_tcp_send_void"></textarea>';
} else {
echo '<td class="datos2"><textarea cols=20 style="height:55px;" name="form_tcp_send">'.$form_tcp_send.'</textarea>';
}
echo '<td class="datos2" valign="top">'.__('TCP receive')."</td>";
echo '<td class="datos2"><textarea cols=20 style="height:55px;" name="form_tcp_rcv">'.$form_tcp_rcv.'</textarea>';
echo '</tr>';