Notifications | laravel-uptime-monitor | Spatie

 SPATIE

  Laravel Uptime Monitor
=========================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-uptime-monitor](https://spatie.be/docs/laravel-uptime-monitor/v1)  Monitoring-ssl-certificates  Notifications

 Version   v3   v2   v1

 Other versions for crawler [v3](https://spatie.be/docs/laravel-uptime-monitor/v3) [v2](https://spatie.be/docs/laravel-uptime-monitor/v2) [v1](https://spatie.be/docs/laravel-uptime-monitor/v1)

- [ Introduction ](https://spatie.be/docs/laravel-uptime-monitor/v1/introduction)
- [ Postcardware ](https://spatie.be/docs/laravel-uptime-monitor/v1/postcardware)
- [ Requirements ](https://spatie.be/docs/laravel-uptime-monitor/v1/requirements)
- [ High level overview ](https://spatie.be/docs/laravel-uptime-monitor/v1/high-level-overview)
- [ Installation and setup ](https://spatie.be/docs/laravel-uptime-monitor/v1/installation-and-setup)
- [ Questions &amp; issues ](https://spatie.be/docs/laravel-uptime-monitor/v1/questions-and-issues)
- [ Changelog ](https://spatie.be/docs/laravel-uptime-monitor/v1/changelog)
- [ About us ](https://spatie.be/docs/laravel-uptime-monitor/v1/about-us)

Monitoring uptime
-----------------

- [ Adding and removing sites ](https://spatie.be/docs/laravel-uptime-monitor/v1/monitoring-uptime/getting-started)
- [ Events ](https://spatie.be/docs/laravel-uptime-monitor/v1/monitoring-uptime/events)
- [ Notifications ](https://spatie.be/docs/laravel-uptime-monitor/v1/monitoring-uptime/notifications)

Monitoring ssl certificates
---------------------------

- [ Getting started ](https://spatie.be/docs/laravel-uptime-monitor/v1/monitoring-ssl-certificates/getting-started)
- [ Events ](https://spatie.be/docs/laravel-uptime-monitor/v1/monitoring-ssl-certificates/events)
- [ Notifications ](https://spatie.be/docs/laravel-uptime-monitor/v1/monitoring-ssl-certificates/notifications)

Advanced usage
--------------

- [ Manually modifying monitors ](https://spatie.be/docs/laravel-uptime-monitor/v1/advanced-usage/manually-modifying-monitors)
- [ Customizing the uptime check ](https://spatie.be/docs/laravel-uptime-monitor/v1/advanced-usage/customizing-the-uptime-check)
- [ Customizing notifications ](https://spatie.be/docs/laravel-uptime-monitor/v1/advanced-usage/customizing-notifications)
- [ Disabling monitors ](https://spatie.be/docs/laravel-uptime-monitor/v1/advanced-usage/disabling-monitors)
- [ Using your own model ](https://spatie.be/docs/laravel-uptime-monitor/v1/advanced-usage/using-your-own-model)
- [ Monitoring from multiple locations ](https://spatie.be/docs/laravel-uptime-monitor/v1/advanced-usage/monitoring-from-multiple-locations)

      You are viewing the documentation for **an older version** of this package. You can check the version you are using with the following command:

 `                                    composer show spatie/laravel-uptime-monitor                                                                                                                                                                                                                                    `

Notifications
=============

###  On this page

1. [ CertificateCheckFailed ](#content-certificatecheckfailed)
2. [ CertificateExpiresSoon ](#content-certificateexpiressoon)
3. [ CertificateCheckSucceeded ](#content-certificatechecksucceeded)

The package can notify you when certain events take place when running the ssl certificate check. You can specify which channels the notifications for certain events should be sent in the config file. If you don't want notifications for a certain event, just pass an empty array. `slack` and `mail` channels are supported out of the box. If you want to use another channel or want to modify the notifications read the section on [customizing notifications](https://docs.spatie.be/laravel-uptime-monitor/v1/advanced-usage/customizing-notifications).

CertificateCheckFailed
--------------------------------------------------------------------------------------------------------------------------

`Spatie\UptimeMonitor\Notifications\Notifications\CertificateCheckFailed`

This notification will be sent when the `Spatie\UptimeMonitor\Events\CertificateCheckFailed` event is fired.

This is how the notification looks in Slack.

![](../../images/ssl-certificate-failed.jpg)CertificateExpiresSoon
--------------------------------------------------------------------------------------------------------------------------

`Spatie\UptimeMonitor\Notifications\Notifications\CertificateExpiresSoon`

This notification will be sent when the `Spatie\UptimeMonitor\Events\CertificateExpiresSoon` event is fired.

This is how the notification looks in Slack.

![](../../images/ssl-expiring-soon.jpg)CertificateCheckSucceeded
-----------------------------------------------------------------------------------------------------------------------------------

`Spatie\UptimeMonitor\Notifications\Notifications\CertificateCheckSucceeded`

This notification will be sent when the `Spatie\UptimeMonitor\Events\CertificateCheckSucceeded` event was fired.

Probably you don't want to be notified of this event as it is fired many many times.
