minor fix

This commit is contained in:
fbsanchez 2021-02-04 13:18:40 +01:00
parent 3ad3e7e562
commit d43507ff53
1 changed files with 2 additions and 1 deletions

View File

@ -978,6 +978,7 @@ class AgentWizard extends HTML
// The PEN is hosted in the seventh position.
$tmpPEN = explode('.', $output_oid[0]);
$pen = $tmpPEN[7];
// Then look in DB if the PEN is registered.
$penFound = db_get_value('manufacturer', 'tpen', 'pen', $pen);
if ($penFound === false) {
@ -1045,7 +1046,7 @@ class AgentWizard extends HTML
$receivedOid = $this->snmpwalkValues(
$oidExplore,
false,
false
true
);
if (empty($receivedOid) || preg_grep('/no.*object/i', $receivedOid)) {