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.

Why is the Linux agent trying to open a graphical application? [closed]

Agent: Ocsinventory unified agent for UNIX, Linux and MacOSX (2.3)

OS: Ubuntu Server 14.04

Problem: When I run the agent manually (to debug my new installation), I get a message saying it tries to open an X11 window. Since this is a server and I am connected via SSH, there is no graphical display.

root@serverXXXX:~# ocsinventory-agent --force
Can't open display


The "Can't open display" line is the standard message when a script tries to open a graphical program. What's the cause? How do I debug this?

EDIT 2017-03-31: I think I found it. The log contains:

[Fri Mar 31 04:40:03 2017][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Lspci::Videos
[Fri Mar 31 04:40:03 2017][debug]  - xrandr found

Xrandr is used to query the video modes. This is useless in a headless server. So is there a config option for disabling the video modes queries in the agent?

closed with the note: Problem solved
in OCS Inventory NG agent for Unix by (120 points)
closed by

2 Answers

0 votes
You can run with --debug options and then check the ocsinventory-agent.log file for errors
by (1.5k points)
0 votes
Hi,

There is no option to disable video inventory.

Regards

Frank
by (90.2k points)
 
Powered by Question2Answer
...