Adding and removing sites

Creating your first monitor

After you’ve set up the package you can use the monitor:create artisan command to monitor a url. Here’s how to add a monitor for

php artisan monitor:create

You will be asked if the uptime check should look for a specific string on the response. This is handy if you know a few words that appear on the url you want to monitor. If you choose to specify a string and the string is not contained in the response when checking the url, the package will consider that uptime check failed.

If the url you want to monitor starts with https:// the package will also start monitoring the ssl certificate of your site.

You’ve just set up your first monitor. Congratulations! The package will now send you notifications when your monitor fails and when it is restored.

Read the high level overview section to learn how the uptime checking works in detail.

Instead of using the monitor:create command you may also manually create a row in the monitors table. Here’s a description of all the fields in that table.

Removing a monitor

You can remove a monitor by running monitor:delete. Here’s how to delete the monitor for

php artisan monitor:delete

This will remove the monitor for from the database. Want to delete multiple monitors at once? Just pass all the urls as comma-separated list.

Instead of using the monitor:delete command you may also manually delete the relevant row in the monitors table.