From e65de54f398d08cc29f1bce6eef61cb51c30fa65 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 10 Feb 2020 15:46:04 +0100 Subject: [PATCH] Fixed when you select 'show all modules' and the module is not from the interface --- .../agentes/agent_wizard.snmp_interfaces_explorer.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/godmode/agentes/agent_wizard.snmp_interfaces_explorer.php b/pandora_console/godmode/agentes/agent_wizard.snmp_interfaces_explorer.php index 40c4e7fc84..3c197ac4a1 100644 --- a/pandora_console/godmode/agentes/agent_wizard.snmp_interfaces_explorer.php +++ b/pandora_console/godmode/agentes/agent_wizard.snmp_interfaces_explorer.php @@ -259,6 +259,11 @@ if ($create_modules) { $name_array = explode('::', $oid_array[0]); $name = $ifname.'_'.$name_array[1]; + // If you select "show all modules" and the module is not from the interface. + if (!array_key_exists($name_array[1], $interfaces[$id])) { + continue; + } + // Clean the name. $name = str_replace('"', '', $name);