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
34e3e59f
Commit
34e3e59f
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
sort: write failed: 'standard output': Broken pipe
parent
6bb5fc82
No related branches found
No related tags found
1 merge request
!174
sort: write failed: 'standard output': Broken pipe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
check_memory
+7
-2
7 additions, 2 deletions
check_memory
docs/20_Checks/check_memory.md
+1
-1
1 addition, 1 deletion
docs/20_Checks/check_memory.md
with
8 additions
and
3 deletions
check_memory
+
7
−
2
View file @
34e3e59f
...
...
@@ -26,12 +26,13 @@
# 2022-03-10 v1.7 <axel.hahn@iml.unibe.ch> add cli param -p; update help
# 2023-02-13 v1.8 <axel.hahn@unibe.ch> shell fixes
# 2023-07-28 v1.9 <axel.hahn@unibe.ch> update help page
# 2023-09-14 v1.10 <axel.hahn@unibe.ch> fix sort: write failed: 'standard output': Broken pipe
# ======================================================================
.
"
$(
dirname
$0
)
/inc_pluginfunctions"
self_APPVERSION
=
1.
9
self_APPVERSION
=
1.
10
# ----------------------------------------------------------------------
# FUNCTIONS
...
...
@@ -152,7 +153,11 @@ grep -E "^(Mem|Cache|Buffers|Swap|Slab|SReclaimable)" "/proc/meminfo"
if
[
$ramUsage
-gt
$iMinRamUsageToShowProcesses
]
;
then
echo
echo
"RAM usage is higher
$iMinRamUsageToShowProcesses
percent ... showing most consuming processes:"
ps aux |
head
-1
;
ps aux |
sort
-nrk
4 |
head
-n
5
ps aux |
head
-1
# sort: write failed: 'standard output': Broken pipe
# ps aux | sort -nrk 4 | head -n 5
ps aux |
sort
-nrk
4 |
sed
-n
"1,5p"
fi
# --- performance data
...
...
This diff is collapsed.
Click to expand it.
docs/20_Checks/check_memory.md
+
1
−
1
View file @
34e3e59f
...
...
@@ -29,7 +29,7 @@ This plugin sends all values as performance data.
______________________________________________________________________
CHECK_MEMORY
v1.
9
v1.
10
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
...
...
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