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:
commit
d2df6fa00a
|
@ -2985,6 +2985,11 @@ function agents_get_network_interfaces($agents=false, $agents_filter=false)
|
|||
$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)) {
|
||||
$accepted_module_types[] = 0;
|
||||
// No modules will be returned
|
||||
|
|
Loading…
Reference in New Issue