lib/cloudstack-nagios/commands/capacity.rb in cloudstack-nagios-0.8.2 vs lib/cloudstack-nagios/commands/capacity.rb in cloudstack-nagios-0.9.0

- old
+ new

@@ -23,10 +23,10 @@ no_commands do def capacity_check(zone, type) cap = client.list_capacity(type: type, zone: zone).first data = check_data(cap['capacitytotal'].to_f, cap['capacityused'].to_f, options[:warning], options[:critical]) - puts "#{CAPACITY_TYPES[type][:name]} #{RETURN_CODES[data[0]]} - usage = #{data[1]}% | usage=#{cap['capacityused']} usage=#{data[1]}%" + puts "#{CAPACITY_TYPES[type][:name]} #{RETURN_CODES[data[0]]} - usage = #{data[1]}% | usage=#{cap['capacityused']} usage_perc=#{data[1]}%" exit data[0] end end end \ No newline at end of file