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.

installing OCSinventory on debian 11

Hello world, I'm new on OCS inventory and I'm trying to install/configure OCS Inventory server (the db, communication, deploy and administration console all on the same server)  on a debian bullseye (debian 11.4). This is what I have done.

First of all I have installed the certificate for the OCS inventory repository:

# curl http://deb.ocsinventory-ng.org/pubkey.gpg | gpg --dearmor > /etc/apt/trusted.gpg.d/ocsinventory-debian-bullseye.gpg

and then I have added to the apt sources the OCS repository:

deb [signed-by=/etc/apt/trusted.gpg.d/ocsinventory-debian-bullseye.gpg] http://deb.ocsinventory-ng.org/debian/ bullseye main

then I have launched the following commands to install OCS Inventory 2.10.0:

# apt update && apt install ocsinventory-server ocsinventory-reports

Then I followed the steps in http://myserver/ocsreports/install.php

All seems to work.

Then I login on http://inventory.csaricerche.com/ocsreports, changed the admin password and I get this security alert:

Your install.php exists in your installation directory (by default : /usr/share/ocsinventory-reports/ocsreports).
I have to remove install.php from /usr/share/ocsinventory-reports/ocsreports?
Then I have successfully installed the windows agent 2.9.2.0 on a windows client and run the agent.
No errors are reported but in http://inventory.csaricerche.com/ocsreports I can't find any information about this client and on the client I can find these logs:
==============================================================================
Starting OCS Inventory Agent on Thursday, July 14, 2022 11:29:49.
AGENT => Running OCS Inventory Agent Version 2.9.2.0
AGENT => Using OCS Inventory FrameWork Version 2.9.2.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 cURL Communication Provider> Version <2.9.2.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 => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending fileGet request to URL <http://inventory/ocsinventory/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #500>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #500>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <WIN10PRO-V01-2022-07-14-11-27-10> and MACs <3A:09:D5:F3:31:9ABE:A6:28:9E:D4:6826:E1:DD:40:F2:40BE:98:7D:DD:88:52E2:17:9D:59:69:DD> 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://inventory/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #500>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

...and I fear that I have forgot some configuration detail on the server. Someone can help me to correctly configure ocs inventory server?
Thank you very much
Piviul
in OCS Inventory NG server for Unix by (420 points)

11 Answers

0 votes
For credentials, the usual way is

- creation of database, user, user passwd + apply in MySQL/MariaDB

- install of OCS : during installation, 2 conf files for Apache are created, they need to be activate (a2enconf) and 'z-ocsinventory-server.conf' need to be edited with credentials

- launch ocsreports : this run install.php : ask for credentials (for creation of 'dbconfig.inc.php'), then creation of all tables needed in database.

If you want change credentials, it's easy when you know the 2 files to change.

About /sys/firmware/..., you could get kernel informations using pseudo-files in /proc and /sys : OCS agent try to read some of these files to inventory hardware ressources. Depending on Distribution version, these files could exist or not : no matter if there is error reading these files !

I use OCS since more than 15 years : installation is very easy (even apache knowledge is needed), but explore and configure all options is not so simple, not so obvious. I spend some time (months) in previous job to update an old server with 8k active hardware, so now I have a good idea about OCS running ...
by (19.2k points)
 
Powered by Question2Answer
...