Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Commits
a81a1268
Commit
a81a1268
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
check_cronjobs: add more details
parent
011d2dd6
No related branches found
No related tags found
1 merge request
!266
Update docs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/20_Checks/check_cronstatus.md
+45
-3
45 additions, 3 deletions
docs/20_Checks/check_cronstatus.md
with
45 additions
and
3 deletions
docs/20_Checks/check_cronstatus.md
+
45
−
3
View file @
a81a1268
...
@@ -3,20 +3,60 @@
...
@@ -3,20 +3,60 @@
## Introduction
## Introduction
Show status of all Cronjobs using Axels Cronwrapper
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
*
exitcode was 0
*
last run is younger than given TTL
*
last run is younger than given TTL
As output you get a summary of all checks followed by more detailed status per job.
## Syntax
## Syntax
`$ check_cronstatus [-h] [SCRIPT]`
`$ check_cronstatus [-h]`
or
`$ check_cronstatus [SCRIPT]`
### Parameters
### Parameters
```
text
```
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:
OPTIONS:
-h or --help show this help.
-h or --help show this help.
...
@@ -25,6 +65,7 @@ PARAMETERS:
...
@@ -25,6 +65,7 @@ PARAMETERS:
SCRIPT optional: custom status script
SCRIPT optional: custom status script
default: /opt/cronwrapper/cronstatus.sh
default: /opt/cronwrapper/cronstatus.sh
```
```
## Examples
## Examples
...
@@ -34,3 +75,4 @@ PARAMETERS:
...
@@ -34,3 +75,4 @@ PARAMETERS:
`check_cronstatus /usr/share/cronwrapper/cronstatus.sh`
`check_cronstatus /usr/share/cronwrapper/cronstatus.sh`
The Check of cronjobs with custom loction.
The Check of cronjobs with custom loction.
The parameter must reference cronstatus.sh with its full path
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment