cloudstack-nagios 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,7 +44,7 @@ class Check < CloudstackNagios::Base
|
|
44
44
|
free = values[2].to_i
|
45
45
|
free_b = values[7].to_i
|
46
46
|
data = check_data(total, total - free_b, options[:warning], options[:critical])
|
47
|
-
puts "MEMORY #{RETURN_CODES[data[0]]} - usage = #{data[1]}% | usage=#{data[1]}% total=#{total}M
|
47
|
+
puts "MEMORY #{RETURN_CODES[data[0]]} - usage = #{data[1]}% | usage=#{data[1]}% total=#{total}M free=#{free}M free_wo_buffers=#{free_b}M"
|
48
48
|
exit data[0]
|
49
49
|
rescue => e
|
50
50
|
exit_with_failure(e)
|
@@ -108,7 +108,7 @@ class Check < CloudstackNagios::Base
|
|
108
108
|
rbps = (rx_bytes[1].to_i - rx_bytes[0].to_i) * 8
|
109
109
|
tbps = (tx_bytes[1].to_i - tx_bytes[0].to_i) * 8
|
110
110
|
data = check_data(options[:if_speed], rbps, options[:warning], options[:critical])
|
111
|
-
puts "NETWORK #{RETURN_CODES[data[0]]} - usage = #{data[1]}% | usage=#{data[1]}% rxbps=#{rbps.round(0)}
|
111
|
+
puts "NETWORK #{RETURN_CODES[data[0]]} - usage = #{data[1]}% | usage=#{data[1]}% rxbps=#{rbps.round(0)} txbps=#{tbps.round(0)}"
|
112
112
|
exit data[0]
|
113
113
|
rescue => e
|
114
114
|
exit_with_failure(e)
|