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.6 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Communication client serveur OCS sur Windows 2012 R2

Bonjour,

Voici mes composants :

Sur un serveur Windows 2012 R2

XAMPP Control Panel v3.2.2 (Compiled: Nov12th 2015)

Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15

OCS Inventory NG serveur 2.2

OCS Inventory NG Agents 2.1.2

Le client Ocs ne remonte pas dans la console OCS Serveur.

 

Dans le fichier error.log d'apache voici les erreurs que j'ai :

191.10.2.28 ==> Client OCS

 

[Tue Mar 01 15:38:04.141404 2016] [:error] [pid 2912:tid 1768] [client 191.10.2.28:58916] PHP Warning:  mysql_select_db() expects parameter 2 to be resource, object given in C:\\xampp\\htdocs\\ocsreports\\backend\\identity\\methode\\local.php on line 26, referer: http://191.10.1.100/ocsreports/
[Tue Mar 01 15:38:04.141404 2016] [:error] [pid 2912:tid 1768] [client 191.10.2.28:58916] PHP Warning:  mysql_query() expects parameter 2 to be resource, object given in C:\\xampp\\htdocs\\ocsreports\\require\\function_commun.php on line 94, referer: http://191.10.1.100/ocsreports/
[Tue Mar 01 15:38:04.141404 2016] [:error] [pid 2912:tid 1768] [client 191.10.2.28:58916] PHP Warning:  mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\\xampp\\htdocs\\ocsreports\\backend\\identity\\methode\\local.php on line 31, referer: http://191.10.1.100/ocsreports/
[Tue Mar 01 15:38:04.157030 2016] [:error] [pid 2912:tid 1768] [client 191.10.2.28:58916] PHP Warning:  mysql_select_db() expects parameter 2 to be resource, object given in C:\\xampp\\htdocs\\ocsreports\\backend\\ipdiscover\\methode\\local.php on line 17, referer: http://191.10.1.100/ocsreports/
[Tue Mar 01 15:38:04.157030 2016] [:error] [pid 2912:tid 1768] [client 191.10.2.28:58916] PHP Warning:  mysql_query() expects parameter 2 to be resource, object given in C:\\xampp\\htdocs\\ocsreports\\require\\function_commun.php on line 94, referer: http://191.10.1.100/ocsreports/
[Tue Mar 01 15:38:04.157030 2016] [:error] [pid 2912:tid 1768] [client 191.10.2.28:58916] PHP Warning:  mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\\xampp\\htdocs\\ocsreports\\backend\\ipdiscover\\methode\\local.php on line 21, referer: http://191.10.1.100/ocsreports/
[Tue Mar 01 15:38:04.157030 2016] [:error] [pid 2912:tid 1768] [client 191.10.2.28:58916] PHP Warning:  mysql_query() expects parameter 2 to be resource, object given in C:\\xampp\\htdocs\\ocsreports\\require\\function_commun.php on line 94, referer: http://191.10.1.100/ocsreports/
[Tue Mar 01 15:38:04.157030 2016] [:error] [pid 2912:tid 1768] [client 191.10.2.28:58916] PHP Warning:  mysql_error() expects parameter 1 to be resource, object given in C:\\xampp\\htdocs\\ocsreports\\backend\\ipdiscover\\methode\\local.php on line 35, referer: http://191.10.1.100/ocsreports/
[Tue Mar 01 15:38:22.970083 2016] [:error] [pid 2912:tid 1764] [client 191.10.2.28:58920] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\\xampp\\htdocs\\ocsreports\\backend\\require\\connexion.php on line 10
[Tue Mar 01 15:38:22.970083 2016] [:error] [pid 2912:tid 1764] [client 191.10.2.28:58920] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\\xampp\\htdocs\\ocsreports\\backend\\require\\connexion.php on line 10
[Tue Mar 01 15:38:34.126650 2016] [:error] [pid 2912:tid 1760] [client 191.10.2.28:58922] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\\xampp\\htdocs\\ocsreports\\backend\\require\\connexion.php on line 10, referer: http://191.10.1.100/ocsreports/index.php
[Tue Mar 01 15:38:34.126650 2016] [:error] [pid 2912:tid 1760] [client 191.10.2.28:58922] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\\xampp\\htdocs\\ocsreports\\backend\\require\\connexion.php on line 10, referer: http://191.10.1.100/ocsreports/index.php
[Tue Mar 01 15:38:34.142250 2016] [:error] [pid 2912:tid 1760] [client 191.10.2.28:58922] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\\xampp\\htdocs\\ocsreports\\backend\\require\\connexion.php on line 10, referer: http://191.10.1.100/ocsreports/index.php
[Tue Mar 01 15:38:38.663428 2016] [:error] [pid 2912:tid 1764] [client 191.10.2.28:58926] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\\xampp\\htdocs\\ocsreports\\backend\\require\\connexion.php on line 10, referer: http://191.10.1.100/ocsreports/index.php
[Tue Mar 01 15:38:39.876792 2016] [:error] [pid 2912:tid 1760] [client 191.10.2.28:58922] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\\xampp\\htdocs\\ocsreports\\backend\\require\\connexion.php on line 10, referer: http://191.10.1.100/ocsreports/index.php?function=visu_groups
[Tue Mar 01 15:38:40.392409 2016] [:error] [pid 2912:tid 1760] [client 191.10.2.28:58922] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\\xampp\\htdocs\\ocsreports\\backend\\require\\connexion.php on line 10, referer: http://191.10.1.100/ocsreports/index.php?function=visu_computers

 

Comment puis je résoudre mon problème ?

 

Il y a t'il un rapport avec la ligne suivante ?

PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\\xampp\\htdocs\\ocsreports\\backend\\require\\connexion.php on line 10:

merci pour vos éclaircissement.

 

Bonne journée
in OCS Inventory NG server for Windows by (160 points)

1 Answer

0 votes
Bonjour,

Voci le rapport du fichier OCSIventory.log

191.10.1.100 ==> Serveur OCS

Starting OCS Inventory NG Agent on Wednesday, March 02, 2016 09:12:37.
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://191.10.1.100/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 <VIAMONTEJ-2015-07-15-10-47-24> and MACs <F8:BC:12:A1:1A:A6> 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://191.10.1.100/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

 

Fichier ocsinventoty.ini

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://191.10.1.100/ocsinventory
SSL=0
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=19680
by (160 points)
 
Powered by Question2Answer
...