mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed module types check
This commit is contained in:
parent
881a8e6a01
commit
24d1522bd0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user