Good morning, I have a Red Hat 7.9 server with OCS 2.6, php 7.3.33, Apache 2.4.6, OpenSSL 1.0.2, mod_perl 2.0.11, Perl 5.16.3 and MySQL 5.7.18 in production.
I have another test server Red Hat 7.9 with OCS 2.11.1, php 8.1.15, Apache 2.4.6, OpenSSL 1.0.2, mod_perl 2.0.11, Perl 5.16.3 and MySQL 5.7.18.
In tests with the latter I am having problems when collecting data with the agent from the computers. In the OcsInventory.log I have this:
========================================
Starting OCS Inventory Agent on Thursday, February 23, 2023 09:53:31.
AGENT => Running OCS Inventory Agent Version 2.10.1.0
AGENT => Using OCS Inventory FrameWork Version 2.10.1.0
AGENT => Loading plugin(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.10.1.0>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <XXXXXXXXXXX-2023-02-14-08-54-30> and MACs <F4:39:09:10:8D:EB> 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 <cacert.pem>
COM SERVER => Sending HTTP Post request to URL <
https://test.company.es/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
================= TRACE START ================
<?xml version='1.0' encoding='UTF-8'?>
<REPLY>
<OPTION>
<NAME>REGISTRY</NAME>
<PARAM NAME="Recent Run Command Entries" REGKEY="Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" REGTREE="1">*</PARAM>
<PARAM NAME="Recently saved or opened files" REGKEY="Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSavePidlMRU" REGTREE="1">*</PARAM>
<PARAM NAME="Recently saved or opened keys" REGKEY="Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRU" REGTREE="1">*</PARAM>
<PARAM NAME="Recent Documents" REGKEY="Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" REGTREE="1">*</PARAM>
<PARAM NAME="Windows executable cache" REGKEY="Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache" REGTREE="1">*</PARAM>
<PARAM NAME="Ã================ TRACE STOP ================
AGENT => Prolog successfully sent
AGENT => Prolog Frequency set to 24 hour(s)
AGENT => Inventory on startup option set to 1
AGENT => Inventory required
AGENT => Launching hardware and software checks
INVENTORY => Loading Download history
INVENTORY => WMI FLAG MODE is set to <WBEM_FLAG_RETURN_WBEM_COMPLETE>
INVENTORY => Logged on user ID is <XXXXXXXX>
INVENTORY => Operating System is <Microsoft Windows 10 Pro 10.0.19043 >, description <>
INVENTORY => Operating System uses 64-bit memory address width
INVENTORY => Computer domain or workgroup is <test.tst>
INVENTORY => User domain is <>
INVENTORY => System Manufacturer <HP>, System Model <HP ProDesk 400 G5 SFF>, System S/N <XXXXXXXXXXX>, Bios Manufacturer <HP>, Bios Date <04/16/2021>, Bios Version <Q08 Ver. 02.16 .00>, Motherboard Manufacturer <HP>, Motherboard Model <>, Motherboard S/N <xxxxxxxxxxxx>
INVENTORY => 1 processor(s) Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz [6 core(s) x86_64] at 3000 MHz
INVENTORY => OS Memory 8031 MB, OS Swap size 9567 MB
INVENTORY => 2 memory slot(s) found
INVENTORY => 2 input device(s) found
INVENTORY => 29 system port(s) found
INVENTORY => 4 system slot(s) found
INVENTORY => 5 system controller(s) found
INVENTORY => 2 storage peripheral(s) found
INVENTORY => 4 sound device(s) found
WARNING *** INVENTORY => Failed to retrieve modems
INVENTORY => 6 network adapter(s) found
INVENTORY => 7 system printer(s) found
INVENTORY => 2 video adapter(s) found
INVENTORY => 2 system monitor(s) found
INVENTORY => Default IPv4 address is <xx.xxx.xxx.xxx>
INVENTORY => Default Gateway address is <xx.xxx.xxx.x>
INVENTORY => Default DNS address is <xx.xx.xx.xx / xx.xx.xx.xx>
INVENTORY => Registered company <xxxxxxx>, registered owner <XXXX>, Product ID <00330-80...>
INVENTORY => Product key <xxxxx-xx...>
INVENTORY => 294 software found
INVENTORY => Computer/VM UUID is <8562B67F-688B-0314-148E-40EB8BA4280F>
INVENTORY => Computer seems to be Microsoft virtual host
INVENTORY => System Memory set to 8192 (instead of 8031)
INVENTORY => Reading last inventory state
AGENT => Communication Server asks for Registry Query
REGISTRY => Executing query asked by server
REGISTRY => 8 query successfully executed
EXECUTABLE PLUGIN => Searching for VBS script(s) in folder
<C:\Program Files\OCS Inventory Agent\plugins>
EXECUTABLE PLUGIN => Searching for PS1 script(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
EXECUTABLE PLUGIN => Found executable plugin <Saas.ps1>
================= TRACE START ===============
================= TRACE STOP ===============
EXECUTABLE PLUGIN => Plugin <Saas.ps1> executed successfully
AGENT => Sending Inventory
INVENTORY => Checking last inventory state
INVENTORY => Logical drives inventory state changed
INVENTORY => Software inventory state changed
INVENTORY => Inventory changed since last run
INVENTORY => Generating XML document with Device properties
INVENTORY => XML Update BIOS
INVENTORY => XML Update 1 CPU(s)
INVENTORY => XML Update 2 Memory Slot(s)
INVENTORY => XML Update 2 Input Device(s)
INVENTORY => XML Update 29 System Port(s)
INVENTORY => XML Update 5 System Controller(s)
INVENTORY => XML Update 4 System Slot(s)
INVENTORY => XML Update 4 Sound Device(s)
INVENTORY => XML Update 2 Storage Peripheral(s)
INVENTORY => XML Update 2 Logical Drive(s)
INVENTORY => XML Update 0 Modem(s)
INVENTORY => XML Update 6 Network Adapter(s)
INVENTORY => XML Update 2 Video Adapter(s)
INVENTORY => XML Update 2 Monitor(s)
INVENTORY => XML Update 7 Printer(s)
INVENTORY => XML Update 295 Software
INVENTORY => XML Update 0 Registry Value(s)
INVENTORY => XML Update Administrative Information(s)
INVENTORY => XML Update common Device properties
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 <cacert.pem>
COM SERVER => Sending HTTP Post request to URL <
https://test.company.es/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #500>
COM SERVER => Cleaning cURL library
================= TRACE START ===============
================= TRACE STOP ===============
ERROR *** AGENT => Failed to send Inventory <HTTP Status Code #500>
AGENT => Communication Server asked for Package Download
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Download disabled by server
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:12.
The error_log file shows:
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::215:5dff:fe09:1d56. Set the 'ServerName' directive globally to suppress this message
[Thu Feb 23 09:31:32.739031 2023] [lbmethod_heartbeat:notice] [pid 946] AH02282: No slotmem from mod_heartmonitor
[Thu Feb 23 09:31:34.130410 2023] [mpm_prefork:notice] [pid 946] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips PHP/8.1.15 mod_perl/2.0.11 Perl/v5.16.3 configured -- resuming normal operations
[Thu Feb 23 09:31:34.130441 2023] [core:notice] [pid 946] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Feb 23 09:40:00.129286 2023] [mpm_prefork:notice] [pid 946] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Feb 23 09:40:01.332911 2023] [suexec:notice] [pid 1620] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::215:5dff:fe09:1d56. Set the 'ServerName' directive globally to suppress this message
[Thu Feb 23 09:40:01.486750 2023] [lbmethod_heartbeat:notice] [pid 1620] AH02282: No slotmem from mod_heartmonitor
[Thu Feb 23 09:40:01.536444 2023] [mpm_prefork:notice] [pid 1620] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips PHP/8.1.15 mod_perl/2.0.11 Perl/v5.16.3 configured -- resuming normal operations
[Thu Feb 23 09:40:01.536473 2023] [core:notice] [pid 1620] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Feb 23 09:52:52.863280 2023] [mpm_prefork:notice] [pid 1620] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Feb 23 09:52:54.061407 2023] [suexec:notice] [pid 2577] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::215:5dff:fe09:1d56. Set the 'ServerName' directive globally to suppress this message
[Thu Feb 23 09:52:54.215319 2023] [lbmethod_heartbeat:notice] [pid 2577] AH02282: No slotmem from mod_heartmonitor
[Thu Feb 23 09:52:54.263620 2023] [mpm_prefork:notice] [pid 2577] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips PHP/8.1.15 mod_perl/2.0.11 Perl/v5.16.3 configured -- resuming normal operations
[Thu Feb 23 09:52:54.263647 2023] [core:notice] [pid 2577] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
ssl_access_log file:
xx.xxx.xxx.xxx - - [23/Feb/2023:09:53:31 +0100] "POST /ocsinventory HTTP/1.1" 200 630
xx.xxx.xxx.xxx - - [23/Feb/2023:09:53:42 +0100] "POST /ocsinventory HTTP/1.1" 500 527
ssl_error_log file:
[Thu Feb 23 09:40:01.333416 2023] [ssl:warn] [pid 1620] AH01909: RSA certificate configured for fe80::215:5dff:fe09:1d56:443 does NOT include an ID which matches the server name
[Thu Feb 23 09:40:01.487263 2023] [ssl:warn] [pid 1620] AH01909: RSA certificate configured for fe80::215:5dff:fe09:1d56:443 does NOT include an ID which matches the server name
[Thu Feb 23 09:52:54.061912 2023] [ssl:warn] [pid 2577] AH01909: RSA certificate configured for fe80::215:5dff:fe09:1d56:443 does NOT include an ID which matches the server name
[Thu Feb 23 09:52:54.215832 2023] [ssl:warn] [pid 2577] AH01909: RSA certificate configured for fe80::215:5dff:fe09:1d56:443 does NOT include an ID which matches the server name
ssl_request_log file:
23/Feb/2023:09:53:31 +0100] xx.xxx.xxx.xxx TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "POST /ocsinventory HTTP/1.1" 630
[23/Feb/2023:09:53:42 +0100] xx.xx.xxx.xxx TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "POST /ocsinventory HTTP/1.1" 527
The configuration files z-ocsinventory-server.conf, zz-ocsinventory-restapi-conf and dbconfig.inc.php have the correct user data, database name and password.