Quantcast
Channel: Ocsinventory Q&A - Recent questions without answers
Viewing all articles
Browse latest Browse all 4604

add a custom list in Statistics page

$
0
0

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


Viewing all articles
Browse latest Browse all 4604

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>