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.

Aucune remonté d'AGENT => Failed to send Prolog <HTTP Status Code #404>

Bonjour,

Je tente d'installer OCS (et GLPI, mais tout d'abord OCS).
Mais j'ai un problème, je ne réussie pas à avoir de remonter de mes agents.
Le serveur OCS est installé sur une machine (Virtuel, en accès internet par pont) Debian sans interface graphique, à l'adresse IP : 192.168.1.84

J'ai accès sur les machines à : http://192.168.1.84/ocsreports, les pings sont aussi OK, j'ai désactivé le pare-feu de ma machine cliente.(Windows 7, avec accès internet par pont)

Voici mon fichier de configuration de l'agent (le .ini)

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

j'ai déjà essayé :

Server=http://192.168.1.84/ocsinventory

Server=https://192.168.1.84/ocsinventory

Server=http://192.168.1.84:80/ocsinventory

Server=https://192.168.1.84:80/ocsinventory

Server=http://s1216-1-001/ocsinventory

Server=https://s1216-1-001/ocsinventory

L'agent à été crée avec OCS Packager, j'ai rentré ces informations :

"/S /SERVER=http://192.168.1.84/ocsinventory /TAG=[MonTag] /UPGRADE /NOW /SSL=0 /NOSPLASH /FORCE"

Mon fichier de log :

==============================================================================
Starting OCS Inventory NG Agent on Tuesday, December 27, 2016 11:40:44.
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 #404>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

J'ai déjà fais PLEINS de test, j'ai déjà fais PLEINS de recherche, que ce soit en anglais, en français, en espagnole, et même en russe .... je ne trouve pas de solution, je viens donc vous demander de l'aide...

J'ai vue une solution qui me dit de modifier mon VirtualHost d'Apache, en ajoutant à la fin de /etc/apache2/apache2.conf :

<VirtualHost 192.168.1.84:80>
      ServerAdmin root@localhost
      ServerName internetlocal
      DocumentRoot /var/www/ocsreports
      <Directory />
              Options FollowSymLinks
              AllowOverride None
      </Directory>
</VirtualHost>

Mais ça ne semble pas fonctionner même après un /etc/init.d/apache2 restart

Parfois dans mes test, le message d'erreur varie durant mes test, je peu avoir :

AGENT => Failed to send Prolog <Couldn't connect to server>

AGENT => Failed to send Prolog <"SSL connect error">

Avez-vous des pistes à explorer ?

Je pense bientôt réinstaller mon serveur à 100%, (encore) voir, si j'ai pas oublié quelque chose...

Merci par avance, si quelqu'un tente de m'aider
in OCS Inventory NG agent for Windows by (120 points)

1 Answer

0 votes
Tu utilises quel version du serveur OCS et tu l'as installé comment ?
by (22k points)
 
Powered by Question2Answer
...