lib/cloudstack-nagios/commands/router.rb in cloudstack-nagios-0.12.0 vs lib/cloudstack-nagios/commands/router.rb in cloudstack-nagios-0.12.1
- old
+ new
@@ -119,10 +119,10 @@
on host do |h|
max = capture("cat #{netfilter_path}nf_conntrack_max").to_i
current = capture("cat #{netfilter_path}nf_conntrack_count").to_i
end
data = check_data(max, current, options[:warning], options[:critical])
- puts "CONNTRACK_CONNECTIONS #{RETURN_CODES[data[0]]} - usage = #{data[1]}% | usage=#{data[1]}% current=#{current.round(0)} max=#{max.round(0)}"
+ puts "CONNTRACK_CONNECTIONS #{RETURN_CODES[data[0]]} - usage = #{data[1]}% (#{current.round(0)}/#{max.round(0)}) | usage=#{data[1]}% current=#{current.round(0)} max=#{max.round(0)}"
exit data[0]
rescue => e
exit_with_failure(e)
end
end