Permalink
Browse files

added the check_memory script

  • Loading branch information...
draper
draper committed Apr 12, 2010
1 parent 82a11ab commit a76dec4d1b607a802c68f9d35d214e6c08b47926
Showing with 2 additions and 2 deletions.
  1. +2 −2 check_memory.rb
View
@@ -53,8 +53,8 @@ def bytes_to_megabytes bytes
if using_performance_data
#setup the performance data
- value = total_free_memory
- uom="MB"
+ value = percent.to_i
+ uom="%"
performance_data= "#{perf_label}=#{value}#{uom};#{warning};#{critical};#{min};#{max}"
end
output_text = "#{status} Installed Memory: #{total_memory }MB Free memory = #{total_free_memory}MB #{percent.to_i}% free"

0 comments on commit a76dec4

Please sign in to comment.