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

Merge branch 'fix-check-update-debian' into 'master'

add docs

See merge request !42
parents 0a3a484f 700ebf84
No related branches found
No related tags found
1 merge request!42add docs
......@@ -47,7 +47,7 @@ ______________________________________________________________________
check cpu usage and cpu wait
Cpu infos are taken from output of top command.
Oh higher cpu usage it can show processes that cause cpu waits and
On higher cpu usage it can show processes that cause cpu waits and
with most cpu consumption.
SYNTAX:
......
......@@ -43,7 +43,7 @@ It works for Centos and Debian/ Ubuntu.
If the reboot is required:
* On Centos it shows the kernel number that will be installed,
* On Debian7 Ubuntu it shows the packages that require the reboot,
* On Debian/ Ubuntu it shows the packages that require the reboot,
SYNTAX:
$(basename $0)
......@@ -76,7 +76,7 @@ case $distro in
"centos")
currentkernel=$(uname -r)
out=$(rpm -q --last kernel | head -1 | fgrep $currentkernel)
out=$(rpm -q --last kernel | head -1 | grep -F $currentkernel)
if [ -z "$out" ]; then
ph.setStatus "warning"
ph.status "[$distro] need to reboot for kernel $(rpm -q --last kernel | head -1) (current: $currentkernel)"
......
# Check Reboot required
## Introduction
Check if a reboot is required.
It works for Centos and Debian/ Ubuntu.
If the reboot is required:
* On Centos it shows the kernel number that will be installed,
* On Debian/ Ubuntu it shows the packages that require the reboot,
## Syntax
`$ check_reboot_required [-h]`
### Parameters
```text
OPTIONS:
-h or --help show this help.
PARAMETERS:
None
```
## Examples
`check_cronstatus`
The Check of cronjobs with the default loction does not require any parameter
`check_cronstatus /usr/share/cronwrapper/cronstatus.sh`
The Check of cronjobs with custom loction.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment