I am unable to import OCS files to the master server to load the inventory the server in the DMZ collected.
CentOS Linux release 7.4.1708,
PHP Version : 7.2.2
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.2 mod_perl/2.0.10 Perl/v5.16.3
Database Server : MariaDB Server version 5.5.56-MariaDB
Version OCSReports: 2.4
The internal agents using an SSL configured agent work correctly, a record is added to the ocsweb dB. The DMZ, SSL enabled, agents can talk to the OCS server in the DMZ and OCS files are generated.
From the OCS DMZ server I can run the injector and get an OK message.
Loading /path/invfile-2018-02-21-11-07-57.ocs...OK.
However, no record is found when I go to the admin console on the internal server. I moved the OCS file to the internal server ran the injector and had the same OK message.
Loading /path/invfile-2018-02-21-11-07-57.ocs...OK.
Still no record for the import.
If I go to Manage | Local Import. To server: http://localhost:80/ocsinventory and load the file from the gui I have an Error HTTP/1.1 400 Bad Request
I get the injector OK message for both HTTP and HTTPS import server.
/var/log/httpd/access_log
127.0.0.1 - - [22/Feb/2018:00:41:44 -0500] "POST /ocsinventory HTTP/1.1" 400 226 "-" "-"
127.0.0.1 - - [22/Feb/2018:00:41:51 -0500] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.2 mod_perl/2.0.10 Perl/v5.16.3 (internal dummy connection)"
127.0.0.1 - - [22/Feb/2018:00:41:52 -0500] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.2 mod_perl/2.0.10 Perl/v5.16.3 (internal dummy connection)"
10.8.150.101 - - [22/Feb/2018:00:50:34 -0500] "POST /ocsreports/ HTTP/1.1" 200 6263 "-" "OCS-NG_INJECTOR_PL_v3"
127.0.0.1 - - [22/Feb/2018:00:51:00 -0500] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.2 mod_perl/2.0.10 Perl/v5.16.3 (internal dummy connection)"
127.0.0.1 - - [22/Feb/2018:00:53:04 -0500] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.2 mod_perl/2.0.10 Perl/v5.16.3 (internal dummy connection)"
127.0.0.1 - - [22/Feb/2018:00:53:21 -0500] "POST /ocsinventory HTTP/1.1" 400 226 "-" "-"
127.0.0.1 - - [22/Feb/2018:00:53:37 -0500] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.2 mod_perl/2.0.10 Perl/v5.16.3 (internal dummy connection)"
The apache error_log is not modified nor is /var/log/ocsinventory-server/activity.log