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
Netstat =>Désolée je suis sur le pc du boulot archi bloqué, je peux pas joindre une image mais grosso merdo ca ressemble à ça :
0.0.0.0 port 440 PID 1104 httpd.exe
0.0.0.0 port 3300 PID 1364 mysqld.exe
0.0.0.0 port 8080 PID 1104 httpd.exe
127.0.01 port 3300 PID 1364 mysqld.exe
127.0.0.1 port 49240 PID 612 httpd.exe
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 Cxampp/perl/site/lib/Apache/Ocsinventory.pm line 64.
Terminating on signal SIGTERM(15)
[Mon Jul 28 10:36:47 2014] [warn] pid file Cxampp/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 Cxampp/perl/site/lib/Apache/Ocsinventory.pm line 64.
Download.log
==============================================================================
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
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.
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
Message édité par Drewpinette le 17-12-2014 à 09:54:48