OCS Inventory - Problème port HTTP(s) et MYSQL

Fermé
Natsumiko78 Messages postés 5 Date d'inscription lundi 28 juillet 2014 Statut Membre Dernière intervention 17 octobre 2014 - 28 juil. 2014 à 11:20
Natsumiko78 Messages postés 5 Date d'inscription lundi 28 juillet 2014 Statut Membre Dernière intervention 17 octobre 2014 - 17 oct. 2014 à 10:09
Bonjour bonjour,

Voilà je monte dans mon entreprise une solution de gestion de parc avec OCS inventory et je rencontre quelques soucis sur la fin. Je travaille sur une plateforme de test actuellement :
- Le serveur OCS Windows server 2012, et un pc de test Windows 7.

Tout est installé et configuré, et j'ai quelques messages d'erreur qui apparemment sont "anodins". Mon soucis ce sont les ports http / https et mysql. J'ai modifié les ports par défaut pour parer d'éventuels conflits = port 80 changé en 8080, port 443 en 440 et 3306 en 3300, et là j'en suis à vouloir déployer un paquet.
Les modifs sont bien prises en compte mais dès que le client communique avec le serveur, les ports sont modifiés parce qu'ils seraient déjà utilisés. En fait il lance une deuxième instance de chaque application mysqld et httpd... Je sais pas d'où ça vient, si c'est un soucis d'incompatibilité par exemple.
Je vous mets ci-dessous le résultat de mon netstat, error.log d'apache, download.log et celui du client ocsinventory.log


error.log

[Mon Jul 28 10:33:38 2014] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 28 10:33:38 2014] [notice] Digest: done
[Mon Jul 28 10:33:39 2014] [notice] Child 2764: Child process is running
[Mon Jul 28 10:33:39 2014] [notice] Child 2764: Acquired the start mutex.
[Mon Jul 28 10:33:39 2014] [notice] Child 2764: Starting 150 worker threads.
[Mon Jul 28 10:33:39 2014] [notice] Child 2764: Starting thread to listen on port 440.
[Mon Jul 28 10:33:39 2014] [notice] Child 2764: Starting thread to listen on port 8080.
[Mon Jul 28 10:33:39 2014] [notice] Child 2764: Starting thread to listen on port 440.
[Mon Jul 28 10:33:39 2014] [notice] Child 2764: Starting thread to listen on port 8080.
Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db handle database=ocsweb;host=localhost;port=3300 at C:/xampp/perl/site/lib/Apache/Ocsinventory.pm line 64.
Terminating on signal SIGTERM(15)
[Mon Jul 28 10:36:47 2014] [warn] pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Jul 28 10:36:47 2014] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 28 10:36:47 2014] [notice] Digest: done
[Mon Jul 28 10:36:49 2014] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Jul 28 10:36:49 2014] [notice] Server built: Sep 10 2011 11:34:11
[Mon Jul 28 10:36:49 2014] [notice] Parent: Created child process 612
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Mon Jul 28 10:36:51 2014] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 28 10:36:51 2014] [notice] Digest: done
[Mon Jul 28 10:36:52 2014] [notice] Child 612: Child process is running
[Mon Jul 28 10:36:52 2014] [notice] Child 612: Acquired the start mutex.
[Mon Jul 28 10:36:52 2014] [notice] Child 612: Starting 150 worker threads.
[Mon Jul 28 10:36:52 2014] [notice] Child 612: Starting thread to listen on port 440.
[Mon Jul 28 10:36:52 2014] [notice] Child 612: Starting thread to listen on port 8080.
[Mon Jul 28 10:36:52 2014] [notice] Child 612: Starting thread to listen on port 440.
[Mon Jul 28 10:36:52 2014] [notice] Child 612: Starting thread to listen on port 8080.
Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db handle database=ocsweb;host=localhost;port=3300 at C:/xampp/perl/site/lib/Apache/Ocsinventory.pm line 64.

Download.log

Starting OCS Inventory NG Package Download and Setup Tool on Monday, July 28, 2014 09:48:17.
DOWNLOAD => Running OCS Inventory NG Download Version 2.1.1.1
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.1.1.1
DOWNLOAD => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:00:00.

