diff --git a/pandora_console/include/class/AgentWizard.class.php b/pandora_console/include/class/AgentWizard.class.php index 1600aab4b6..023f7f138f 100644 --- a/pandora_console/include/class/AgentWizard.class.php +++ b/pandora_console/include/class/AgentWizard.class.php @@ -3572,7 +3572,12 @@ class AgentWizard extends HTML if ($full_output === true) { $output[] = $key.' = '.$oid_unit; } 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); $output[$index[0]] = str_replace('"', '', ($tmp[1] ?? '')); }