Bonjour,
J'ai monté une Debian 10 avec OCS Inventory afin de faire un inventaire de parc.
Lorsque que j'effectue la remonté des agents sur Windows j'ai ceci comme erreur :
Code :
- ==============================================================================
- Starting OCS Inventory NG Agent on Thursday, January 02, 2020 11:56:55.
- AGENT => Running OCS Inventory NG Agent Version 2.6.0.0
- AGENT => Using OCS Inventory NG FrameWork Version 2.6.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 NG cURL Communication Provider> Version <2.6.0.0>
- 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://192.168.1.5:3306/ocsinventory/deploy/label>
- WARNING *** COM SERVER => Failed to send HTTP Get request <Couldn't connect to server>
- COM SERVER => Cleaning cURL library
- AGENT => Failed to retrieve Label <Couldn't connect to server>
- AGENT => Sending Prolog
- DID_CHECK => Read DeviceID <PC-NEAU-2020-01-02-08-56-02> and MACs <00:FF:12:B3:23:3164:80:99:E1:03:790A:00:27:00:00:0C70:5A:0F:83:26:2800:FF:9C:F0:32:CE00:FF:BF:87:6E:D400:FF:EF:F9:A1:0100:15:5D:15:18:57> 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://192.168.1.5:3306/ocsinventory>
- WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>
- COM SERVER => Cleaning cURL library
- ================= TRACE START ===============
- ================= TRACE STOP ===============
- ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
- AGENT => Unloading communication provider
- AGENT => Unloading plug-in(s)
- AGENT => Execution duration: 00:00:43.
|
Voici les fichiers de conf :
Z-ocsinventory-server.conf :
# Master Database settings
# Replace localhost by hostname or ip of MySQL server for WRITE
PerlSetEnv OCS_DB_HOST localhost
# Replace 3306 by port where running MySQL server, generally 3306
PerlSetEnv OCS_DB_PORT 3306
# Name of database
PerlSetEnv OCS_DB_NAME OCS
PerlSetEnv OCS_DB_LOCAL OCS
# User allowed to connect to database
PerlSetEnv OCS_DB_USER Test
# Password for user
PerlSetVar OCS_DB_PWD test123
dbconfig.inc.php :
<?php
define("DB_NAME", "OCS" );
define("SERVER_READ","localhost" );
define("SERVER_WRITE","localhost" );
define("COMPTE_BASE","test" );
define("PSWD_BASE","test123" );
?>
- Le compte test a bien les droits sur la BDD (MariaDB)
- Mes services MYSQL et APACHE 2 ont bien été reboot
- Les pare-feu sont désactivé sur les postes agent
- Je ping très bien le serveur OCS depuis mes postes agent
Voici le .ini des agents Windows :
[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=2
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.1.5:3306/ocsinventory
SSL=0
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=1380
INVENTORY_ON_STARTUP=0
J'ai pas mal cherché sur le net et je n'ai pas trouvé de solution miracle pour le moment
Si quelqu'un à une idée ou a déjà rencontré le soucis je suis preneur
Message édité par haraxus le 03-01-2020 à 08:56:58