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.

Agent erreur 404

Bonjour,

J'ai acutellement un soucis au niveau de la remonté d'information sur OCS.

OCS serveur est installé sur une ubuntu serveur 14.04 en derniere version

Derniere version de l'agent sur une VM windows.

Le fichier config de mon agent

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

J'accepte bien à http://mondomaine:8800/ocsreports/

Log derreur de l'agent

==============================================================================
Starting OCS Inventory NG Agent on Wednesday, October 29, 2014 11:08:31.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.1
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) succesfully 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 NG cURL Communication Provider> Version <2.1.1.1>
    AGENT => Sending getLabel request
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending fileGet request to URL <http://mondomaine:8800/ocsinventory/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #404>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <CHISTEL-A-VM-2014-10-28-15-31-21> and MACs <08:00:27:38:2E:EC> 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 => Disabling cURL SSL server validation support
    COM SERVER => Sending HTTP Post request to URL <http://mondomaine:8800/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
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 aussi les fichier de config de ocsinventory-server.conf.local dans mon dossier web et les même dans le dossoer /etc/apache2/ mais en z-ocsinvetory-server.conf  est-ce normal ?

Je sèche compltemement

Cordialement,

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

4 Answers

0 votes
Il y a des problèmes connu avec la dernière version d'ubuntu. Nous essayons de travailler dessus.

Je t'invite à utiliser Centos avec les packet RPM de Remi collet à la place d'ubuntu.

Sinon concretement c'est ocsinventory-server.conf qui ne se charge pas correctement ton problème.
by (22k points)
0 votes
Bonjour,

Vérifier que le module mod_perl est bien chargé lors du démarrage d'apache. Regarde le fichier d'erreur d'apache et poste son contenu.
by (90.2k points)
Bonjour, J'ai le même soucis et j'en profite pour poster le log d'erreur, si vous pouvez me dépanner merci d'avance.

 

[Wed Feb 18 15:22:03.382134 2015] [:error] [pid 1841] [client ip:55613] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/neoinstall/OCSNG_UNIX_SERVER-2.1.2/ocsreports/backend/require/connexion.php on line 10, referer: http://ipServer/ocsreports/index.php?function=admin_ipdiscover
[Wed Feb 18 15:22:04.934920 2015] [:error] [pid 1841] [client ip:55613] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/neoinstall/OCSNG_UNIX_SERVER-2.1.2/ocsreports/backend/require/connexion.php on line 10, referer: http://ipServer/ocsreports/index.php?function=visu_search
[Wed Feb 18 16:01:54.904085 2015] [:error] [pid 1759] [client ip:55995] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/neoinstall/OCSNG_UNIX_SERVER-2.1.2/ocsreports/backend/require/connexion.php on line 10, referer: http://ipServer/ocsreports/index.php?function=visu_search
[Wed Feb 18 16:01:56.304932 2015] [:error] [pid 1759] [client ip:55995] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/neoinstall/OCSNG_UNIX_SERVER-2.1.2/ocsreports/backend/require/connexion.php on line 10, referer: http://ipServer/ocsreports/index.php?first
[Wed Feb 18 16:01:57.049629 2015] [:error] [pid 1759] [client ip:55995] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/neoinstall/OCSNG_UNIX_SERVER-2.1.2/ocsreports/backend/require/connexion.php on line 10, referer: http://ipServer/ocsreports/index.php?first
[Wed Feb 18 16:06:13.795286 2015] [:error] [pid 1841] [client ip:56006] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/neoinstall/OCSNG_UNIX_SERVER-2.1.2/ocsreports/backend/require/connexion.php on line 10, referer: http://ipServer/ocsreports/index.php?first
[Wed Feb 18 16:22:46.225223 2015] [mpm_prefork:notice] [pid 1742] AH00171: Graceful restart requested, doing restart
[Wed Feb 18 16:22:46.373974 2015] [mpm_prefork:notice] [pid 1742] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations
[Wed Feb 18 16:22:46.374004 2015] [core:notice] [pid 1742] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 18 16:22:50.842282 2015] [mpm_prefork:notice] [pid 1742] AH00169: caught SIGTERM, shutting down
[Wed Feb 18 16:22:51.938376 2015] [mpm_prefork:notice] [pid 2202] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations
[Wed Feb 18 16:22:51.938469 2015] [core:notice] [pid 2202] AH00094: Command line: '/usr/sbin/apache2'
[Wed Feb 18 16:23:10.664507 2015] [authz_core:error] [pid 2208] [client ip:56285] AH01630: client denied by server configuration: /home/www/cgi-bin/perltest.pl
[Wed Feb 18 16:27:30.678713 2015] [:error] [pid 2209] [client ip:56303] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/neoinstall/OCSNG_UNIX_SERVER-2.1.2/ocsreports/backend/require/connexion.php on line 10, referer: http://ipServer/ocsreports/index.php?first
[Wed Feb 18 16:29:46.263069 2015] [:error] [pid 2278] [client ip:56350] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/neoinstall/OCSNG_UNIX_SERVER-2.1.2/ocsreports/backend/require/connexion.php on line 10, referer: http://ipServer/ocsreports/index.php?first
[Wed Feb 18 16:32:53.682295 2015] [mpm_prefork:notice] [pid 2202] AH00169: caught SIGTERM, shutting down
[Wed Feb 18 16:32:54.753060 2015] [mpm_prefork:notice] [pid 2320] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations
[Wed Feb 18 16:32:54.753157 2015] [core:notice] [pid 2320] AH00094: Command line: '/usr/sbin/apache2'
0 votes
Bonjour,

 

