#13768 fix snmp module plugin

This commit is contained in:
Jonathan 2024-05-22 12:08:09 +02:00
parent b7527d3c58
commit e529f3a4de
1 changed files with 8 additions and 0 deletions

View File

@ -1659,6 +1659,14 @@ class AgentWizard extends HTML
$k = $matches[1].'_'.$matches[2].'-'.$matches[3]; $k = $matches[1].'_'.$matches[2].'-'.$matches[3];
} }
} else { } else {
if (preg_match('/module-id_plugin/', $k) > 0) {
$result[$value]['id_plugin'] = $data['module-id_plugin-'.$key];
}
if (preg_match('/module-id_modulo/', $k) > 0) {
$result[$value]['id_modulo'] = $data['module-id_modulo-'.$key];
}
if (preg_match('/module-value/', $k) > 0 if (preg_match('/module-value/', $k) > 0
&& empty($data[$k]) === false && empty($data[$k]) === false
) { ) {