mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Fixed snmp interface wizard for switch dell powerconnect
This commit is contained in:
parent
04c271ae61
commit
18ba88dae2
@ -106,10 +106,17 @@ if ($snmpwalk) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists(1,$data)) {
|
if (array_key_exists(1,$data)) {
|
||||||
$interfaces[$keydata2[1]][$keydata2[0]]['type'] = $data[0];
|
// Fixed for switch dell powerconnect
|
||||||
$interfaces[$keydata2[1]][$keydata2[0]]['value'] = $data[1];
|
if(count($data) > 2) {
|
||||||
}
|
$interfaces[$keydata2[1]][$keydata2[0]]['type'] = $data[0];
|
||||||
else {
|
unset($data[0]);
|
||||||
|
$interfaces[$keydata2[1]][$keydata2[0]]['value'] = implode(": ",$data);
|
||||||
|
} else {
|
||||||
|
$interfaces[$keydata2[1]][$keydata2[0]]['type'] = $data[0];
|
||||||
|
$interfaces[$keydata2[1]][$keydata2[0]]['value'] = $data[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
$interfaces[$keydata2[1]][$keydata2[0]]['type'] = '';
|
$interfaces[$keydata2[1]][$keydata2[0]]['type'] = '';
|
||||||
$interfaces[$keydata2[1]][$keydata2[0]]['value'] = $data[0];
|
$interfaces[$keydata2[1]][$keydata2[0]]['value'] = $data[0];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user