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

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

add a custom list in Statistics page

Hi, is there a doc on how to add a custom report under statistics page?

http://$site/ocsreports/index.php?function=stats

I have found my way to 

/usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_stats

and made a copy of msstatstop.class.php and customized the class name. I am fairly advanced in PHP and should be able to navigate my way around the code to pull data from databse, but just wondering if there is a developer doc on how to add reports to statistics.  (also feel free to direct me to correct method if i am going about this incorrectly).

All I am going to do is pull a quick report and sort by installed version of categories "web server" and "database server" which I created. 

├── class

│   ├── msstats.class.php

│   ├── msstatsconnexion.class.php

│   ├── msstatsdrp.class.php

│   └── msstatstop.class.php

├── files

│   └── ms_stats_top_soft.txt

└── ms_stats.php

asked in Core server development by (180 points)

1 Answer

0 votes
i figured it out. edit the mstats file and look at sql commands.
answered by (180 points)
 
Powered by Question2Answer
...