mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Fixed the normal and not init agent counters
This commit is contained in:
parent
25d1cb0478
commit
2b8b2d5d7d
@ -1143,11 +1143,8 @@ function groups_agent_not_init ($group_array) {
|
|||||||
$count = db_get_sql ("SELECT COUNT(*)
|
$count = db_get_sql ("SELECT COUNT(*)
|
||||||
FROM tagente
|
FROM tagente
|
||||||
WHERE disabled = 0
|
WHERE disabled = 0
|
||||||
AND critical_count = 0
|
AND (total_count = 0
|
||||||
AND warning_count = 0
|
OR total_count = notinit_count)
|
||||||
AND unknown_count = 0
|
|
||||||
AND normal_count = 0
|
|
||||||
AND (notinit_count > 0 OR total_count = 0)
|
|
||||||
AND id_grupo IN $group_clause");
|
AND id_grupo IN $group_clause");
|
||||||
|
|
||||||
return $count > 0 ? $count : 0;
|
return $count > 0 ? $count : 0;
|
||||||
@ -1212,8 +1209,10 @@ function groups_agent_ok ($group_array) {
|
|||||||
$count = db_get_sql ("SELECT COUNT(*)
|
$count = db_get_sql ("SELECT COUNT(*)
|
||||||
FROM tagente
|
FROM tagente
|
||||||
WHERE tagente.disabled = 0
|
WHERE tagente.disabled = 0
|
||||||
AND normal_count > 0
|
AND critical_count = 0
|
||||||
AND normal_count = total_count
|
AND warning_count = 0
|
||||||
|
AND unknown_count = 0
|
||||||
|
AND normal_count > 0
|
||||||
AND id_grupo IN $group_clause");
|
AND id_grupo IN $group_clause");
|
||||||
|
|
||||||
|
|
||||||
|
@ -92,7 +92,10 @@ function tags_agent_ok ($id_tag) {
|
|||||||
AND tagente.disabled=0
|
AND tagente.disabled=0
|
||||||
AND tagente_modulo.id_agente_modulo = ttag_module.id_agente_modulo
|
AND tagente_modulo.id_agente_modulo = ttag_module.id_agente_modulo
|
||||||
AND ttag_module.id_tag = $id_tag
|
AND ttag_module.id_tag = $id_tag
|
||||||
AND normal_count=total_count");
|
AND critical_count = 0
|
||||||
|
AND warning_count = 0
|
||||||
|
AND unknown_count = 0
|
||||||
|
AND normal_count > 0");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user