==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Monday, July 28, 2014 10:36:01.
DOWNLOAD => Running OCS Inventory NG Download Version 2.1.1.1
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.1.1.1
DOWNLOAD => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:00:00.

==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Monday, July 28, 2014 10:39:28.
DOWNLOAD => Running OCS Inventory NG Download Version 2.1.1.1
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.1.1.1
DOWNLOAD => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:00:00.

OCSinventory.log :

Starting OCS Inventory NG Agent on Monday, July 28, 2014 10:38:47.
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 Prolog
DID_CHECK => Read DeviceID <BT1SVMOP-2014-07-21-14-10-21> and MACs <00:50:56:AE:10:29> 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 <cacert.pem>
COM SERVER => Sending HTTP Post request to URL <http://172.16.223.116:8080/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Prolog Frequency set to 1 hour(s)
AGENT => Inventory required
AGENT => Launching hardware and software checks
INVENTORY => Loading Download history
INVENTORY => Logged on user ID is <adm_anavarro>
INVENTORY => Operating System is <Microsoft Windows 7 Professionnel 6.1.7601 Service Pack 1>, description <>
INVENTORY => Operating System uses 64 bits memory address width
INVENTORY => Computer domain or workgroup is <res.bouyguestelecom.fr>
WARNING *** INVENTORY => Failed to retrieve user domain
INVENTORY => System Manufacturer <VMware, Inc.>, System Model <VMware Virtual Platform>, System S/N <VMware-42 2e 75 a8 69 81 57 5c-6a 31 aa 17 d0 d9 48 04>, Bios Manufacturer <Phoenix Technologies LTD>, Bios Date <07/30/2013>, Bios Version <6.00>
INVENTORY => 2 processor(s) Intel(R) Xeon(R) CPU E7- 2860 @ 2.27GHz [1 core(s) x86_64] at 2263 MHz
INVENTORY => OS Memory 2048 MB, OS Swap size 4095 MB
INVENTORY => 64 memory slot(s) found
INVENTORY => 2 input device(s) found
INVENTORY => 4 system port(s) found
INVENTORY => 7 system slot(s) found
INVENTORY => 5 system controler(s) found
INVENTORY => 3 storage peripheral(s) found
WARNING *** INVENTORY => Failed to retrieve sound devices
WARNING *** INVENTORY => Failed to retrieve modems

INVENTORY => 1 network adapter(s) found
INVENTORY => 2 system printer(s) found
INVENTORY => 1 video adapter(s) found
INVENTORY => 1 system monitor(s) found
INVENTORY => Default IPv4 address is <172.16.223.117>
INVENTORY => Registered company <>, registered owner <bytel>, Product ID <00371-86...>
INVENTORY => Product key <FJ82H-XT...>
INVENTORY => 50 software found
INVENTORY => Computer/VM UUID is <A8752E42-8169-5C57-6A31-AA17D0D94804>
INVENTORY => Computer seems to be VMware virtual host
INVENTORY => System Memory set to 2048 (instead of 2048)
INVENTORY => Reading last inventory state
AGENT => Communication Server ask for IpDiscover
IPDISCOVER => Scanning to detect IPv4 enabled hosts for network <172.16.223.0>
8 @MAC:00:50:56:9E:24:87 NAME:bt1svmmr.bpa.bouyguestelecom.fr
stelecom.fr
IP

