You are not logged in.
Hi all.
I ask for help after long attempts to force GLPI 10 + GLPI inventories 1.0.3 + GLPI agent 1.4 to deploy a regular msi package on a Windows system
1. The plugin itself is installed and the path is specified in the "Root folder for sending files from server": /var/www/glpi/files/_plugins/glpiinventory/upload
I put the msi package there and selected from the list in the interface
2. enabled the Package deployment module
3. I installed the agent itself with all the necessary keys
msiexec.exe /i "GLPI-Agent-1.4-x64.msi" /quiet /norestart RUNNOW=1 ADDLOCAL=ALL ADD_FIREWALL_EXCEPTION=1 NO_SSL_CHECK=1 SERVER='https://s-glpi-agent:pass@myserver/ marketplace/glpiinventory/'
4. Agents get in touch, everything is fine with them, the data in the GLPI is being pulled up
5. Created a 7zip package in the deploy-package management with the installation command msiexec.exe /i 7z2201-x64.msi /quiet /norestart
6. Created a task in Task management. turned it on and aimed it at the required computer. But this task is not performed, there are no errors in the agent logs and on the server itself. Enabled debug 2 agent logging mode. here is part of the log.
Please help and thanks in advance
[Sat Aug 6 16:15:11 2022][debug] Data directory: C:/Program Files/GLPI-Agent/share
[Sat Aug 6 16:15:11 2022][debug] Storage directory: C:\Program Files\GLPI-Agent\var
[Sat Aug 6 16:15:11 2022][debug] Lib directory: C:/Program Files/GLPI-Agent/perl/agent
[Sat Aug 6 16:15:11 2022][debug] [target server0] Next server contact planned for Sat Aug 6 23:55:55 2022
[Sat Aug 6 16:15:11 2022][debug2] getAvailableTasks() : add of task Collect version 2.8
[Sat Aug 6 16:15:11 2022][debug2] getAvailableTasks() : add of task Deploy version 2.10
[Sat Aug 6 16:15:11 2022][debug2] getAvailableTasks() : add of task ESX version 2.7
[Sat Aug 6 16:15:11 2022][debug2] getAvailableTasks() : add of task Inventory version 1.12
[Sat Aug 6 16:15:11 2022][debug2] getAvailableTasks() : add of task NetDiscovery version 5.1
[Sat Aug 6 16:15:11 2022][debug2] getAvailableTasks() : add of task NetInventory version 5.1
[Sat Aug 6 16:15:11 2022][debug2] getAvailableTasks() : add of task RemoteInventory version 1.0
[Sat Aug 6 16:15:11 2022][debug] Available tasks:
[Sat Aug 6 16:15:11 2022][debug] - Collect: 2.8
[Sat Aug 6 16:15:11 2022][debug] - Deploy: 2.10
[Sat Aug 6 16:15:11 2022][debug] - ESX: 2.7
[Sat Aug 6 16:15:11 2022][debug] - Inventory: 1.12
[Sat Aug 6 16:15:11 2022][debug] - NetDiscovery: 5.1
[Sat Aug 6 16:15:11 2022][debug] - NetInventory: 5.1
[Sat Aug 6 16:15:11 2022][debug] - RemoteInventory: 1.0
[Sat Aug 6 16:15:11 2022][debug] target server0: server https://s-glpi-agent:xxx@glpi.ap-bank.com/marketplace/glpiinventory/
[Sat Aug 6 16:15:11 2022][debug] Planned tasks for server0: Deploy,ESX,NetInventory,Inventory,NetDiscovery,RemoteInventory,Collect
[Sat Aug 6 16:15:11 2022][debug] Provided by Teclib Edition
[Sat Aug 6 16:15:11 2022][debug] Installer built on Fri Jul 1 09:35:20 2022 UTC
[Sat Aug 6 16:15:11 2022][debug] Built with Strawberry Perl 5.36.0
[Sat Aug 6 16:15:11 2022][debug] Built on github actions windows image for glpi-project/glpi-agent repository
[Sat Aug 6 16:15:11 2022][info] GLPI Agent service starting
[Sat Aug 6 16:15:12 2022][debug] Trusted target ip: 10.60.14.18/32, ::ffff:a3c:e12/128
[Sat Aug 6 16:15:12 2022][debug] Trusted client ip: 127.0.0.1/32, ::ffff:7f00:1/128, ::1/128
[Sat Aug 6 16:15:12 2022][debug] [http server] Trying to load Inventory Server plugin
[Sat Aug 6 16:15:12 2022][debug] [inventory server plugin] Initializing Inventory v1.1 Server plugin...
[Sat Aug 6 16:15:12 2022][debug] [inventory server plugin] Loading Inventory Server plugin configuration from C:/Program Files/GLPI-Agent/etc/inventory-server-plugin.cfg
[Sat Aug 6 16:15:12 2022][debug] [target listener] Next tasks run planned for Sat Aug 6 17:15:04 2022
[Sat Aug 6 16:15:12 2022][debug] [http server] HTTPD Inventory Server plugin loaded but disabled
[Sat Aug 6 16:15:12 2022][debug] [http server] Trying to load Proxy Server plugin
[Sat Aug 6 16:15:13 2022][debug] [proxy server plugin] Initializing Proxy v2.1 Server plugin...
[Sat Aug 6 16:15:13 2022][debug] [proxy server plugin] Loading Proxy Server plugin configuration from C:/Program Files/GLPI-Agent/etc/proxy-server-plugin.cfg
[Sat Aug 6 16:15:13 2022][debug] [http server] HTTPD Proxy Server plugin loaded but disabled
[Sat Aug 6 16:15:13 2022][debug] [http server] Trying to load SecondaryProxy Server plugin
[Sat Aug 6 16:15:13 2022][debug] [proxy2 server plugin] Initializing SecondaryProxy v1.1 Server plugin...
[Sat Aug 6 16:15:13 2022][debug] [proxy2 server plugin] Loading SecondaryProxy Server plugin configuration from C:/Program Files/GLPI-Agent/etc/proxy2-server-plugin.cfg
[Sat Aug 6 16:15:13 2022][debug] [http server] HTTPD SecondaryProxy Server plugin loaded but disabled
[Sat Aug 6 16:15:13 2022][debug] [http server] Trying to load SSL Server plugin
[Sat Aug 6 16:15:13 2022][debug] [ssl server plugin] Initializing SSL v1.1 Server plugin...
[Sat Aug 6 16:15:13 2022][debug] [ssl server plugin] Loading SSL Server plugin configuration from C:/Program Files/GLPI-Agent/etc/ssl-server-plugin.cfg
[Sat Aug 6 16:15:13 2022][debug] [http server] HTTPD SSL Server plugin loaded but disabled
[Sat Aug 6 16:15:13 2022][debug] [http server] Trying to load Test Server plugin
[Sat Aug 6 16:15:13 2022][debug] [server test plugin] Initializing Test v1.4 Server plugin...
[Sat Aug 6 16:15:13 2022][debug] [server test plugin] Loading Test Server plugin configuration from C:/Program Files/GLPI-Agent/etc/server-test-plugin.cfg
[Sat Aug 6 16:15:13 2022][debug] [http server] HTTPD Test Server plugin loaded but disabled
[Sat Aug 6 16:15:13 2022][debug] [http server] Trying to load ToolBox Server plugin
[Sat Aug 6 16:15:13 2022][debug] [toolbox plugin] Initializing ToolBox v1.0 Server plugin...
[Sat Aug 6 16:15:13 2022][debug] [toolbox plugin] Loading ToolBox Server plugin configuration from C:/Program Files/GLPI-Agent/etc/toolbox-plugin.cfg
[Sat Aug 6 16:15:13 2022][debug] [http server] HTTPD ToolBox Server plugin loaded but disabled
[Sat Aug 6 16:15:13 2022][info] [http server] HTTPD service started on port 62354
[Sat Aug 6 16:15:13 2022][debug2] Looking for Win32_Processor class WMI objects
[Sat Aug 6 16:15:17 2022][debug] Agent memory usage before freeing memory: WSS=112267264 PFU=104898560
[Sat Aug 6 16:15:18 2022][info] GLPI Agent memory usage: WSS=3420160 PFU=104898560
[Sat Aug 6 16:15:18 2022][debug] Running in background mode
[Sat Aug 6 16:15:18 2022][info] target server0: next run: Sat Aug 6 23:55:55 2022 - https://s-glpi-agent:xxx@glpi.ap-bank.com/marketplace/glpiinventory/
[Sat Aug 6 16:15:28 2022][debug] target server0: init event for Deploy task
[Sat Aug 6 16:15:28 2022][debug] [target server0] New storage maintenance event on deploy task
[Sat Aug 6 16:15:28 2022][debug2] [target server0] Event scheduled in 120 seconds
[Sat Aug 6 16:15:29 2022][debug] target server0: init event for ESX task
[Sat Aug 6 16:15:30 2022][debug] target server0: init event for NetInventory task
[Sat Aug 6 16:15:31 2022][debug] target server0: init event for Inventory task
[Sat Aug 6 16:15:32 2022][debug] target server0: init event for NetDiscovery task
[Sat Aug 6 16:15:33 2022][debug] target server0: init event for RemoteInventory task
[Sat Aug 6 16:15:34 2022][debug] target server0: init event for Collect task
[Sat Aug 6 16:16:58 2022][debug] [http server] HTTPD service stopped
[Sat Aug 6 16:16:58 2022][info] GLPI Agent exiting (5768)
[Sat Aug 6 16:17:00 2022][debug] Logger backend File initialized
[Sat Aug 6 16:17:00 2022][debug] GLPI Agent (1.4)
[Sat Aug 6 16:17:00 2022][debug] Configuration directory: C:/Program Files/GLPI-Agent/etc
[Sat Aug 6 16:17:00 2022][debug] Data directory: C:/Program Files/GLPI-Agent/share
[Sat Aug 6 16:17:00 2022][debug] Storage directory: C:\Program Files\GLPI-Agent\var
[Sat Aug 6 16:17:00 2022][debug] Lib directory: C:/Program Files/GLPI-Agent/perl/agent
[Sat Aug 6 16:17:00 2022][debug] [target server0] Next server contact planned for Sat Aug 6 23:55:55 2022
[Sat Aug 6 16:17:00 2022][debug2] getAvailableTasks() : add of task Collect version 2.8
[Sat Aug 6 16:17:00 2022][debug2] getAvailableTasks() : add of task Deploy version 2.10
[Sat Aug 6 16:17:00 2022][debug2] getAvailableTasks() : add of task ESX version 2.7
[Sat Aug 6 16:17:00 2022][debug2] getAvailableTasks() : add of task Inventory version 1.12
[Sat Aug 6 16:17:00 2022][debug2] getAvailableTasks() : add of task NetDiscovery version 5.1
[Sat Aug 6 16:17:00 2022][debug2] getAvailableTasks() : add of task NetInventory version 5.1
[Sat Aug 6 16:17:00 2022][debug2] getAvailableTasks() : add of task RemoteInventory version 1.0
[Sat Aug 6 16:17:00 2022][debug] Available tasks:
[Sat Aug 6 16:17:00 2022][debug] - Collect: 2.8
[Sat Aug 6 16:17:00 2022][debug] - Deploy: 2.10
[Sat Aug 6 16:17:00 2022][debug] - ESX: 2.7
[Sat Aug 6 16:17:00 2022][debug] - Inventory: 1.12
[Sat Aug 6 16:17:00 2022][debug] - NetDiscovery: 5.1
[Sat Aug 6 16:17:00 2022][debug] - NetInventory: 5.1
[Sat Aug 6 16:17:00 2022][debug] - RemoteInventory: 1.0
[Sat Aug 6 16:17:00 2022][debug] target server0: server https://s-glpi-agent:xxx@glpi.ap-bank.com/marketplace/glpiinventory/
[Sat Aug 6 16:17:00 2022][debug] Planned tasks for server0: RemoteInventory,NetDiscovery,Collect,NetInventory,Inventory,Deploy,ESX
[Sat Aug 6 16:17:00 2022][debug] Provided by Teclib Edition
[Sat Aug 6 16:17:00 2022][debug] Installer built on Fri Jul 1 09:35:20 2022 UTC
[Sat Aug 6 16:17:00 2022][debug] Built with Strawberry Perl 5.36.0
[Sat Aug 6 16:17:00 2022][debug] Built on github actions windows image for glpi-project/glpi-agent repository
[Sat Aug 6 16:17:00 2022][info] GLPI Agent service starting
[Sat Aug 6 16:17:00 2022][debug] Trusted target ip: 10.60.14.18/32, ::ffff:a3c:e12/128
[Sat Aug 6 16:17:00 2022][debug] Trusted client ip: 127.0.0.1/32, ::ffff:7f00:1/128, ::1/128
[Sat Aug 6 16:17:00 2022][debug] [http server] Trying to load Inventory Server plugin
[Sat Aug 6 16:17:00 2022][debug] [inventory server plugin] Initializing Inventory v1.1 Server plugin...
[Sat Aug 6 16:17:00 2022][debug] [inventory server plugin] Loading Inventory Server plugin configuration from C:/Program Files/GLPI-Agent/etc/inventory-server-plugin.cfg
[Sat Aug 6 16:17:00 2022][debug] [target listener] Next tasks run planned for Sat Aug 6 17:15:04 2022
[Sat Aug 6 16:17:00 2022][debug] [http server] HTTPD Inventory Server plugin loaded but disabled
[Sat Aug 6 16:17:00 2022][debug] [http server] Trying to load Proxy Server plugin
[Sat Aug 6 16:17:00 2022][debug] [proxy server plugin] Initializing Proxy v2.1 Server plugin...
[Sat Aug 6 16:17:00 2022][debug] [proxy server plugin] Loading Proxy Server plugin configuration from C:/Program Files/GLPI-Agent/etc/proxy-server-plugin.cfg
[Sat Aug 6 16:17:00 2022][debug] [http server] HTTPD Proxy Server plugin loaded but disabled
[Sat Aug 6 16:17:00 2022][debug] [http server] Trying to load SecondaryProxy Server plugin
[Sat Aug 6 16:17:00 2022][debug] [proxy2 server plugin] Initializing SecondaryProxy v1.1 Server plugin...
[Sat Aug 6 16:17:00 2022][debug] [proxy2 server plugin] Loading SecondaryProxy Server plugin configuration from C:/Program Files/GLPI-Agent/etc/proxy2-server-plugin.cfg
[Sat Aug 6 16:17:00 2022][debug] [http server] HTTPD SecondaryProxy Server plugin loaded but disabled
[Sat Aug 6 16:17:00 2022][debug] [http server] Trying to load SSL Server plugin
[Sat Aug 6 16:17:01 2022][debug] [ssl server plugin] Initializing SSL v1.1 Server plugin...
[Sat Aug 6 16:17:01 2022][debug] [ssl server plugin] Loading SSL Server plugin configuration from C:/Program Files/GLPI-Agent/etc/ssl-server-plugin.cfg
[Sat Aug 6 16:17:01 2022][debug] [http server] HTTPD SSL Server plugin loaded but disabled
[Sat Aug 6 16:17:01 2022][debug] [http server] Trying to load Test Server plugin
[Sat Aug 6 16:17:01 2022][debug] [server test plugin] Initializing Test v1.4 Server plugin...
[Sat Aug 6 16:17:01 2022][debug] [server test plugin] Loading Test Server plugin configuration from C:/Program Files/GLPI-Agent/etc/server-test-plugin.cfg
[Sat Aug 6 16:17:01 2022][debug] [http server] HTTPD Test Server plugin loaded but disabled
[Sat Aug 6 16:17:01 2022][debug] [http server] Trying to load ToolBox Server plugin
[Sat Aug 6 16:17:01 2022][debug] [toolbox plugin] Initializing ToolBox v1.0 Server plugin...
[Sat Aug 6 16:17:01 2022][debug] [toolbox plugin] Loading ToolBox Server plugin configuration from C:/Program Files/GLPI-Agent/etc/toolbox-plugin.cfg
[Sat Aug 6 16:17:01 2022][debug] [http server] HTTPD ToolBox Server plugin loaded but disabled
[Sat Aug 6 16:17:01 2022][info] [http server] HTTPD service started on port 62354
[Sat Aug 6 16:17:01 2022][debug2] Looking for Win32_Processor class WMI objects
[Sat Aug 6 16:17:05 2022][debug] Agent memory usage before freeing memory: WSS=112025600 PFU=104624128
[Sat Aug 6 16:17:05 2022][info] GLPI Agent memory usage: WSS=2981888 PFU=104624128
[Sat Aug 6 16:17:05 2022][debug] Running in background mode
[Sat Aug 6 16:17:05 2022][info] target server0: next run: Sat Aug 6 23:55:55 2022 - https://s-glpi-agent:xxx@glpi.ap-bank.com/marketplace/glpiinventory/
[Sat Aug 6 16:17:15 2022][debug] target server0: init event for RemoteInventory task
[Sat Aug 6 16:17:16 2022][debug] target server0: init event for NetDiscovery task
[Sat Aug 6 16:17:17 2022][debug] target server0: init event for Collect task
[Sat Aug 6 16:17:18 2022][debug] target server0: init event for NetInventory task
[Sat Aug 6 16:17:19 2022][debug] target server0: init event for Inventory task
[Sat Aug 6 16:17:20 2022][debug] target server0: init event for Deploy task
[Sat Aug 6 16:17:20 2022][debug] [target server0] New storage maintenance event on deploy task
[Sat Aug 6 16:17:20 2022][debug2] [target server0] Event scheduled in 120 seconds
[Sat Aug 6 16:17:21 2022][debug] target server0: init event for ESX task
[Sat Aug 6 16:19:20 2022][debug] target server0: storage maintenance event for deploy task
[Sat Aug 6 16:19:21 2022][debug] new thread 3 to handle task Deploy
[Sat Aug 6 16:19:21 2022][info] running task Deploy: storage maintenance event
[Sat Aug 6 16:19:21 2022][debug] Deploy task storage maintenance event for server0 target
[Sat Aug 6 16:19:21 2022][debug] No need to plan another storage maintenance event for server0 target
[Sat Aug 6 16:19:23 2022][debug] Agent memory usage before freeing memory: WSS=94593024 PFU=116428800
[Sat Aug 6 16:19:23 2022][info] GLPI Agent memory usage: WSS=3121152 PFU=116428800
Last edited by alex2013a90 (2022-08-06 15:56:29)
Offline
Hi alex2013a90,
I still answered on Telegram and you seem to have resolved your issue with my advices. Can you resume here what you did to help any people with the same issue ?
Thank you in advance.
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Offline
1. reinstall the agent with these parameters
msiexec.exe /i "GLPI-Agent-1.4-x64.msi" /quiet /norestart RUNNOW=1 ADDLOCAL=ALL ADD_FIREWALL_EXCEPTION=1 NO_SSL_CHECK=1 SERVER='https://s-glpi-agent:pass@myserver/ marketplace/glpiinventory/'
ADDLOCAL=ALL and NO_SSL_CHECK=1 are important here
2. Administration - Entities \ Agent base URL set url with credentials, for example: https://s-glpi-agent:pass@myserver/marketplace/glpiinventory/
3. Delete the asset itself and wait for it to sync again
4. In GLPI inventory, enable the Package deployment module
5. SSL-only for agent - set to no
Last edited by alex2013a90 (2022-08-08 09:46:54)
Offline
Can U please explain little bit clearly on the whole process? am new to glpi .we are already installed and added the assets through glpi for inventory.
Can u please explain how we deploy the packages through glpi?
Offline