From 64e405ccc74ef046a635f8ce3f69613e281c1cad Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Mon, 13 Nov 2023 12:13:42 +0100 Subject: [PATCH] fix: Make network tasks expiration a function of backend-collect-timeout Closes #327 --- Changes | 2 ++ bin/glpi-netdiscovery | 10 +++++++++- bin/glpi-netinventory | 8 ++++++++ lib/GLPI/Agent/HTTP/Server/ToolBox/Inventory.pm | 1 - lib/GLPI/Agent/Task/NetDiscovery.pm | 11 +++++++++-- lib/GLPI/Agent/Task/NetInventory.pm | 6 ++++-- 6 files changed, 32 insertions(+), 6 deletions(-) diff --git a/Changes b/Changes index 467c4bfb5..2c866c633 100644 --- a/Changes +++ b/Changes @@ -55,6 +55,8 @@ netdiscovery/netinventory: * Use Parallel::ForkManager for netdiscovery & netinventory tasks * Preload mibsupport as optimization * Add ESX & RemoteInventory scanning support to netdiscovery +* fix #327: Make task expiration a function of backend-collect-timeout configuration + Add backend-collect-timeout support to glpi-netdiscovery & glpi-netinventory scripts esx: * Refactoring to share more code between task & glpi-esx script and to support netscan diff --git a/bin/glpi-netdiscovery b/bin/glpi-netdiscovery index 41c6345b9..e8fe59949 100755 --- a/bin/glpi-netdiscovery +++ b/bin/glpi-netdiscovery @@ -34,6 +34,7 @@ GetOptions( 'protocol=s@', 'threads=i', 'timeout=i', + 'backend-collect-timeout=s', 'v1', 'v2c', 'control', @@ -179,7 +180,9 @@ glpi-netdiscovery [options] --first
--last
--v1 select SNMP version 1 (the default) --v2c select SNMP version 2c (1 by default) --credentials SNMP credentials (version:1,community:public) - --timeout