cloudstack-nagios 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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, free=#{free}M, free_wo_buffers=#{free_b}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)}, txbps=#{tbps.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)
@@ -1,3 +1,3 @@
1
1
  module CloudstackNagios
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack-nagios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: