From 02d49c13140aa7794a81945d57f9792b16a29a2b Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Fri, 30 Jul 2021 12:20:09 -0500 Subject: [PATCH] Remove timeouts for passthrough lnms commands (#13080) Should not be an issue once the commands are natively implemented. --- routes/console.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/routes/console.php b/routes/console.php index af3e541afd..4467a77d83 100644 --- a/routes/console.php +++ b/routes/console.php @@ -25,7 +25,7 @@ Artisan::command('device:rename base_path('renamehost.php'), $this->argument('old 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')); Artisan::command('device:add @@ -147,11 +147,11 @@ Artisan::command('device:remove (new Process([ base_path('delhost.php'), $this->argument('device spec'), - ]))->setTty(true)->run(); + ]))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run(); })->purpose('Remove a device'); 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')); Artisan::command('poller:ping @@ -169,7 +169,7 @@ Artisan::command('poller:ping $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')); Artisan::command('poller:discovery @@ -197,7 +197,7 @@ Artisan::command('poller:discovery $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')); Artisan::command('poller:poll @@ -219,7 +219,7 @@ Artisan::command('poller:poll $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')); 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')); Artisan::command('poller:billing @@ -250,7 +250,7 @@ Artisan::command('poller:billing $command[] = '-v'; } } - (new Process($command))->setTty(true)->run(); + (new Process($command))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run(); })->purpose(__('Collect billing data')); Artisan::command('poller:services @@ -273,7 +273,7 @@ Artisan::command('poller:services $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')); Artisan::command('poller:billing-calculate @@ -285,7 +285,7 @@ Artisan::command('poller:billing-calculate $command[] = '-r'; } - (new Process($command))->setTty(true)->run(); + (new Process($command))->setTimeout(null)->setIdleTimeout(null)->setTty(true)->run(); })->purpose(__('Run billing calculations')); Artisan::command('scan @@ -327,5 +327,5 @@ Artisan::command('scan $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'));