Donc le souci a été résolu par une réinstallation complète d'OCS. Allez savoir pourquoi... ^^
by (240 points)
Bonjour,

Je viens vers toi car j'ai le même problème, j'accède à l'interface de gestion ocsreports cependant l'agent ne remonte pas d'informations, mon serveur ocs est installé sur Ubuntu 14.04 et mon agent est sur w7.

Peux tu partager s'il te plait tes notes pour l'installation du serveur ocs sur Linux et agent w7 si tu as ça.

Merci d'avance,
J'ai posté mes notes ici

http://anthony.chistel.fr/index.php/stage-alternance-en-entreprise/centralisation-des-informations-du-parc-ocs-glpi/installation-d-ocs-inventory-serveur

Cela concerne uniquement l'installation du serveur OCS.

Pour la partie client il a été installé simplement par GPO en utilisant l'outil de déploiement d'OCS, en renseignant tout les champs correctements.

Sinon il nous faudrait les logs de ton agent.
Bonjour,

Je te remercie pour avoir partagé le lien, le log est ci-dessous j'ai l'impression que le problème vient de <http://ipadressServer/ocsinventory/deploy/label>

 

Starting OCS Inventory NG Agent on Thursday, February 19, 2015 01:20:05.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.1
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
    AGENT => Sending getLabel request
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending fileGet request to URL <http://ipadressServer/ocsinventory/deploy/label>
    WARNING *** COM SERVER => Failed to send HTTP Get request <Failure when receiving data from the peer>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <Failure when receiving data from the peer>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <MachineCliente> and MACs <MachineCliente> 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 => Disabling cURL SSL server validation support
    COM SERVER => Sending HTTP Post request to URL <http://ipadressServer/ocsinventory>
    WARNING *** COM SERVER => Failed to send HTTP Post request <Failure when receiving data from the peer>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <Failure when receiving data from the peer>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:03.
Aurait-tu les logs d'accès apache ?

Bonjour l'inventaire remonte bien maintenant, l'erreur venait de ma configuration je partage pour les personnes qui ont ce même problèmes.

Sous ubuntu 14.04, setup.sh de ocs server .

Where is Apache main configuration file [] ?  /etc/apache2/apache2.conf
Where is Apache includes configuration directory  /etc/apache2/conf-enabled/
 
 
Oui effectivement bien faire attention a la localisation de ses fichiers durant l'installation qui n'est pas la même suivant si l'ont utilise apache inférieur a 2.4 ou la version 2.4
excusez moi pour le Where is Apache includes configuration directory cest pas plutot : /etc/apache2/sites-availables
0 votes

bonjour j'étais le méme probléme dans la méme situation est ce que pouvez-vous m'aidez et tu me dis comment je peux le fixer je suis bloqué depuis des jours dans cette probléme .

 

by (200 points)
Un petit up svp ?? mon agent sur windows ne veut pas remonter l'inventaire sur mon serveur ubuntu , j'ai l'erreur 404 ^^
 
Powered by Question2Answer
...