You are not logged in.
Pages: 1
I have a number of agents connected to GLPI version 1.10
When I force an update on the agent the data is updated in GLPI correctly
In GLPI all agents report their status as "Unknown", even when I click the refresh icon.
My research indicates this is a communications problem between server and agent however from the server I can view the agent's web interface on port 62354
Is there another agent setting somewhere that may be blocking communications?
I have installed the agent with the following command:
msiexec /i GLPI-Agent-1.10-x64.msi /quiet ADD_FIREWALL_EXCEPTION=1 SERVER=https://myserver
I note when I browser to the web interface from the computer itself there is an option to "Force an Inventory" whereas if I browse from the GLPI server this option is missing.
Last edited by McHenry (2024-08-05 12:04:52)
Offline
You can set debug to 2 and check the agent logs to have a hint on what's going wrong.
Offline
I added debug level 2 as suggested and the logs appear to show everything as working with no errors and Network Discovery appears to be enabled.
[Thu Aug 8 07:35:47 2024][info] target server0: next run: Fri Aug 9 07:36:45 2024 - https://support.mydomain.com.au/
[Thu Aug 8 07:35:47 2024][debug] Agent memory usage before freeing memory: WSS=152211456 PFU=166117376
[Thu Aug 8 07:35:47 2024][info] GLPI Agent memory usage: WSS=3174400 PFU=166117376
[Thu Aug 8 09:00:22 2024][debug] Logger backend File initialized
[Thu Aug 8 09:00:22 2024][debug] GLPI Agent (1.10)
[Thu Aug 8 09:00:22 2024][debug] Configuration directory: C:/Program Files/GLPI-Agent/etc
[Thu Aug 8 09:00:22 2024][debug] Data directory: C:/Program Files/GLPI-Agent/share
[Thu Aug 8 09:00:22 2024][debug] Storage directory: C:\Program Files\GLPI-Agent\var
[Thu Aug 8 09:00:22 2024][debug] Lib directory: C:/Program Files/GLPI-Agent/perl/agent
[Thu Aug 8 09:00:22 2024][debug] [target server0] Next server contact planned for Fri Aug 9 07:36:45 2024
[Thu Aug 8 09:00:22 2024][debug2] getAvailableTasks() : add of task Inventory version 1.17
[Thu Aug 8 09:00:22 2024][debug2] getAvailableTasks() : add of task NetDiscovery version 6.3
[Thu Aug 8 09:00:22 2024][debug2] getAvailableTasks() : add of task NetInventory version 6.3
[Thu Aug 8 09:00:22 2024][debug2] getAvailableTasks() : add of task RemoteInventory version 1.5
[Thu Aug 8 09:00:22 2024][debug] Available tasks:
[Thu Aug 8 09:00:22 2024][debug] - Inventory: 1.17
[Thu Aug 8 09:00:22 2024][debug] - NetDiscovery: 6.3
[Thu Aug 8 09:00:22 2024][debug] - NetInventory: 6.3
[Thu Aug 8 09:00:22 2024][debug] - RemoteInventory: 1.5
[Thu Aug 8 09:00:22 2024][debug] target server0: server https://support.mydomain.com.au/
[Thu Aug 8 09:00:22 2024][debug] Planned tasks for server0: NetDiscovery,Inventory,RemoteInventory,NetInventory
[Thu Aug 8 09:00:22 2024][debug] Provided by Teclib Edition
[Thu Aug 8 09:00:22 2024][debug] Installer built on Tue Jul 9 09:42:07 2024 UTC
[Thu Aug 8 09:00:22 2024][debug] Built with Strawberry Perl 5.38.2
[Thu Aug 8 09:00:22 2024][debug] Built on github actions windows image for glpi-project/glpi-agent repository
[Thu Aug 8 09:00:22 2024][debug2] getAvailableTasks() : add of task Inventory version 1.17
[Thu Aug 8 09:00:22 2024][debug2] getAvailableTasks() : add of task NetDiscovery version 6.3
[Thu Aug 8 09:00:22 2024][debug2] getAvailableTasks() : add of task NetInventory version 6.3
[Thu Aug 8 09:00:22 2024][debug2] getAvailableTasks() : add of task RemoteInventory version 1.5
[Thu Aug 8 09:00:36 2024][debug] Logger backend File initialized
[Thu Aug 8 09:00:36 2024][debug] GLPI Agent (1.10)
[Thu Aug 8 09:00:36 2024][debug] Configuration directory: C:/Program Files/GLPI-Agent/etc
[Thu Aug 8 09:00:36 2024][debug] Data directory: C:/Program Files/GLPI-Agent/share
[Thu Aug 8 09:00:36 2024][debug] Storage directory: C:\Program Files\GLPI-Agent\var
[Thu Aug 8 09:00:36 2024][debug] Lib directory: C:/Program Files/GLPI-Agent/perl/agent
[Thu Aug 8 09:00:36 2024][debug] [target server0] Next server contact planned for Fri Aug 9 07:36:45 2024
[Thu Aug 8 09:00:36 2024][debug2] getAvailableTasks() : add of task Inventory version 1.17
[Thu Aug 8 09:00:36 2024][debug2] getAvailableTasks() : add of task NetDiscovery version 6.3
[Thu Aug 8 09:00:36 2024][debug2] getAvailableTasks() : add of task NetInventory version 6.3
[Thu Aug 8 09:00:36 2024][debug2] getAvailableTasks() : add of task RemoteInventory version 1.5
[Thu Aug 8 09:00:36 2024][debug] Available tasks:
[Thu Aug 8 09:00:36 2024][debug] - Inventory: 1.17
[Thu Aug 8 09:00:36 2024][debug] - NetDiscovery: 6.3
[Thu Aug 8 09:00:36 2024][debug] - NetInventory: 6.3
[Thu Aug 8 09:00:36 2024][debug] - RemoteInventory: 1.5
[Thu Aug 8 09:00:36 2024][debug] target server0: server https://support.mydomain.com.au/
[Thu Aug 8 09:00:36 2024][debug] Planned tasks for server0: RemoteInventory,NetInventory,Inventory,NetDiscovery
[Thu Aug 8 09:00:36 2024][debug] Provided by Teclib Edition
[Thu Aug 8 09:00:36 2024][debug] Installer built on Tue Jul 9 09:42:07 2024 UTC
[Thu Aug 8 09:00:36 2024][debug] Built with Strawberry Perl 5.38.2
[Thu Aug 8 09:00:36 2024][debug] Built on github actions windows image for glpi-project/glpi-agent repository
[Thu Aug 8 09:00:36 2024][debug2] getAvailableTasks() : add of task Inventory version 1.17
[Thu Aug 8 09:00:36 2024][debug2] getAvailableTasks() : add of task NetDiscovery version 6.3
[Thu Aug 8 09:00:36 2024][debug2] getAvailableTasks() : add of task NetInventory version 6.3
[Thu Aug 8 09:00:36 2024][debug2] getAvailableTasks() : add of task RemoteInventory version 1.5
The computer inventory is uploaded to the server however the agent logs states "NetDiscovery task not supported by server"
[Thu Aug 8 06:37:36 2024][debug2] format: Zlib
[Thu Aug 8 06:37:36 2024][debug2] [http client] receiving message:
{"expiration":"24","status":"ok"}
[Thu Aug 8 06:37:36 2024][info] server0 answer shows it supports GLPI Agent protocol
[Thu Aug 8 06:37:36 2024][debug] new thread 3 to handle task RemoteInventory
[Thu Aug 8 06:37:36 2024][debug] Remote inventory task execution disabled: no remote setup
[Thu Aug 8 06:37:39 2024][debug] new thread 4 to handle task NetDiscovery
[Thu Aug 8 06:37:39 2024][debug] NetDiscovery task not supported by server
[Thu Aug 8 06:37:41 2024][debug] new thread 5 to handle task Inventory
[Thu Aug 8 06:37:41 2024][info] running task Inventory
[Thu Aug 8 06:37:41 2024][info] New inventory from MYSERVER-2024-08-07-07-27-11 for server0
Offline
Still not working.
On the GLPI I can execute the following to confirm the server can communicate with the agent.
linuxuser@SVR11246:~$ curl 10.27.50.5:62354/status
status: waiting
linuxuser@SVR11246:~$
The agent logs show:
[Tue Aug 13 10:36:33 2024][debug] [http server] GET request /status from client 10.44.112.14
[Tue Aug 13 10:36:33 2024][debug] [http server] response status 200
However the "Agent status" and "Remote inventory" labels in GLPI do not update when the refresh icons are clicked.
Offline
Pages: 1