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.

CVE Reporting is empty

I have OCS Inventory installed with in a test environment with the following values:

Operating system:

  • OS Name: Linux x86_64
  • Version: 4.15.0-54-generic
  • RAM installed: 928 MB
  • Free RAM: 618 MB
  • CPU: Intel (R) Core (TM) i5-2400 CPU @ 3.10GHz
  • Distribution: Ubuntu 18.04.2 LTS

OCS Server:

  • PHP Version: 7.2.19
  • Web Server: Apache / 2.4.29 (Ubuntu)
  • Database Server: mariadb.org binary distribution version 10.3.16-MariaDB-1: 10.3.16 maria ~ bionic-log
  • OCSReports version: 2.6

I'm trying to configure CVE.
The configuration parameters are:

I have the crontab with 2 tasks configured:

  • 05 00 * * * root wget --spider http: //localhost/ocsreports/crontab/cron_cve.php
  • 00 02 * * * root /usr/share/ocsinventory-reports/ocsreports/crontab/.scripts/cron_cve.script

I think that with either task would be enough.

The script /usr/share/ocsinventory-reports/ocsreports/crontab/.scripts/cron_cve.script:

cd /usr/share/ocsinventory-reports/ocsreports/crontab/php ./cron_cve.php

I think everything is correct, but when I access "Inventory -> CVE Reporting -> All CVE", the table is empty. (No data available in table)

Can someone tell me what can be wrong?
Thank you

in OCS Inventory NG server for Unix by (560 points)
edited by

4 Answers

0 votes
Any ideas about this subject?
If you need more information, please tell me.
Thank you
by (560 points)
0 votes

I have the same issue. I couldn't solve it .

by (180 points)
0 votes
PHP Warning:  Invalid argument supplied for foreach() in /home/ocsuser/OCSInventory-Server/ocsreports/require/cve/Cve.php on line 165
This is the error i get.
by (180 points)
0 votes


@pjagudo :

Of course, your script must contains 3 lines (and not 2 as in your message)

cd /usr/share/ocsinventory-reports/ocsreports/crontab/

php ./cron_cve.php

Info: I think it is not good to request the site https://cve.circl.lu several times a day, this feature worked for me a few months ago and it took the first time around 17-18 hours to populate the database and display results [very slow] - be patient !

@akose :

I have the same problem as you in the file Cve.php (line 165), I put this issue to the developers of the team.

Best, St├ęphane

by (32.6k points)
Powered by Question2Answer