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

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

OCS and Remote DB; issue with the Agent

Good morning everybody,

I have been trying to set up an OCS administrative server based on Linux that share a MySql instance on another machine. I have modyfied the conf file (ocsinventory.conf.local) to let it see a DB on the remote Database Server, but it is stille pointing on the local database.

Perhaps there is something that I am missing or probably is not possible to use a remote database. Did someone test the application with a remote database?

In each case, I've used a local database and now I am experiencing issue with the Agent... is not communicating with the management server. I have fixed some error message but I am still retrieving this kind of erroron the PC:

Starting OCS Inventory NG Agent on Wednesday, October 15, 2014 10:59:39.
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\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\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 <ROMVBW701-2014-10-10-17-38-41> and MACs <00:0C:29:5E:08:69> 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 <\\10.0.1.17\ocs$\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <https://romvbocsp/ocsinventory>
    WARNING *** COM SERVER => Failed to send HTTP Post request <SSL peer certificate or SSH remote key was not OK>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <SSL peer certificate or SSH remote key was not OK>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.

I thought that installation was not good and for testing purposes I have also tried the vappliance, but I am retrieving the same error.

The agent version is 2.1.1, the management serve installed has the same versioning and the vappliance, instead, is 2.05. Do you have any suggestion?

Thank you in advance for your help.

Regards,

Mirko

in OCS Inventory NG server for Unix by (160 points)

2 Answers

0 votes
Hi,

How have you generated your certificate?
by (88.5k points)
0 votes

Hi,

thank you. At the moment I have uninstalled the machine and I am testing with the virtual appliance. I have installed the certificate as described here (http://wiki.ocsinventory-ng.org/index.php/Howtos:VMOcsinventory-ng):

Générating SSL certificate

By default, the cacert.pem SSL certificate included in the virtual machine has expired. You must generate a new one.

To do this, in a terminal, type :

cd /ocs
./apache_generate_cert.sh


Answer the questions asked while retaining ocsinventory-ng Common Name.

Once back at the prompt, restart Apache:

service apache2 restart


The certificate is automatically used by Apache and is available from a client under the address : \\ocsinventory-ng\ocs$.

During the testing phase I had no issues... At the moment I am trying to install it again with a CentOs 7.0. To verify if something went wrong during the packages installation.

 

Regards

 

 

by (160 points)
 
Powered by Question2Answer
...