Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Commits
1dae6acd
Commit
1dae6acd
authored
4 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update check_memory: set critical swap level from 5 to 50%
parent
94708eca
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_memory
+3
-2
3 additions, 2 deletions
check_memory
with
3 additions
and
2 deletions
check_memory
+
3
−
2
View file @
1dae6acd
...
...
@@ -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-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)
# 2021-03-24 v1.5 <axel.hahn@iml.unibe.ch> increase Swap critical limit 5 --> 50
# ======================================================================
...
...
@@ -52,7 +53,7 @@ if [ "$1" = "-h" ]; then
-w Warning level for RAM usage [%]; default: 75
-c Critical level for RAM usage; default: 90
-s Critical level for SWAP usage; default: 5
-s Critical level for SWAP usage; default: 5
0
-h this help
"
exit
0
...
...
@@ -61,7 +62,7 @@ fi
# set default / override from command line params
typeset
-i
iWarnLimit
=
`
ph.getValueWithParam 75 w
"
$@
"
`
typeset
-i
iCriticalLimit
=
`
ph.getValueWithParam 90 c
"
$@
"
`
typeset
-i
iCriticalSwap
=
`
ph.getValueWithParam 5
s
"
$@
"
`
typeset
-i
iCriticalSwap
=
`
ph.getValueWithParam 5
0
s
"
$@
"
`
# --- RAM
typeset
-i
ramTotal
=
`
getMemvalue MemTotal
`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment