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.

Some sections are empty: Network, Videos

Hello.

The reports uploads fine, but some sections has no data, for example Network, Videos. In previous version the same agent works fine. Local import to XML has data:

    <VIDEOS>
         <NAME>NVIDIA Quadro P1000</NAME>
         <CHIPSET>Quadro P1000</CHIPSET>
         <MEMORY>4095</MEMORY>
         <RESOLUTION>1920 x 1200</RESOLUTION>
     </VIDEOS>

 perl ocsinventory-injector.pl -v -f /usr/local/www/apache24/data/162-005-2021-12-10-10-59-27.xml -u http://localhost/ocsinventory - the same effect - no data in Videos section, table ocsweb.videos is aslo empty

  • FreeBSD
  • 13.0-RELEASE
  • FreeBSD 13.0-RELEASE

  • PHP Version :
  • Web Server :
  • Database Server :
  • Version OCSReports:
  • 8.0.14
  • Apache/2.4.52 (FreeBSD) OpenSSL/1.1.1k-freebsd PHP/8.0.14 mod_perl/2.0.11 Perl/v5.32.1
  • Source distribution version 8.0.27
  • 2.9.2
  •  

in OCS Inventory NG server for Unix by (270 points)

3 Answers

0 votes
Hello

Some errors in apache error log file ?

Regards
by (88.5k points)
0 votes

Apache error log is empty. Apache start error:

/usr/local/etc/rc.d/apache24 start
Performing sanity check on apache24 configuration:
ocsinventory-server: Bad setting. `IPDISCOVER_LINK_TAG_NETWORK` is not set. Default: `0`
Syntax OK
Starting apache24.
ocsinventory-server: Bad setting. `IPDISCOVER_LINK_TAG_NETWORK` is not set. Default: `0`

Apache access log:

tail -f /var/log/httpd-access.log
10.26.32.22 - - [13/Jan/2022:10:56:56 +0300] "POST //ocsinventory HTTP/1.1" 200 331
10.26.32.22 - - [13/Jan/2022:10:57:20 +0300] "POST //ocsinventory HTTP/1.1" 200 91

OCS activity log on report upload:

tail -f /var/log/ocsinventory-server/activity.log
Thu Jan 13 10:50:49 2022;76664;100;162-005-2021-12-10-10-59-27;10.26.32.22;OCS-NG_WINDOWS_AGENT_v2.9.0.0;prolog;accepted
Thu Jan 13 10:50:49 2022;76664;315;162-005-2021-12-10-10-59-27;10.26.32.22;OCS-NG_WINDOWS_AGENT_v2.9.0.0;session;already handled
Thu Jan 13 10:50:49 2022;76664;525;162-005-2021-12-10-10-59-27;10.26.32.22;OCS-NG_WINDOWS_AGENT_v2.9.0.0;session;failed
Thu Jan 13 10:51:15 2022;76665;318;162-005-2021-12-10-10-59-27;10.26.32.22;OCS-NG_WINDOWS_AGENT_v2.9.0.0;session;missing
Thu Jan 13 10:51:15 2022;76665;114;162-005-2021-12-10-10-59-27;10.26.32.22;OCS-NG_WINDOWS_AGENT_v2.9.0.0;inventory;no_session
Thu Jan 13 10:51:15 2022;76665;104;162-005-2021-12-10-10-59-27;10.26.32.22;OCS-NG_WINDOWS_AGENT_v2.9.0.0;inventory;incoming
Thu Jan 13 10:51:16 2022;76665;110;162-005-2021-12-10-10-59-27;10.26.32.22;OCS-NG_WINDOWS_AGENT_v2.9.0.0;inventory_cache;checking
Thu Jan 13 10:51:16 2022;76665;111;162-005-2021-12-10-10-59-27;10.26.32.22;OCS-NG_WINDOWS_AGENT_v2.9.0.0;inventory_cache;already_handled
Thu Jan 13 10:51:16 2022;76665;113;162-005-2021-12-10-10-59-27;10.26.32.22;OCS-NG_WINDOWS_AGENT_v2.9.0.0;inventory;u:drives
Thu Jan 13 10:51:16 2022;76665;101;162-005-2021-12-10-10-59-27;10.26.32.22;OCS-NG_WINDOWS_AGENT_v2.9.0.0;inventory;transmitted

by (270 points)
0 votes

Ocs inventory interface errors:

tail /var/log/httpd-error.log
[Thu Jan 13 11:01:47.405634 2022] [php:warn] [pid 76801] [client 10.26.32.22:61374] PHP Warning:  Trying to access array offset on value of type null in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 1580, referer: site://ocsreports/index.php?function=computer&head=1&systemid=346&cat=hardware
[Thu Jan 13 11:01:47.405655 2022] [php:warn] [pid 76801] [client 10.26.32.22:61374] PHP Warning:  Trying to access array offset on value of type null in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 1580, referer: site://ocsreports/index.php?function=computer&head=1&systemid=346&cat=hardware
[Thu Jan 13 11:01:47.405689 2022] [php:warn] [pid 76801] [client 10.26.32.22:61374] PHP Warning:  Undefined array key "REPLACE_VALUE" in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 2023, referer: site://ocsreports/index.php?function=computer&head=1&systemid=346&cat=hardware
[Thu Jan 13 11:01:47.405719 2022] [php:warn] [pid 76801] [client 10.26.32.22:61374] PHP Warning:  Undefined array key "DEBUG" in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 90, referer: site://ocsreports/index.php?function=computer&head=1&systemid=346&cat=hardware
[Thu Jan 13 11:01:47.432952 2022] [php:warn] [pid 76801] [client 10.26.32.22:61374] PHP Warning:  Undefined array key "DEBUG" in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 105, referer: site://ocsreports/index.php?function=computer&head=1&systemid=346&cat=hardware
[Thu Jan 13 11:01:47.433005 2022] [php:warn] [pid 76801] [client 10.26.32.22:61374] PHP Warning:  Undefined variable $rows in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 1853, referer: site://ocsreports/index.php?function=computer&head=1&systemid=346&cat=hardware
[Thu Jan 13 11:01:47.433030 2022] [php:warn] [pid 76801] [client 10.26.32.22:61374] PHP Warning:  Undefined array key "SQL_DEBUG" in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 2041, referer: site://ocsreports/index.php?function=computer&head=1&systemid=346&cat=hardware
[Thu Jan 13 11:01:47.433055 2022] [php:warn] [pid 76801] [client 10.26.32.22:61374] PHP Warning:  Undefined array key "DEBUG" in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 90, referer: site://ocsreports/index.php?function=computer&head=1&systemid=346&cat=hardware
[Thu Jan 13 11:01:47.433298 2022] [php:warn] [pid 76801] [client 10.26.32.22:61374] PHP Warning:  Undefined array key "DEBUG" in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 105, referer: site://ocsreports/index.php?function=computer&head=1&systemid=346&cat=hardware
[Thu Jan 13 11:01:47.433341 2022] [php:warn] [pid 76801] [client 10.26.32.22:61374] PHP Warning:  Undefined array key "SQL_DEBUG" in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 2060, referer: site://ocsreports/index.php?function=computer&head=1&systemid=346&cat=hardware
by (270 points)
 
Powered by Question2Answer
...