Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Software missing or in wrong section?

We are seeing an inconsistency with our OCS NG deployment where when performing a criteria-based search from the web GUI and specifying something with search parameter All software Name LIKE firefox, this comes back with some hits but we have now identified that this does not include registered agents/computers for which we have confirmed to have the software queried for. That is to say, we have computers that (for example), we know have Firefox installed, have similar OCS agents installed as compared to other PCs in our environment, and we have configured everything the same. Oddly enough, these computers are submitting inventory but it's not reporting that one specific software.

We assumed the user somehow found a way to install the software to their profile however after investigation, this does not appear to be the case.

We have been looking at the server and agent logs after turning on more verbose debug logging for both. We have also tried restarting the Agent service on affected workstations to determine if the outcome changes based on us starting the service manually.

The only significant changes we have made recently are adding an OCS plugin for collecting user installed apps which we found on the official OCS website. One agent is reporting such user installed apps as expected but is also including Firefox in its results which is contrary to what we see when we are logged into the Windows machine itself. Due to this, we are seeing that it does not report Firefox in the Software inventory section when inspecting the computer from the OCS web GUI.

Additionally, we have made sure that this is not just a limitation of how the results are immediately populated where if multiple software is installed that includes the query keyword, OCS has a habit of only showing the first match. This is not what we are seeing with our discovered problem.

We need assistance in identifying where the issue is occurring. Because the inconsistencies are practically random, we are leaning towards blaming the server however we are not able to find proof in either the Apache logs nor the Agent logs on the workstations.

It's odd that we see this with only 2 PCs but not all other agents that are running similar OS with similar config. It's almost as if the problem could actually be the OS and not the application. We need to prove that this is the case and not OCS.

How else can we identify any possible errors for OCS aside from logs?

Server information
Operating system

OS Name : Ubuntu 20.04.6 LTS
Linux Version : 5.4.0-196-generic
RAM installed : 3919 MB
Free RAM : 2041 MB
CPU : AMD 24-Core Processor

Software

PHP Version : 7.4.3
Web Server : Apache/2.4.41 (Ubuntu)
Database Server : mysql (Ubuntu) version 8.0.39-0ubuntu0.20.04.1
Version OCSReports: 2.8.1

The agents we see the problem with are Windows agents running this version:

OCS-NG_WINDOWS_AGENT_v2.8.0.0 on Windows 10 Pro (x64) v. 10.0.19045

OCS-NG_WINDOWS_AGENT_v2.8.0.0 on Windows 11 Pro v. 10.0.22621
in OCS Inventory NG server for Unix by (120 points)

1 Answer

0 votes
in the past, with ocs agent 2.05, it was definitely the case that software was “sometimes” not recorded. If you check a day later, for example, the software was recorded again. This was or is probably due to the response time of the computers that try to record the software via ocs-inventory, similar to a wmic query. If this query takes a long time, then the Agent runs into a timeout and of course cannot capture all the software.
I thought the error had been fixed

https://github.com/OCSInventory-NG/WindowsAgent/issues/18

https://ask.ocsinventory-ng.org/7341/windows-agent-2-0-5-0-software-inventory-not-always-complete

Please try to do the search hourly -- again and again and look if there a changes from time 2 time with the same pc's
by (24.5k points)
edited by
 
Powered by Question2Answer
...