Merge branch 'ent-6264-10617-No-se-crean-las-graficas-Interface-Information-SNMP' into 'develop'

Fixed module types check

See merge request artica/pandorafms!3417
This commit is contained in:
Alejandro Fraguas 2020-08-31 13:19:45 +02:00
commit d2df6fa00a
1 changed files with 5 additions and 0 deletions

View File

@ -2985,6 +2985,11 @@ function agents_get_network_interfaces($agents=false, $agents_filter=false)
$accepted_module_types[] = $generic_proc; $accepted_module_types[] = $generic_proc;
} }
$remote_snmp = (int) db_get_value('id_tipo', 'ttipo_modulo', 'nombre', 'remote_snmp');
if ($remote_snmp) {
$accepted_module_types[] = $remote_snmp;
}
if (empty($accepted_module_types)) { if (empty($accepted_module_types)) {
$accepted_module_types[] = 0; $accepted_module_types[] = 0;
// No modules will be returned // No modules will be returned