Cron jobs in openITCOCKPIT offer users the ability to run PHP scripts at defined time intervals. These PHP scripts (called tasks) are part of the openITCOCKPIT core or modules.
To create a new cron job, first select the location of the task you want to perform under “Plugin”. The available tasks will then be displayed in the next drop-down list.
Cron jobs are an important component of how openITCOCKPIT functions and so should only be edited by experienced users.
|Enhancements||Task to be executed|
|Tasks||Task to be executed|
|Interval||Interval (in minutes) at which the task should be executed|
|Activated||If the task is to be executed, this checkbox must be ticked.|
Contrary to what the name suggests, openITCOCKPIT's cron jobs are not executed via the
cron daemon, but rather use the systemd timer function.
systemctl status oitc_cronjobs.timer
Executing cron jobs¶
All cron jobs can be force executed using the command
oitc cronjobs -f
-f parameter forces all cron jobs to run, regardless of the configured interval.