There are situations when everything seems to work alright, agents are uploading their inventory, the server backend accepts the connections and handles the queries appropriately, but then we recognize some client agent is not reporting status. There are more than a handful of reasons why an agent does not upload its inventory to the OCS-NG server and logging is the key to keep an eye on their behavior.
Thankfully, OCS-NG has inbuilt logging mechanisms. Using the /debug
parameter when launching the agent forces it to automatically create the logfile. This can be found in the directory of the agent under the following naming scheme: hostname.log
, where the hostname
stands for the name of the computer on which the agent runs.
In the case of Linux agents, the parameter is -debug
and the logfile can be located in the /var/log/ocsinventory-client
folder. The filename is called the same as hostname.log
.
The logfile is...