bin/check-elb-nodes.rb in sensu-plugins-aws-5.1.0 vs bin/check-elb-nodes.rb in sensu-plugins-aws-6.0.0

- old
+ new

@@ -123,10 +123,12 @@ message << "; Unknown: #{state['Unknown'].count}" if state['Unknown'].count > 0 message << " (#{state['Unknown'].join(', ')})" end - if state['Unknown'].count == num_instances + if num_instances.zero? + critical 'ELB has no nodes' + elsif state['Unknown'].count == num_instances unknown 'All nodes in unknown state' elsif state['InService'].count == 0 critical message elsif config[:crit_under] > 0 && config[:crit_under] >= state['InService'].count critical message