mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Applied fix for snmp
This commit is contained in:
parent
c7b94c8538
commit
f3272eb3df
@ -3572,7 +3572,12 @@ class AgentWizard extends HTML
|
|||||||
if ($full_output === true) {
|
if ($full_output === true) {
|
||||||
$output[] = $key.' = '.$oid_unit;
|
$output[] = $key.' = '.$oid_unit;
|
||||||
} else {
|
} else {
|
||||||
preg_match('/\.\d+$/', $key, $index);
|
$index = [];
|
||||||
|
$index[] = preg_replace('/^'.$oid.'/', '', $key);
|
||||||
|
if (empty($index) === true) {
|
||||||
|
preg_match('/\.\d+$/', $key, $index);
|
||||||
|
}
|
||||||
|
|
||||||
$tmp = explode(': ', $oid_unit);
|
$tmp = explode(': ', $oid_unit);
|
||||||
$output[$index[0]] = str_replace('"', '', ($tmp[1] ?? ''));
|
$output[$index[0]] = str_replace('"', '', ($tmp[1] ?? ''));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user