EXECUTABLE PLUGIN => Searching for VBS script(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
EXECUTABLE PLUGIN => Searching for executable(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
AGENT => Sending Inventory
INVENTORY => Checking last inventory state
INVENTORY => Logical drives inventory state changed
INVENTORY => Inventory changed since last run
INVENTORY => Generating XML document with Device properties
INVENTORY => XML Update BIOS
INVENTORY => XML Update 2 CPU(s)
INVENTORY => XML Update 64 Memory Slot(s)
INVENTORY => XML Update 2 Input Device(s)
INVENTORY => XML Update 4 System Port(s)
INVENTORY => XML Update 5 System Controler(s)
INVENTORY => XML Update 7 System Slot(s)
INVENTORY => XML Update 0 Sound Device(s)
INVENTORY => XML Update 3 Storage Peripheral(s)
INVENTORY => XML Update 3 Logical Drive(s)
INVENTORY => XML Update 0 Modem(s)
INVENTORY => XML Update 1 Network Adapter(s)
INVENTORY => XML Update 1 Video Adapter(s)
INVENTORY => XML Update 1 Monitor(s)
INVENTORY => XML Update 2 Printer(s)
INVENTORY => XML Update 51 Software
INVENTORY => XML Update 0 Registry Value(s)
INVENTORY => XML Update Administrative Information(s)
INVENTORY => XML Update common Device properties
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 <cacert.pem>
COM SERVER => Sending HTTP Post request to URL <http://172.16.223.116:8080/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
AGENT => Inventory successfully sent
INVENTORY => Writing new inventory state
AGENT => Communication Server ask for Package Download
DOWNLOAD => Package <1406301662> forced, ignoring package history check
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Metadata file <info> for package <1406301662> is located at <https://172.16.223.116:440/download/1406301662/info>
COM SERVER => Initializing cURL library for getFile
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
COM SERVER => Sending fileGet request to URL <https://172.16.223.116:440/download/1406301662/info>
WARNING *** COM SERVER => Failed to send HTTP Get request <SSL peer certificate or SSH remote key was not OK>
COM SERVER => Cleaning cURL library
ERROR *** DOWNLOAD => Failed to download Metadata file <https://172.16.223.116:440/download/1406301662/info> to <C:\ProgramData\OCS Inventory NG\Agent\download\1406301662\info>
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:41.
A voir également:

4 réponses

Natsumiko78 Messages postés 5 Date d'inscription lundi 28 juillet 2014 Statut Membre Dernière intervention 17 octobre 2014
28 juil. 2014 à 17:14
Re,

Pour information j'utilise XAMPP 1.7.7 fourni avec le package OCS Server 2.1.1 et la même version pour l'agent. Les appliances Apache, MySQL, etc sont donc d'origines.

Merci d'avance pour votre aide :)
0
Natsumiko78 Messages postés 5 Date d'inscription lundi 28 juillet 2014 Statut Membre Dernière intervention 17 octobre 2014
25 août 2014 à 11:11
Bonjour,

Bon j'ai beaucoup avancé depuis, et refait un retour en arrière également.
J'ai tout réinstallé au propre, j'ai réussi le déploiement de package, et Apache et Mysql ont l'air heureux.

La problématique rencontrée ? XAMPP 1.7.7 possèdent des outils pas toujours à jour pour répondre aux critères de sécurité de am boite. Je pense notamment à OpenSSL et PHP. J'ai installé les packages à la main, PHP 5.4 et OpenSSL1.1i. Ca a l'air de bien s'intégrer à l'archi, mais quand je lance mon serveur web OCS, la page s'affiche en FTP sous la forme "Index of /ocsreports.

J'avoue bloquer complètement là. J'ai fait déjà des modifs sur httpd.conf et php.ini pour mettre des chemins corrects mais rien n'y fait.

Mecri d'avance pour vos idées.
0
Natsumiko78 Messages postés 5 Date d'inscription lundi 28 juillet 2014 Statut Membre Dernière intervention 17 octobre 2014
9 sept. 2014 à 16:52
Bonjour,

Bon et bien comme il n'y a pas eu beaucoup d'effusion de réponses, j'ai gratté gratté et j'ai vaincu ! :)
J'ai réussi à intégrer une version PHP récente et un Openssl digne de ce nom en compilant plusieurs infos sur différents sites.
Tout fonctionne, ou presque.
Je déploie mon agent via une GPO, en intégrant des commandes particulières pour les agents via le packager. L'@ server, mode debug etc... Seulement, le fichier ocsinventory.ini n'est pas correct.. Je dois faire les modifs à la mano pour que ça fonctionne.
J'imagine que c'est un bug, mais le cas où je dois déployer sur presque une centaine de postes, je ne vai spas m'amuser à faire la modifs de cette manière là... une astuce? une idée sur une conf?
Merci !! :D
0
Natsumiko78 Messages postés 5 Date d'inscription lundi 28 juillet 2014 Statut Membre Dernière intervention 17 octobre 2014
17 oct. 2014 à 10:09
Up !


Et une autre question, y'a moyen de déployer l'agent OCS via une GPO, mais sans que cela nécessite le redémarrage des postes clients? Ces PCs sont critiques, on les redémarre jamais (ou vraiment que très rarement!)

Merci !
0