lib/cloudstack-nagios/commands/router.rb in cloudstack-nagios-0.11.1 vs lib/cloudstack-nagios/commands/router.rb in cloudstack-nagios-0.11.2
- old
+ new
@@ -70,10 +70,11 @@
match = proc_out.match(/.*\s(\d+)%\s.*/)
if match
usage = match[1]
data = check_data(100, usage, options[:warning], options[:critical])
puts "DISK_USAGE #{RETURN_CODES[data[0]]} (Partition #{options[:partition]}) - usage = #{data[1]}% | usage=#{data[1]}%"
+ exit data[0]
else
puts "DISK_USAGE UNKNOWN"
end
rescue => e
exit_with_failure(e)
@@ -122,6 +123,6 @@
host
end
end
-end
\ No newline at end of file
+end