Good day,
I have installed OCS inventory 2.1.2 on a ubuntu 14.04 server.
This is my first time,
Apache version 2.4.7
MySQL version 5.5.40
I can log in the website (created by setup.sh http:\\wd-vglpi015\ocsreports )
I have installed the agent on my windows 8.1 machine. It wil run but the machine is not coming into ocsinventory website. On the Apache.error.log I get this message,
[Fri Nov 28 08:43:37.636534 2014] [:error] [pid 4647] [client 192.168.3.161:52146] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/ocsinventory-reports/ocsreports/backend/require/connexion.php on line 10, referer: http://wd-vglpi015.aalsmeer.waterdrinker.nl/ocsreports/
[Fri Nov 28 08:43:38.747690 2014] [:error] [pid 4647] [client 192.168.3.161:52146] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/ocsinventory-reports/ocsreports/backend/require/connexion.php on line 10, referer: http://wd-vglpi015.aalsmeer.waterdrinker.nl/ocsreports/?function=visu_groups
[Fri Nov 28 08:43:40.590821 2014] [:error] [pid 4647] [client 192.168.3.161:52146] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/ocsinventory-reports/ocsreports/backend/require/connexion.php on line 10, referer: http://wd-vglpi015.aalsmeer.waterdrinker.nl/ocsreports/?function=visu_computers
In the apache acces.log I see this
f9bjmq1-w8.aalsmeer.waterdrinker.nl - - [28/Nov/2014:08:43:12 +0100] "POST /ocsreports HTTP/1.1" 301 524 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.1"
f9bjmq1-w8.aalsmeer.waterdrinker.nl - - [28/Nov/2014:08:43:12 +0100] "GET /ocsreports/ HTTP/1.1" 200 4373 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.1"
This the log from my local computer,
==============================================================================
Starting OCS Inventory NG Agent on Friday, November 28, 2014 08:35:15.
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 <F9BJMQ1-W8-2014-11-27-09-49-13> and MACs <08:11:96:34:88:D0D0:67:E5:39:B2:4C60:D8:19:F8:A3:9D08:11:96:34:88:D1> 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 <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending HTTP Post request to URL <http://wd-vglpi015/ocsreports>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
================= TRACE START ===============
================= TRACE STOP ===============
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Prolog Frequency set to 10 hour(s)
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.
And here is my local ocsinventroy.ini file
[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=2
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://wd-vglpi015/ocsreports
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
PROLOG_FREQ=10
OLD_PROLOG_FREQ=10
TTO_WAIT=35820
I have tried to rename in connexion.php the mysql_connect to mysqli_connect but then the website doesn't work anymore.
Anybody ideas for me?