> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allquiet.app/llms.txt
> Use this file to discover all available pages before exploring further.

# All Quiet Cron Job Monitor

> Use our Cron Job Monitor - your built-in dead man's switch - to watch your cron jobs' health and alert you the moment a job fails to run or is delayed.

<Info>Setup time: 2 Min</Info>

Set up our All Quiet Cron Job Monitor to ensure your scheduled jobs, scripts, and automations run on time. The monitor is set up within a few clicks. After setting it up, we'll create incidents to if a job fails to run or is delayed.

## 1. Create All Quiet Cron Job Monitor

Sign in to your All Quiet account.

### Create Integration

1. Click on the `Inbound Integrations` tab.
2. Click on `+ Create`.

<img className="CronJob_Create" src="https://mintcdn.com/allquiet/DD3fFjQiex-iZR__/images/cron-job-monitoring/01.png?fit=max&auto=format&n=DD3fFjQiex-iZR__&q=85&s=6b8827920489134ee363e3bbec10423d" width="2740" height="678" data-path="images/cron-job-monitoring/01.png" />

### Select Cron Job Monitor as the integration's type

1. Enter a `Display Name` for your integration, e.g. "Cron Job Monitor".
   <Tip>Pick a name that makes it obvious which service the monitor belongs to.</Tip>

2. Select a `Team`.

3. Select `Cron Job Monitor` as the integration's type.

4. Click `Create Inbound Integration`.

<img className="CronJob_Select" src="https://mintcdn.com/allquiet/DD3fFjQiex-iZR__/images/cron-job-monitoring/02.png?fit=max&auto=format&n=DD3fFjQiex-iZR__&q=85&s=d292b9e2eaff8c949fd2519533842b31" width="2138" height="2233" data-path="images/cron-job-monitoring/02.png" />

## 2. Configure your Cron Job Monitor

Once you've set up the "Cron Job Monitor", it's time to configure it. This can be done on the the integration's page.

1. Here you find the unique Webhook URL that you need to ping.
2. Add a `Cron Expression` to define when you'd expect your cron job to run and ping the Webhook URL.
3. Add the cron job's timezone.
4. You may add a `Gace Period`. If the cron job is delayed but still finished and sending a ping to our Webhook URL within a `Grace Period`, we will not create an incident.
5. Define a severity for incidents being created if the cron job monitor fails.
6. `Save` your settings.
7. As you can see the monitor is not activated yet.

<img className="CronJob_setup" src="https://mintcdn.com/allquiet/DD3fFjQiex-iZR__/images/cron-job-monitoring/03.png?fit=max&auto=format&n=DD3fFjQiex-iZR__&q=85&s=523f1f280f3105435de02e4ae0577c6c" width="2144" height="2362" data-path="images/cron-job-monitoring/03.png" />

<Check>Your monitor is now set up and ready to be activated.</Check>

### Start Cron Job Monitoring

To start monitoring, ping the Webhook URL you retrieved in the previous step.
On the bottom of the page, you will see

1. The last time a ping was received.
2. The next time a ping is expected based on your settings. If we don't receive a ping until then, we'll create an All Quiet incident and notify you.
3. After the second ping, we will start showing the current status of the Monitor
   * `On Time` if the last cron job was finished within the expected timeframe (plus optional grace period)
   * `Overdue` if we created an incident because we didn't receive the latest ping on time.

<img className="HTTPMonitor_test" src="https://mintcdn.com/allquiet/DD3fFjQiex-iZR__/images/cron-job-monitoring/04.png?fit=max&auto=format&n=DD3fFjQiex-iZR__&q=85&s=bbf9c77752bab5b3fbc54bbfe91c0418" width="2146" height="676" data-path="images/cron-job-monitoring/04.png" />

<Check>Your monitor is active.</Check>
<Note> After changing your monitor's settings, you’ll need to reactivate it by sending a new ping to the Webhook URL.</Note>
