[Secondary Groups] Fixed agent graph agent status

This commit is contained in:
fermin831 2018-03-27 17:02:41 +02:00
parent 88375a2460
commit e3341c98ce
1 changed files with 2 additions and 0 deletions

View File

@ -2637,8 +2637,10 @@ function graph_agent_status ($id_agent = false, $width = 300, $height = 200, $re
ON ta.id_agente = tasg.id_agent
WHERE
ta.disabled = 0 AND
%s
(ta.id_grupo IN (%s) OR tasg.id_group IN (%s))',
$show_not_init ? ', SUM(notinit_count) "Not init"' : '',
empty($id_agent) ? '' : "ta.id_agente = $id_agent AND",
$groups,
$groups
));