diff --git a/check_cpu b/check_cpu index 0f34408ea113bae8a26c233b06adfad5effe9c7e..d82a21933e6684acc5eb51f2a629fbd590924288 100755 --- a/check_cpu +++ b/check_cpu @@ -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: diff --git a/check_reboot_required b/check_reboot_required index 79609f709a1e4a1d0cd43cff51083b96dafd8dfe..327f0ccccd96606d4415ebbd8616f3a19033c851 100755 --- a/check_reboot_required +++ b/check_reboot_required @@ -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)" diff --git a/docs/20_Checks/check_reboot_required.md b/docs/20_Checks/check_reboot_required.md new file mode 100644 index 0000000000000000000000000000000000000000..0acd157c440ede85929a407c65eb84b652316885 --- /dev/null +++ b/docs/20_Checks/check_reboot_required.md @@ -0,0 +1,35 @@ +# 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.