Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Server Monitor Laravel Package

spatie/laravel-server-monitor

Monitor the health of your servers from Laravel. Includes built-in checks (disk, memory, processes, etc.), easy custom checks, and notifications via Slack or email when something goes wrong.

View on GitHub
Deep Wiki
Context7

title: Notifications and events weight: 5

The package notifies you if certain events take place when running checks on your server. You can specify which channels the notifications for certain events should be sent in the config file. If you don't want any notifications for a particular event, just pass an empty array. Out of the box slack and mail are supported. If you want to use another channel or modify the notifications, read the section on customizing notifications.

Throttling notifications

To avoid to burying you in notifications when a check fails or emits a warning, we throttle notifications for such events.

By default we only send you one notification an hour per warning or failure per check. When a check succeeds again we'll notify you as soon as possible.

In the config file your can customize the throttling behaviour by passing a differente value to throttle_failing_notifications_for_minutes.

Available notifications

CheckFailed

Spatie\ServerMonitor\Notifications\Notifications\CheckFailed

This notification is sent when calling $this-check->fail() in a check. This also causes the Spatie\ServerMonitor\Events\CheckFailed-event to fire.

This is how the notification looks in Slack.

CheckWarning

Spatie\ServerMonitor\Notifications\Notifications\CheckWarning

This notification is sent when calling $this-check->warn() in a check. This also causes the Spatie\ServerMonitor\Events\CheckWarning-event to fire.

The notification looks like this in Slack.

CheckRestored

Spatie\ServerMonitor\Notifications\Notifications\CheckRestored

This notification is sent when a check succeeds after it had been failing. The Spatie\ServerMonitor\Events\CheckRestored event will be fired as well.

The notification looks like this in Slack.

CheckSucceeded

Spatie\ServerMonitor\Notifications\Notifications\CheckSucceeded

This notification is sent when calling $this-check->succeed() in a check. This also fires the Spatie\ServerMonitor\Events\CheckSucceeded-event.

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

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport