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

Merge branch '6468-docs-and-harmonize' into 'master'

6468 docs and harmonize

See merge request !132
parents cc716cd8 9d658ae0
No related branches found
No related tags found
1 merge request!1326468 docs and harmonize
......@@ -42,3 +42,26 @@ If there are processes with status D they will be shown (to analyze cpu waits).
check cpu usage.
It shows a warning if usage is higer 60%.
It shows critical status if usage is higer 80% or io wait is 40%
```txt
./check_cpu -w 60 -c 80 -i 40
OK: CPU-USAGE [%] 11.3 ... user: 6.2 - system: 4.1 - idle: 88.7 - wait: 0.0
Limits: usage warn at 60 .. critical at 80 .. io wait limit 40
INFO : cpu is in normal ranges.
Legend:
hwi - Time spent handling hardware interrupt routines. (Whenever a peripheral unit want attention form the CPU, it literally pulls a line, to signal the CPU to service it)
swi - Time spent handling software interrupt routines. (a piece of code, calls an interrupt routine...)
st - Time spent on involuntary waits by virtual cpu while hypervisor is servicing another processor (stolen from a virtual machine)
nice - Time spent running niced user processes (User defined priority)
wait - Time spent on waiting on IO peripherals (eg. disk)
system - Time spent in kernel space
user - Time spent in user space
idle - Time spent in idle operations
|cpu-usage=11.3;60;80;0;100 cpu-wait=0.0;;40;0;100 cpu-system=4.1;;;0;100 cpu-user=6.2;;;0;100 cpu-idle=88.7;;;0;100 cpu-nice=0.0;;;0;100 cpu-hwi=0.5;;;0;100 cpu-swi=0.5;;;0;100 cpu-st=0.0
```
......@@ -28,8 +28,25 @@ PARAMETERS:
## Examples
`check_cronstatus`
The Check of cronjobs with the default loction does not require any parameter
### No reboot needed
`check_cronstatus /usr/share/cronwrapper/cronstatus.sh`
The Check of cronjobs with custom loction.
```txt
./check_reboot_required
OK: [centos] no reboot required (kernel is up to date: 4.18.0-500.el8.x86_64)
```
### Reboot needed
On CentOs we check an updated kernel
```txt
./check_reboot_required
WARNING: [centos] need to reboot for kernel package kernel is not installed (current: 4.18.0-193.el8.x86_64)
```
### Not supported OS: unknown
```txt
./check_reboot_required
UNKNOWN: distro [manjaro] was detected but is not supported (yet).
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment