For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Troubleshooting

Check these first:

  • You are using the right execution mode (remote vs local).

  • The server URL is correct and reachable from the device.

  • The agent can write to data_directory and log_file_path.

Capture debug logs

1

Set log level to debug

In config.json, set:

  • log_level to 4

  • log_file to true

2

Run an inventory manually

Run:

sudo ocsinventory-cli

Run in an elevated prompt:

"C:\Program Files\OCS Inventory Agent\ocsinventory-agent.exe"
3

Inspect the log output

Check the configured log_file_path.

If you did not change it:

  • Linux: /var/log/ocsinventory-agent/ocsinventory-agent.log

What to include when reporting an issue

Share these details:

  • Agent version and install method (packages vs source).

  • OS and version.

  • Your config.json with sensitive information removed.

  • The relevant log excerpt around the failure.

Last updated