OSCam statistics script

LiNuX-SaT

Administrator
Staff member
Ofline
Hi
Here is a quick and dirty script I made to monitor OSCam, just for fun.
It permits to have some statistics over total ECM requests and statistics over the users.
The script uses the built-in API and shows the results by two graphs.

It requires a web server with php (with xml support) and a databse server.
  1. Setup config.php with the parameters that match your config.
  2. Create the database and the tables.
    You can use the content of oscam_users.sql to create the correct tables.
  3. Run updatestats.php with a cron job. Let's say every 5 minutes.
  4. stats.php shows you the ECM stats for your server (total).
  5. userstats.php shows you the stats per user.
Note that you will need to change files extension. The forum does not support php files in attachment

Use it at your own risk.
Limited support provided if needed

Have fun
Regards,
 

Attachments

Back
Top