+

Fixed UOM in performance data

root [2011-01-17 16:13:45]
Fixed UOM in performance data
Filename
check_mem
diff --git a/check_mem b/check_mem
index 6b292d4..3dc3431 100755
--- a/check_mem
+++ b/check_mem
@@ -70,7 +70,7 @@ let MWV=MT*WM/100
 let MCV=MT*CM/100
 let SWV=ST*WS/100
 let SCV=ST*CS/100
-MSG="$MSG | mem=${MU}B;$MWV;$MCV;0;$MT swap=${SU}B;$SWV;$SCV;0;$ST"
+MSG="$MSG | mem=${MU}KB;$MWV;$MCV;0;$MT swap=${SU}KB;$SWV;$SCV;0;$ST"

 [ $RET -eq 2 ] && echo "CRITICAL - $MSG" && exit 2
 [ $RET -eq 1 ] && echo "WARNING - $MSG" && exit 1
ViewGit