Add support for ignore_unknown.

If tagente_modulo.ignore_unknown is set to 1, a module will never become
unknown.
This commit is contained in:
Ramon Novoa 2023-12-11 18:35:34 +01:00
parent 9e8ba22f15
commit e85604775b
1 changed files with 2 additions and 0 deletions

View File

@ -7036,7 +7036,9 @@ sub pandora_module_unknown ($$) {
WHERE tagente.id_agente = tagente_estado.id_agente
AND tagente_modulo.id_agente_modulo = tagente_estado.id_agente_modulo
AND tagente.disabled = 0
AND tagente.ignore_unknown = 0
AND tagente_modulo.disabled = 0
AND tagente_modulo.ignore_unknown = 0
AND ((tagente_modulo.id_tipo_modulo IN (21, 22, 23) AND tagente_estado.estado <> 0)
OR (' .
($pa_config->{'unknown_updates'} == 0 ?