From 98750ea9ea40a70ab43873ffde169171ddc2a2ba Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Mon, 21 Aug 2023 17:05:19 +0200 Subject: [PATCH] update docs require_reboot --- docs/20_Checks/check_reboot_required.md | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/docs/20_Checks/check_reboot_required.md b/docs/20_Checks/check_reboot_required.md index 0acd157..df42859 100644 --- a/docs/20_Checks/check_reboot_required.md +++ b/docs/20_Checks/check_reboot_required.md @@ -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). +``` -- GitLab