root commited on 2011-01-17 16:07:17
Showing 1 changed files, with 6 additions and 0 deletions.
... | ... |
@@ -66,6 +66,12 @@ then |
66 | 66 |
[ $DEBUG -eq 1 ] && echo "Swap : $SU / $ST => $SR%" |
67 | 67 |
fi |
68 | 68 |
|
69 |
+let MWV=MT*WM/100 |
|
70 |
+let MCV=MT*CM/100 |
|
71 |
+let SWV=ST*WS/100 |
|
72 |
+let SCV=ST*CS/100 |
|
73 |
+MSG="$MSG | mem=${MU}B;$MWV;$MCV;0;$MT swap=${SU}B;$SWV;$SCV;0;$ST" |
|
74 |
+ |
|
69 | 75 |
[ $RET -eq 2 ] && echo "CRITICAL - $MSG" && exit 2 |
70 | 76 |
[ $RET -eq 1 ] && echo "WARNING - $MSG" && exit 1 |
71 | 77 |
echo "OK - $MSG" |
72 | 78 |