Laravel Nova icon Nova Packages
S

Server Monitor

Readme

A Laravel Nova Tool for Spatie's Server Monitor Library

Packagist License Latest Stable Version Total Downloads

This Nova tool allows you to monitor server health checks such as database, redis, diskspace, elasticsearch, etc. It depends on the Spatie Server Monitor library.

screenshot of the backup tool

Quick Installation

You can install this tool into a Laravel app that uses Nova via composer:

composer require insenseanalytics/nova-server-monitor

Next, if you do not have package discovery enabled, you need to register the provider in the config/app.php file:

'providers' => [
    ...,
    Insenseanalytics\NovaServerMonitor\ToolServiceProvider::class,
]

Finally, register the tool in your NovaServiceProvider.php file:

public function tools()
{
  \Insenseanalytics\NovaServerMonitor\NovaServerMonitor::make()
    ->onConnection('server_monitor')->hosts(['example1.com'])
    ->checks(['mysql']),
}

Specify your database connection using the onConnection method. Typically the server that monitors your app's checks would be a separate app, and we would make a separate connection in config/database.php that connects to the monitoring server's database. If you want to display all checks and hosts, you do not need to call the hosts and checks methods.

Contributing

We are open to PRs as long as they're backed by tests and a small description of the feature added / problem solved.

License

The MIT License (MIT). Please see License File for more information.

Back to Top
Added 6 years ago
Last updated 6 Years Ago
Version v0.1
Composer
insenseanalytics/nova-server-monitor
GitHub stars 65
Packagist downloads 36,385

Favorites

13 users favorited

Rating

4.00
(out of 5)
★★★★★
★★★★
★★★
★★
3 ratings

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas