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

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

Curious forbidden access on my OCS Inventory

Hello, 

Here is my issue. I installed a GLPI server and an OCS server on Debian 12. No issues during the installation of both machines; I installed the OCS module in GLPI, everything is fine. The configuration of OCS is fine until the computer inventory process, where I encounter a 403 error. 

I tested the OCS client on different machines and faced the same issue. I can access my page at servername/ocsreports, but servername/ocsinventory gives me a 403 error. I believe I did everything that seems logical... A complete reinstallation of OCS, verification of the configuration. Everything seems fine, but I can't find the source of the problem. I’ve tried almost everything I found on the web while ensuring I understood what I was doing, and still nothing...

So :

- I have a GLPI server who works fine

- An OCS Server who works fine

- Communication between GLPI and OCS seems to be ok

- I can reach http://servername/ocsreports but not http://servername/ocsinventory

- Here is some log from Apache2/error.log after trying to connect a client :

ocsinventory-server: Bad setting. `SNMP_LINK_TAG` is not set. Default: `0`

[Wed Mar 26 12:01:20.961653 2025] [mpm_prefork:notice] [pid 916:tid 916] AH00163: Apache/2.4.62 (Debian) mod_perl/2.0.12 Perl/v5.36.0 configured -- resuming normal operations

[Wed Mar 26 12:01:20.961804 2025] [core:notice] [pid 916:tid 916] AH00094: Command line: '/usr/sbin/apache2'

[Wed Mar 26 12:02:53.969654 2025] [proxy_fcgi:error] [pid 1316:tid 1316] [client XX.XX.XX.XX:54869] AH01071: Got error 'PHP message: PHP Deprecated:  Optional parameter $option declared before required parameter $list_col_cant_del is implicitly treated as a required parameter in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 130; PHP message: PHP Deprecated:  Optional parameter $visibleCol d>

[Wed Mar 26 12:03:02.156899 2025] [proxy_fcgi:error] [pid 949:tid 949] [client XX.XX.XX.XX:54882] AH01071: Got error 'PHP message: PHP Deprecated:  Optional parameter $title declared before required parameter $post is implicitly treated as a required parameter in /usr/share/ocsinventory-reports/ocsreports/require/ipdiscover/Ipdiscover.php on line 66; PHP message: PHP Deprecated:  Optional parameter $type declared before requir>

[Wed Mar 26 12:03:07.270698 2025] [proxy_fcgi:error] [pid 949:tid 949] [client XX.XX.XX.XX:54882] AH01071: Got error '; PHP message: PHP Deprecated:  Creation of dynamic property Stats::$INTERFACE_BIOS_DIAGRAM_VISIBILITY is deprecated in /usr/share/ocsinventory-reports/ocsreports/require/stats/Stats.php on line 66', referer: http://servername/ocsreports/

[Wed Mar 26 12:03:07.387928 2025] [proxy_fcgi:error] [pid 949:tid 949] [client XX.XX.XX.XX:54882] AH01071: Got error 'PHP message: PHP Deprecated:  Creation of dynamic property Stats::$INTERFACE_BIOS_DIAGRAM_VISIBILITY is deprecated in /usr/share/ocsinventory-reports/ocsreports/require/stats/Stats.php on line 66', referer: http://servername/ocsreports/

Thanks for your help

ago in OCS Inventory NG server for Unix by (120 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...