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

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

debian 10 - last version of ocs HTTP Status #404

Bonjour,

J'ai installé le dernier ocs 2.8.1 sur une debian 10.

Apres l installation le site fonctionne bien, je peux creer un tout ce que je veux.

Mon soucis vient de la remonté des agents qui sont installés sous windows 10, j'ai ce message :

COM SERVER => HTTP Post response received <HTTP Status Code #404>

j ai bien execute a2config sur les 3 fichiers pas de soucis rencontrés, j'ai vérifié les noms user et password dans les fichiers tout est bon.

Dites moi ce dont vous avez besoin comme fichiers de log .
in OCS Inventory NG server for Unix by (770 points)
retagged by

29 Answers

0 votes
voila le log du client  :

Starting OCS Inventory Agent on Friday, March 19, 2021 22:02:34.

AGENT => Running OCS Inventory Agent Version 2.8.0.1

AGENT => Using OCS Inventory FrameWork Version 2.8.0.1

AGENT => Loading plug-in(s)

AGENT => Using network connection with Communication Server

AGENT => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.8.0.1>

AGENT => Sending Prolog

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:00.

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

Starting OCS Inventory Agent on Friday, March 19, 2021 22:02:41.

AGENT => Running OCS Inventory Agent Version 2.8.0.1

AGENT => Using OCS Inventory FrameWork Version 2.8.0.1

AGENT => Loading plug-in(s)

AGENT => Using network connection with Communication Server

AGENT => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.8.0.1>

AGENT => Sending Prolog

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:00.

et le ocsinventori.ini

[OCS Inventory Agent]

ComProvider=ComHTTP.dll

Debug=0

Local=

NoSoftware=0

HKCU=0

NoTAG=0

IpDisc=

[HTTP]

Server=http://192.168.77.166:80/ocsinventory

SSL=1

CaBundle=cacert.pem

AuthRequired=1

User=ajttcnN3lhTo2eORNPwHfg==|||p884tx7vMVtSWy3ChsSRsQ==

Pwd=CZcmpixrjWiLUuFdICSNlw==|||AatQUdzpFyFbueXlmvnJRw==

ProxyType=0

Proxy=

ProxyPort=0

ProxyAuthRequired=0

ProxyUser=

ProxyPwd=

[OCS Inventory Service]

TTO_WAIT=600

PROLOG_FREQ=10

OLD_PROLOG_FREQ=10

INVENTORY_ON_STARTUP=0
by (770 points)
0 votes
by (1.4k points)
0 votes
Bonsoir,

J'utilisais le windows agent release candidate. Je l'ai desinstallé et j'ai intallé le windows agent 2.8.

Et je n'utilise pas de plugin, je vous mets le log .

AGENT => Running OCS Inventory Agent Version 2.8.0.0

AGENT => Using OCS Inventory FrameWork Version 2.8.0.0

AGENT => Loading plug-in(s)

DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>

DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found

AGENT => Using network connection with Communication Server

COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>

AGENT => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.8.0.0>

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <PORT-11626-2021-03-16-14-23-25> and MACs <0A:00:27:00:00:0538:22:E2:1F:8A:8D02:50:41:00:00:014C:EB:BD:CF:04:C6C0:3E:BA:3E:D9:7D> in file <ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL without server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>

COM SERVER => Sending HTTP Post request to URL <http://192.168.77.166/ocsinventory>

COM SERVER => HTTP Post response received <HTTP Status Code #404>

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:00.
by (770 points)
0 votes

Ce fichier existe-t-il sur l’ordinateur du client ?

COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>

by (1.4k points)
0 votes
non ce fichier n existe pas sur le client .

Je ne sais pas ou le trouver sur le serveur ?
by (770 points)
0 votes
J ai installe openssl et j ai generer le certificat en 2048, j'ai téléchargé le fichier sur le client et j'ai mis le fichier dans le repertoire.

Mais j ai toujours ce fichu 404
by (770 points)
0 votes

1.

Comment installez-vous le logiciel sur l’ordinateur distant?cool

Exemple:

c:\OCS-Windows-Agent-Setup.exe /S /NOSPLASH /UPGRADE /NO_SYSTRAY /NOW /SERVER=http://xx.xx.xx.xx:80/ocsinventory /USER=ocsuser /PWD=C@mpusFrance

2. 

S’il vous plaît exécuter ce sur l’ordinateur du client. (Powershell) 

Test-NetConnection -ComputerName 192.168.77.166 -Port 80

Test-NetConnection -ComputerName 192.168.77.166 -Port 3306

by (1.4k points)
edited by
0 votes
voila les resultats merci encore.

PS C:\Windows\system32> Test-NetConnection -ComputerName 192.168.77.166 -Port 80

ComputerName     : 192.168.77.166

RemoteAddress    : 192.168.77.166

RemotePort       : 80

InterfaceAlias   : Ethernet 2

SourceAddress    : 192.168.61.43

TcpTestSucceeded : True

PS C:\Windows\system32> Test-NetConnection -ComputerName 192.168.77.166 -Port 3306

AVERTISSEMENT : TCP connect to (192.168.77.166 : 3306) failed

ComputerName           : 192.168.77.166

RemoteAddress          : 192.168.77.166

RemotePort             : 3306

InterfaceAlias         : Ethernet 2

SourceAddress          : 192.168.61.43

PingSucceeded          : True

PingReplyDetails (RTT) : 8 ms

TcpTestSucceeded       : False
by (770 points)
0 votes
J execute l installation du client avec le client windows .En mettant le lien avec le port 80 et mettant le user : ocsuser et le passord : C@mpusFrance .

Je vais executer par l exemple que vous m avez donne
by (770 points)
0 votes
Avec la ligne de commande, voila le fichier log .

Starting OCS Inventory Agent on Tuesday, March 23, 2021 22:19:54.

AGENT => Running OCS Inventory Agent Version 2.8.0.1

AGENT => Using OCS Inventory FrameWork Version 2.8.0.1

AGENT => Loading plug-in(s)

AGENT => Using network connection with Communication Server

AGENT => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.8.0.1>

AGENT => Sending Prolog

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:00.
by (770 points)
 
Powered by Question2Answer
...