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

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

OCS on Windows server 2012 and Windows 7 install NG Agent

Hi,

I have try this  use the windows server 2012 INSATLL Windows-Server-Setup 2.1.1.0  and Windows 7 INSTALL Windows-Agent-2.1.1.3 join it domain.

 I name a hostname of server as ocs

 I have install OCS Server on Windows server 2012 succesfully and apache service run successfully as well as mysql service.

 During installation page of Windows agent on Windows7. It ask for the name of server so I can't put http://ocs/ocsinventory and http://192.192.124.114/ocsinventory, but  can to ping icmp and responce from server

 I have turn off the firewall also and check mysql name and password is correctly include dbconfig.inc check.

 I go to administer setup on ocs management  and add new subnet already

 However the agent don't send it inventory to server.

as below windows even log & OCS agent log.

1.Service encounter error <Failed to load/parse last inventory state>.

2.Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 4 => Failed to talk with Communication Server)>.

OCS Log as below:

==============================================================================
Starting OCS Inventory NG Agent on Wednesday, September 07, 2016 07:52:24.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
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) successfully 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.3>
AGENT => Sending Prolog
 DID_CHECK => Read DeviceID <DPC021-2016-09-01-10-38-12> and MACs <44:87:FC:D7:E1:31> 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://192.192.124.114/ocsinventory>
 WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>
 COM SERVER => Cleaning cURL library
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:21.

OCSINVENTORY .INI

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=1
HKCU=0
NoTAG=1
IpDisc=
[HTTP]
Server=http://192.192.124.114/ocsinventory
SSL=0
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=0

 How to solve this ? Thanks.

in OCS Inventory NG server for Windows by (120 points)
edited by

1 Answer

0 votes
Hi,

Is mod_perl installed and activated on your windows server?

This how to permits you to verify it : with your browser go to http://192.192.124.114/ocsinventory then an error occurs. error 400 should be this error and it means that mod_perl is installed and activvated.

If uou don't have this error then install mod_perl on the server and activate it in apache conf file.

Regards

Frank
by (90.2k points)
Dear Frank,

Where do i to download "mod_perl " ??

 I had installed OCS Inventory NG Server for WindowsCS for OCS wesites that I had follow  download step to do it.Why the Perl has fail install the server. I have no idea.... How i do to check Perl install error??

However, Do I follow you and  where can I to download  the mod_perl for windwos version. I need to remove Xampp or apache then install mod_perl?

Many thanks for your great support.

PS: I had installed apach 2.2.21(WIn32) PHP 5.3.8, Xampp 1.7.7, perl 5.10.1 and mysql in win2010 R2(64bit)

Best Regards,

David

Hi Frank,

connect to http://192.192.124.114/ocsinventory occur error.

Bad request!

Your browser (or proxy) sent a request that this server could not understand.

If you think this is a server error, please contact the webmaster.

Error 400

192.192.124.114
09/20/16 10:12:36
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

 
Powered by Question2Answer
...