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.
==============================================================================
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