mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
2011-12-01 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* extensions/snmp_explorer.php: Fixed snmp over IE8. Fixes: #3441762 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5223 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
cf8023cd5b
commit
39d55b0847
@ -1,3 +1,9 @@
|
|||||||
|
2011-12-01 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
|
* extensions/snmp_explorer.php: Fixed snmp over IE8.
|
||||||
|
|
||||||
|
Fixes: #3441762
|
||||||
|
|
||||||
2011-12-01 Sergio Martin <sergio.martin@artica.es>
|
2011-12-01 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* extensions/insert_data.php: Improved the error message to
|
* extensions/insert_data.php: Improved the error message to
|
||||||
|
@ -23,6 +23,9 @@ require_once ('include/graphs/functions_utils.php');
|
|||||||
|
|
||||||
function snmp_explorer() {
|
function snmp_explorer() {
|
||||||
|
|
||||||
|
html_debug_print("Empieza snmp explorer", "/tmp/pp.txt");
|
||||||
|
|
||||||
|
|
||||||
$idAgent = (int) get_parameter('id_agente', 0);
|
$idAgent = (int) get_parameter('id_agente', 0);
|
||||||
$ipAgent = db_get_value('direccion', 'tagente', 'id_agente', $idAgent);
|
$ipAgent = db_get_value('direccion', 'tagente', 'id_agente', $idAgent);
|
||||||
|
|
||||||
@ -57,7 +60,7 @@ function snmp_explorer() {
|
|||||||
$snmpis = get_snmpwalk($ip_target, $snmp_version, $snmp_community, $snmp3_auth_user,
|
$snmpis = get_snmpwalk($ip_target, $snmp_version, $snmp_community, $snmp3_auth_user,
|
||||||
$snmp3_security_level, $snmp3_auth_method, $snmp3_auth_pass,
|
$snmp3_security_level, $snmp3_auth_method, $snmp3_auth_pass,
|
||||||
$snmp3_privacy_method, $snmp3_privacy_pass, 0, ".1.3.6.1.2.1");
|
$snmp3_privacy_method, $snmp3_privacy_pass, 0, ".1.3.6.1.2.1");
|
||||||
|
|
||||||
if($snmpis === false) {
|
if($snmpis === false) {
|
||||||
$snmpis = array();
|
$snmpis = array();
|
||||||
}
|
}
|
||||||
@ -230,7 +233,7 @@ function snmp_explorer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo '<span id ="none_text" style="display: none;">' . __('None') . '</span>';
|
echo '<span id ="none_text" style="display: none;">' . __('None') . '</span>';
|
||||||
echo "<form method='post' action='index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=extension&id_agente=$id_agent&id_extension=snmp_explorer'>";
|
echo "<form method='post' id='walk_form' action='index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=extension&id_agente=$id_agent&id_extension=snmp_explorer'>";
|
||||||
|
|
||||||
$table->width = '98%';
|
$table->width = '98%';
|
||||||
|
|
||||||
@ -305,8 +308,8 @@ function snmp_explorer() {
|
|||||||
|
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
|
|
||||||
echo "</tr></table>";
|
//echo "</tr></table>";
|
||||||
echo "</form>";
|
//echo "</form>";
|
||||||
|
|
||||||
if(!empty($interfaces_list)){
|
if(!empty($interfaces_list)){
|
||||||
echo '<span id="form_interfaces">';
|
echo '<span id="form_interfaces">';
|
||||||
@ -365,7 +368,7 @@ function snmp_explorer() {
|
|||||||
|
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
var inputActive = true;
|
var inputActive = true;
|
||||||
|
|
||||||
$(document).data('text_for_module', $("#none_text").html());
|
$(document).data('text_for_module', $("#none_text").html());
|
||||||
|
|
||||||
$("#id_snmp").change(snmp_changed_by_multiple_snmp);
|
$("#id_snmp").change(snmp_changed_by_multiple_snmp);
|
||||||
@ -378,13 +381,14 @@ $(document).ready (function () {
|
|||||||
$("#snmp3_options").css("display", "none");
|
$("#snmp3_options").css("display", "none");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#submit-snmp_walk").click (function () {
|
$("#walk_form").submit(function(){
|
||||||
$(this).disable ();
|
$("#submit-snmp_walk").disable ();
|
||||||
$("#oid_loading").show ();
|
$("#oid_loading").show ();
|
||||||
$("#no_snmp").hide ();
|
$("#no_snmp").hide ();
|
||||||
$("#form_interfaces").hide ();
|
$("#form_interfaces").hide ();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function snmp_changed_by_multiple_snmp (event, id_snmp, selected) {
|
function snmp_changed_by_multiple_snmp (event, id_snmp, selected) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user