Skip to content
Snippets Groups Projects
Commit dcf41939 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

increase Swap critical limit 5 --> 50

parent 0add6754
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
# 2020-04-28 v1.2 <axel.hahn@iml.unibe.ch> allow small swap usage before critical; update output RAM + Swap usage # 2020-04-28 v1.2 <axel.hahn@iml.unibe.ch> allow small swap usage before critical; update output RAM + Swap usage
# 2020-07-08 v1.3 <axel.hahn@iml.unibe.ch> FIX: set "ph." instead "ps." # 2020-07-08 v1.3 <axel.hahn@iml.unibe.ch> FIX: set "ph." instead "ps."
# 2020-07-16 v1.4 <axel.hahn@iml.unibe.ch> FIX: add unit MB in the performance data (see #3939) # 2020-07-16 v1.4 <axel.hahn@iml.unibe.ch> FIX: add unit MB in the performance data (see #3939)
# 2021-03-24 v1.5 <axel.hahn@iml.unibe.ch> increase Swap critical limit 5 --> 50
# ====================================================================== # ======================================================================
...@@ -52,7 +53,7 @@ if [ "$1" = "-h" ]; then ...@@ -52,7 +53,7 @@ if [ "$1" = "-h" ]; then
-w Warning level for RAM usage [%]; default: 75 -w Warning level for RAM usage [%]; default: 75
-c Critical level for RAM usage; default: 90 -c Critical level for RAM usage; default: 90
-s Critical level for SWAP usage; default: 5 -s Critical level for SWAP usage; default: 50
-h this help -h this help
" "
exit 0 exit 0
...@@ -61,7 +62,7 @@ fi ...@@ -61,7 +62,7 @@ fi
# set default / override from command line params # set default / override from command line params
typeset -i iWarnLimit=` ph.getValueWithParam 75 w "$@"` typeset -i iWarnLimit=` ph.getValueWithParam 75 w "$@"`
typeset -i iCriticalLimit=` ph.getValueWithParam 90 c "$@"` typeset -i iCriticalLimit=` ph.getValueWithParam 90 c "$@"`
typeset -i iCriticalSwap=` ph.getValueWithParam 5 s "$@"` typeset -i iCriticalSwap=` ph.getValueWithParam 50 s "$@"`
# --- RAM # --- RAM
typeset -i ramTotal=` getMemvalue MemTotal` typeset -i ramTotal=` getMemvalue MemTotal`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment