|
|
||
|---|---|---|
| app | ||
| check_mk_plugin | ||
| README.md | ||
README.md
Jobwatch
(C) 2022, Michael Höß, MIT-Licensed
What is jobwatch
If you just want to execute a simple shell-script via cron every couple of hour, often only a few lines of code are required.
But if you want to ensure the script really run, in the required interval, completed without error, you have to add a lot of plumping code.
jobwatch helps to migitate this problem. It wraps the execution of your script, and does all the rest for you, by providing output, which can be fed to CheckMK then Agent-Plugin-Mechanism.
jobwatch
- checks for required exit-codes
- searches through the output of your script via regex to classify certain keywords as WARN or CRIT
- let you define the required run-interval
Simply add a .job-file into /etc/jobwatch.d where you defined all of this, call you script via jobwatch -j job in the crontab and you are done.
TBD:
- document deployment
- document job-file (see included sample)
- feed logoutput to CheckMK
- redirect script-output to a logfile via Config
- more metrics (last-success-ful run )