mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove timeouts for passthrough lnms commands (#13080)
Should not be an issue once the commands are natively implemented.
This commit is contained in:
@@ -25,7 +25,7 @@ Artisan::command('device:rename
|
|||||||
base_path('renamehost.php'),
|
base_path('renamehost.php'),
|
||||||
$this->argument('old hostname'),
|
$this->argument('old hostname'),
|
||||||
$this->argument('new hostname'),
|
$this->argument('new hostname'),
|
||||||
]))->setTty(true)->run();
|
]))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose(__('Rename a device, this can be used to change the hostname or IP of a device'));
|
})->purpose(__('Rename a device, this can be used to change the hostname or IP of a device'));
|
||||||
|
|
||||||
Artisan::command('device:add
|
Artisan::command('device:add
|
||||||
@@ -147,11 +147,11 @@ Artisan::command('device:remove
|
|||||||
(new Process([
|
(new Process([
|
||||||
base_path('delhost.php'),
|
base_path('delhost.php'),
|
||||||
$this->argument('device spec'),
|
$this->argument('device spec'),
|
||||||
]))->setTty(true)->run();
|
]))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose('Remove a device');
|
})->purpose('Remove a device');
|
||||||
|
|
||||||
Artisan::command('update', function () {
|
Artisan::command('update', function () {
|
||||||
(new Process([base_path('daily.sh')]))->setTty(true)->run();
|
(new Process([base_path('daily.sh')]))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose(__('Update LibreNMS and run maintenance routines'));
|
})->purpose(__('Update LibreNMS and run maintenance routines'));
|
||||||
|
|
||||||
Artisan::command('poller:ping
|
Artisan::command('poller:ping
|
||||||
@@ -169,7 +169,7 @@ Artisan::command('poller:ping
|
|||||||
$command[] = '-v';
|
$command[] = '-v';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(new Process($command))->setTty(true)->run();
|
(new Process($command))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose(__('Check if devices are up or down via icmp'));
|
})->purpose(__('Check if devices are up or down via icmp'));
|
||||||
|
|
||||||
Artisan::command('poller:discovery
|
Artisan::command('poller:discovery
|
||||||
@@ -197,7 +197,7 @@ Artisan::command('poller:discovery
|
|||||||
$command[] = '-v';
|
$command[] = '-v';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(new Process($command))->setTty(true)->run();
|
(new Process($command))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose(__('Discover information about existing devices, defines what will be polled'));
|
})->purpose(__('Discover information about existing devices, defines what will be polled'));
|
||||||
|
|
||||||
Artisan::command('poller:poll
|
Artisan::command('poller:poll
|
||||||
@@ -219,7 +219,7 @@ Artisan::command('poller:poll
|
|||||||
$command[] = '-v';
|
$command[] = '-v';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(new Process($command))->setTty(true)->run();
|
(new Process($command))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose(__('Poll data from devices as defined by discovery'));
|
})->purpose(__('Poll data from devices as defined by discovery'));
|
||||||
|
|
||||||
Artisan::command('poller:alerts', function () {
|
Artisan::command('poller:alerts', function () {
|
||||||
@@ -231,7 +231,7 @@ Artisan::command('poller:alerts', function () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
(new Process($command))->setTty(true)->run();
|
(new Process($command))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose(__('Check for any pending alerts and deliver them via defined transports'));
|
})->purpose(__('Check for any pending alerts and deliver them via defined transports'));
|
||||||
|
|
||||||
Artisan::command('poller:billing
|
Artisan::command('poller:billing
|
||||||
@@ -250,7 +250,7 @@ Artisan::command('poller:billing
|
|||||||
$command[] = '-v';
|
$command[] = '-v';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(new Process($command))->setTty(true)->run();
|
(new Process($command))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose(__('Collect billing data'));
|
})->purpose(__('Collect billing data'));
|
||||||
|
|
||||||
Artisan::command('poller:services
|
Artisan::command('poller:services
|
||||||
@@ -273,7 +273,7 @@ Artisan::command('poller:services
|
|||||||
$command[] = '-v';
|
$command[] = '-v';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(new Process($command))->setTty(true)->run();
|
(new Process($command))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose(__('Update LibreNMS and run maintenance routines'));
|
})->purpose(__('Update LibreNMS and run maintenance routines'));
|
||||||
|
|
||||||
Artisan::command('poller:billing-calculate
|
Artisan::command('poller:billing-calculate
|
||||||
@@ -285,7 +285,7 @@ Artisan::command('poller:billing-calculate
|
|||||||
$command[] = '-r';
|
$command[] = '-r';
|
||||||
}
|
}
|
||||||
|
|
||||||
(new Process($command))->setTty(true)->run();
|
(new Process($command))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose(__('Run billing calculations'));
|
})->purpose(__('Run billing calculations'));
|
||||||
|
|
||||||
Artisan::command('scan
|
Artisan::command('scan
|
||||||
@@ -327,5 +327,5 @@ Artisan::command('scan
|
|||||||
|
|
||||||
$command = array_merge($command, $this->argument('network'));
|
$command = array_merge($command, $this->argument('network'));
|
||||||
|
|
||||||
(new Process($command))->setTty(true)->run();
|
(new Process($command))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run();
|
||||||
})->purpose(__('Scan the network for hosts and try to add them to LibreNMS'));
|
})->purpose(__('Scan the network for hosts and try to add them to LibreNMS'));
|
||||||
|
Reference in New Issue
Block a user