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
6707cd46
Commit
6707cd46
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add docs for check_proc_ressources
parent
0d63d839
No related branches found
No related tags found
1 merge request
!227
check_proc_ressources - update check; add doc page
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/20_Checks/_index.md
+1
-1
1 addition, 1 deletion
docs/20_Checks/_index.md
docs/20_Checks/check_proc_ressources.md
+84
-0
84 additions, 0 deletions
docs/20_Checks/check_proc_ressources.md
with
85 additions
and
1 deletion
docs/20_Checks/_index.md
+
1
−
1
View file @
6707cd46
...
...
@@ -38,7 +38,7 @@ There is one include script used by all checks:
*
[
check_packages2install
](
check_packages2install.md
)
*
[
check_php-fpm-status
](
check_php-fpm-status.md
)
*
[
check_proc_mem
](
check_proc_mem.md
)
*
check_proc_ressources
*
[
check_proc_ressources
](
check_proc_ressources.md
)
*
check_proc_zombie
*
[
check_psqlserver
](
check_psqlserver.md
)
*
[
check_rearbackup
](
check_rearbackup.md
)
...
...
This diff is collapsed.
Click to expand it.
docs/20_Checks/check_proc_ressources.md
0 → 100644
+
84
−
0
View file @
6707cd46
# Check process resources regarding cpu and memory
## Introduction
Show processes that consume the most memory or cpu.
You get a list with usage, process id and process
## Requirements
Nothing special.
## Syntax
```
txt
______________________________________________________________________
CHECK_PROC_RESSOURCES
v1.3
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_proc_ressources.html
______________________________________________________________________
SYNTAX:
check_proc_ressources -m METHOD [-w WARNLIMIT] [-c CRITICALLIMIT]
EXAMPLE:
-h, --help
show help
-c, --critical VALUE
critical value; defaults:
* cpu 90
* mem 90
-m, --mode VALUE
identify what to check; one of cpu|mem
Remark: for cpu the given limits are multiplicated with count of cpu.
-w. --warning VALUE
warning limit value; defaults:
* cpu 70
* mem 70
EXAMPLE:
check_proc_ressources -m mem -w 50 -c 70
Show processes consuming more than 50% of memory; mark as critical
when using 70% and more.
```
## Examples
### CPU check
`./check_proc_ressources -m cpu -w 50 -c 70`
returns
```
txt
OK: all processes below warning limit 200 % Cpu .. (and critical limit 280 %)
Cpus detected: 4
```
### Memory check
`./check_proc_ressources -m mem -w 10 -c 70`
returns
```
txt
WARNING: 1 processes use 10 % .. 70 % Memory
Level Usage process id process
-----------------------------------------------------
Warning 10.9 % Memory 3807 pamac-manager
MemTotal: 16135088 kB
MemFree: 1420576 kB
MemAvailable: 3913212 kB
Cached: 4560964 kB
```
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