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.4 available

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

Cannot establish communication

inventario@SERVER-INVENTARIO:~$ ocsinventory-agent --debug
Config: Failed to open /etc/ocsinventory-agent/ocsinventory-agent.cfg
[debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.3
[debug] Log system initialised (Stderr)
[info] You should run this program as super-user.
[debug] --scan-homedirs missing. Don't scan user directories
[error] Failed to create /var/lib/ocsinventory-agent/http:__ocsinventory-ng_ocsinventory directory: Permission denied
[debug] No accountinfo file defined
[debug] OCS Agent initialised
[debug] Turns hooks on for /etc/ocsinventory-agent/modules.conf
[debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.3
[debug] Log system initialised (Stderr)
[debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.3
[debug] Log system initialised (Stderr)
[debug] Calling handlers : `start_handler'
[debug] [snmp] Calling snmp_start_handler
[debug]  - Net::SNMP loaded
[debug] [download] Calling download_start_handler
[debug]  - LWP loaded
[debug]  - LWP::Protocol::https loaded
[debug] Compress::Zlib is available.
[debug] Calling handlers : `prolog_writer'
[debug] sending XML
[debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>SERVER-INVENTARIO-2017-10-06-16-05-47</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>
[error] Cannot establish communication : 500 Can't connect to ocsinventory-ng:80

Help me

asked Oct 6 in OCS Inventory NG agent for Unix by marlonmn (280 points)

2 Answers

0 votes
you must run it as root.
answered Oct 7 by kapouik (15,950 points)
0 votes
root@SERVER-INVENTARIO:~# ocsinventory-agent --debug
File descriptor 4 (pipe:[49718]) leaked on pvs invocation. Parent PID 9506: /usr                              /bin/perl
File descriptor 4 (pipe:[49718]) leaked on vgs invocation. Parent PID 9506: /usr                              /bin/perl
File descriptor 4 (pipe:[49718]) leaked on lvs invocation. Parent PID 9506: /usr                              /bin/perl
answered Oct 9 by marlonmn (280 points)
 
Powered by Question2Answer
...