bin/metrics-haproxy.rb in sensu-plugins-haproxy-1.0.0 vs bin/metrics-haproxy.rb in sensu-plugins-haproxy-1.1.0

- old
+ new

@@ -178,10 +178,10 @@ output "#{config[:scheme]}.#{line[0]}.#{line[1]}.session_current", line[4] end if line[1] != 'BACKEND' && !line[1].nil? up_by_backend[line[0]] ||= 0 - up_by_backend[line[0]] += (line[17] == 'UP') ? 1 : 0 + up_by_backend[line[0]] += line[17].start_with?('UP') ? 1 : 0 end end up_by_backend.each_pair do |backend, count| output "#{config[:scheme]}.#{backend}.num_up", count