定制 insenseanalytics/nova-server-monitor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

insenseanalytics/nova-server-monitor

最新稳定版本:v0.1

Composer 安装命令:

composer require insenseanalytics/nova-server-monitor

包简介

A Laravel Nova tool for Spatie's Server Monitor library.

README 文档

README

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.

统计信息

  • 总下载量: 41.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 65
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 65
  • Watchers: 1
  • Forks: 4
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-08