There's more...

We defined commands that will be executed at regular intervals, and the logging of results is also activated, but we can't yet tell whether a cron job was executed successfully or whether it failed unless we log into the server and check the logs every day manually. To solve the problem of monotonic manual labor, you can monitor the cron jobs automatically using the Healthchecks service (https://healthchecks.io/).

With Healthchecks, you would modify the crontab so that it pings a specific URL after each successful job is executed. If the script fails and exits with a non-zero code, Healthchecks will know that it was not executed successfully. Every day, you will get an overview of cron jobs and their execution statuses by email.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.245.196