diff --git a/docs/20_Checks/check_clientbackup.md b/docs/20_Checks/check_clientbackup.md index 8214abb91cc6e639b57435b0f34b297184546247..b4dae32b709e03161a5a3f202100f06a615a76e8 100644 --- a/docs/20_Checks/check_clientbackup.md +++ b/docs/20_Checks/check_clientbackup.md @@ -4,8 +4,8 @@ **check_client_backup** is a plugin to show the backup status of IML Backup. -📄 Source: <https://git-repo.iml.unibe.ch/iml-open-source/iml-backup/> -📜 License: GNU GPL 3.0 +📄 Source: <https://git-repo.iml.unibe.ch/iml-open-source/iml-backup/>\ +📜 License: GNU GPL 3.0\ 📖 Docs: see docs folder or online <https://os-docs.iml.unibe.ch/iml-backup/> ## Requirements diff --git a/docs/20_Checks/check_cronstatus.md b/docs/20_Checks/check_cronstatus.md index 19f90eedc4eb6c6748f86e9d2ce95b878dda1d99..22f04cf451951e4d83795c9ffd6f9644e5e61802 100644 --- a/docs/20_Checks/check_cronstatus.md +++ b/docs/20_Checks/check_cronstatus.md @@ -3,20 +3,60 @@ ## Introduction Show status of all Cronjobs using Axels Cronwrapper -https://github.com/axelhahn/cronwrapper -The last run of each job is verified to these conditions: +📄 Source: <https://github.com/axelhahn/cronwrapper>\ +📜 License: GNU GPL 3.0\ +📖 Docs: see docs folder or online <https://www.axel-hahn.de/docs/cronwrapper/> + +Pre conditions: + +* The cronwrapper must be installed +* Your cronjob(s) must be changed to use the wrapper, eg.\ + `*/60 * * * * /opt/cronwrappre.sh 60 <YOUR_COMMAND>` + +`check_cronstatus` executes the cronstatus.sh in the cronwrapper installation directory and will parse its output. + +In the cronstatus the last run of each job will be verified with these conditions: * exitcode was 0 * last run is younger than given TTL +As output you get a summary of all checks followed by more detailed status per job. + ## Syntax -`$ check_cronstatus [-h] [SCRIPT]` +`$ check_cronstatus [-h]` + +or + +`$ check_cronstatus [SCRIPT]` + ### Parameters ```text +______________________________________________________________________ + +CHECK_CRONSTATUS +v2.4 + +(c) Institute for Medical Education - University of Bern +Licence: GNU GPL 3 + +https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_cronstatus.html +______________________________________________________________________ + +Show status of all Cronjobs using Axels Cronwrapper +https://github.com/axelhahn/cronwrapper + +The last run of each job is verified to these conditions: +- exitcode was 0 +- last run is younger than given TTL + + +SYNTAX: +check_cronstatus [-h] [SCRIPT] + OPTIONS: -h or --help show this help. @@ -25,6 +65,7 @@ PARAMETERS: SCRIPT optional: custom status script default: /opt/cronwrapper/cronstatus.sh + ``` ## Examples @@ -34,3 +75,4 @@ PARAMETERS: `check_cronstatus /usr/share/cronwrapper/cronstatus.sh` The Check of cronjobs with custom loction. + The parameter must reference cronstatus.sh with its full path \ No newline at end of file diff --git a/inc_pluginfunctions b/inc_pluginfunctions index f8e1c43917c6e1e2e338dac435c84274b94d931f..8b7a9fdac07e3027c63f13e78f0c764939786962 100644 --- a/inc_pluginfunctions +++ b/inc_pluginfunctions @@ -573,7 +573,7 @@ function ph.execIfReady(){ ph.showImlHelpHeader(){ local _html; _html=$(basename $0) - _html=${_self//\-/_}.html + _html=${_html//\-/_}.html cat <<EOF ______________________________________________________________________