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

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

OCS 2.2 does not communicate with customers

Does anyone know where there is a documentation of the installation and possible problem solutions in ocs installation for ubuntu server?

I've looked everywhere but I can not solve the problems even posting in the forum . It must be some wrong way. I used the setup.sh installation own ocs . And that same server runs without problem several services . As GLPI , Nagios , among others. But the OCS is the one who insists on not fucnionar . The to enter the page and all the ocsreports , but I can not make any client to communicate.

BRIEF : do not have a command or something that can check the installation to see if it's OK ? Type a checkup ? or checklist

Below all my questions , I got to do what was suggested but nothing happens.

http://ask.ocsinventory-ng.org/4418/nothing-appears-on-the-server-n%C3%A3o-aparece-nada-no-servidor
http://ask.ocsinventory-ng.org/4411/ocsng-windows-agent-2-2-beta
http://ask.ocsinventory-ng.org/4321/com-server-http-post-response-received-http-status-code-%23200

in OCS Inventory NG server for Unix by (200 points)

1 Answer

0 votes
Hi,

Can you post your apache error log and your agent log ?

Regards,

Gilles Dubois.
by (3k points)

OCSNG-Windows-Agent-2.1.1.3.zip

C:\ProgramData\OCS Inventory NG\Agent\ocsinventory

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.72.133/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=360

==============================================================================

C:\ProgramData\OCS Inventory NG\Agent\OCSInventory

Starting OCS Inventory NG Agent on Tuesday, June 07, 2016 23:23:03.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #400>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

==============================================================================

var/log/apache2/access.log

127.0.0.1 - - [07/Jun/2016:22:54:04 -0300] "GET / HTTP/1.1" 200 11783 "-" "check_http/v1.5 (nagios-plugins 1.5)"
127.0.0.1 - - [07/Jun/2016:22:59:04 -0300] "GET / HTTP/1.1" 200 11783 "-" "check_http/v1.5 (nagios-plugins 1.5)"
127.0.0.1 - - [07/Jun/2016:23:04:04 -0300] "GET / HTTP/1.1" 200 11783 "-" "check_http/v1.5 (nagios-plugins 1.5)"
127.0.0.1 - - [07/Jun/2016:23:09:04 -0300] "GET / HTTP/1.1" 200 11783 "-" "check_http/v1.5 (nagios-plugins 1.5)"
127.0.0.1 - - [07/Jun/2016:23:14:04 -0300] "GET / HTTP/1.1" 200 11783 "-" "check_http/v1.5 (nagios-plugins 1.5)"
192.168.72.157 - - [07/Jun/2016:23:14:34 -0300] "GET /ocsinventory/deploy/label HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.3"
192.168.72.157 - - [07/Jun/2016:23:14:34 -0300] "POST /ocsinventory HTTP/1.1" 301 537 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.3"
192.168.72.157 - - [07/Jun/2016:23:14:34 -0300] "GET /ocsinventory/ HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.3"
192.168.72.157 - - [07/Jun/2016:23:14:50 -0300] "GET /ocsinventory/deploy/label HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.3"
192.168.72.157 - - [07/Jun/2016:23:14:50 -0300] "POST /ocsinventory HTTP/1.1" 301 537 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.3"
192.168.72.157 - - [07/Jun/2016:23:14:50 -0300] "GET /ocsinventory/ HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.3"
192.168.72.157 - - [07/Jun/2016:23:16:53 -0300] "GET /ocsinventory/deploy/label HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.3"
192.168.72.157 - - [07/Jun/2016:23:16:53 -0300] "POST /ocsinventory HTTP/1.1" 301 537 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.3"
192.168.72.157 - - [07/Jun/2016:23:16:53 -0300] "GET /ocsinventory/ HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.3"

OCSNG-Windows-Agent-2.2Beta.zip

/var/log/apache2/access.log
192.168.72.157 - - [07/Jun/2016:23:41:42 -0300] "GET /ocsinventory/deploy/label HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
192.168.72.157 - - [07/Jun/2016:23:41:42 -0300] "POST /ocsinventory HTTP/1.1" 301 537 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
192.168.72.157 - - [07/Jun/2016:23:41:42 -0300] "GET /ocsinventory/ HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
192.168.72.157 - - [07/Jun/2016:23:42:37 -0300] "GET /ocsinventory/deploy/label HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
192.168.72.157 - - [07/Jun/2016:23:42:37 -0300] "POST /ocsinventory HTTP/1.1" 301 537 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
192.168.72.157 - - [07/Jun/2016:23:42:37 -0300] "GET /ocsinventory/ HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
192.168.72.157 - - [07/Jun/2016:23:42:39 -0300] "GET /ocsinventory/deploy/label HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
192.168.72.157 - - [07/Jun/2016:23:42:39 -0300] "POST /ocsinventory HTTP/1.1" 301 537 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
192.168.72.157 - - [07/Jun/2016:23:42:39 -0300] "GET /ocsinventory/ HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
127.0.0.1 - - [07/Jun/2016:23:44:04 -0300] "GET / HTTP/1.1" 200 11783 "-" "check_http/v1.5 (nagios-plugins 1.5)"
==============================================================================
C:\ProgramData\OCS Inventory NG\Agent\OCSInventory

Starting OCS Inventory NG Agent on Tuesday, June 07, 2016 23:42:59.
AGENT => Running OCS Inventory NG Agent Version 2.2.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.2.0.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #400>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

C:\ProgramData\OCS Inventory NG\Agent\ocsinventory

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.72.133/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=180

After deleting the folder ocsinventory www generated result below

So it would be ideal to have some sort of script to test the server installation .

Log APACHE

127.0.0.1 - - [08/Jun/2016:00:09:04 -0300] "GET / HTTP/1.1" 200 11783 "-" "check_http/v1.5 (nagios-plugins 1.5)"
192.168.72.157 - - [08/Jun/2016:00:09:16 -0300] "GET /ocsinventory/deploy/label HTTP/1.1" 400 486 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
192.168.72.157 - - [08/Jun/2016:00:09:16 -0300] "POST /ocsinventory HTTP/1.1" 200 389 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"
192.168.72.157 - - [08/Jun/2016:00:09:38 -0300] "POST /ocsinventory HTTP/1.1" 200 331 "-" "OCS-NG_WINDOWS_AGENT_v2.2.0.0"

Log Agente

==============================================================================
Starting OCS Inventory NG Agent on Wednesday, June 08, 2016 00:09:39.
AGENT => Running OCS Inventory NG Agent Version 2.2.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.2.0.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Inventory required
AGENT => Launching hardware and software checks

I appreciate the interest in helping me . However I just found out what the problem is . Or it could be coincidence .

What I did when I installed using the script setup.sh did the www folder and a folder with ocsinventory name. Dai thought it might be that, then rename the folder. Dai worked. So I find it very interesting to have a script to check the installation of the OCS on Linux servers. Thank you very much.
 
Powered by Question2Answer
...