BUG/MINOR: promex: fix backend_agg_check_status

When a server is in maintenance, the check.status is no longer updated.
Therefore, we shouldn't consider check.status if the checks are not active. This
check was properly implemented in the haproxy_server_check_status metric, but
wasn't carried over to backend_agg_check_status, which introduced
inconsistencies between the two metrics.

[cf: This patch must be backported as far as 2.4]

(cherry picked from commit 3790eb4f855e8897277193e83e4a80ba3ee09b4d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed