mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add librenms command Hook up to artisan. Hide dev commands and most other commands if app environment is production. Register all commands for php artisan or when not in production. * remove dead end line * Console application name and version. Had to shift some stuff from legacy code, but deferred others as it was too extensive of a change. * switch check order * always get local version now * update array format * whitepace * fix style
20 lines
721 B
PHP
20 lines
721 B
PHP
<?php
|
|
|
|
use App\Jobs\PingCheck;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Console Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This file is where you may define all of your Closure based console
|
|
| commands. Each Closure is bound to a command instance allowing a
|
|
| simple approach to interacting with each command's IO methods.
|
|
|
|
|
*/
|
|
|
|
Artisan::command('ping {--d|debug} {groups?* : Optional List of distributed poller groups to poll}', function () {
|
|
$this->alert("Do not use this command yet, use ./ping.php");
|
|
// PingCheck::dispatch(new PingCheck($this->argument('groups')));
|
|
})->describe('Check if devices are up or down via icmp');
|