Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added the check_memory script

  • Loading branch information...
commit a76dec4d1b607a802c68f9d35d214e6c08b47926 1 parent 82a11ab
draper authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 check_memory.rb
View
4 check_memory.rb
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.