Moodle Plugins directory: Site Statistics | Moodle.org

Site Statistics
Blocks ::: block_site_stats
Maintained by
Santosh Nagargoje
This block displays the site statistics (total number of active users, courses, activities and disk usage) on dashboard. It also provides hyperlinks to the user management, course management and activity management page.
Latest release:
106 sites
77 downloads
6 fans
Current versions available: 1
This block is generally used to show the site statistics such as total number of active users, courses, activities and disk usage on dashboard.
This block can be added & viewed by administrator and manager role. Other user roles can also view this block if they are allowed to view it.
This block provides shortcuts to user management, course management and activity management through the hyperlinks added to the counts.
This block comes with English, Marathi and Hindi language strings.
Useful links
Contributors
Santosh Nagargoje (Lead maintainer)
Please login to view contributors details and/or to contact them
Just installed the latest version (1.0.1), but I can not find it when I try to insert the block in a course page.
Need some guidance here.
Ricardo
This block can be added on dashboard page only. So, try to add it on dashboard page.
It works! Thanks!
But why the "Disk Usage" has a "-"?
Ricardo
That will get updated whenever disk usage task gets executed. So please schedule your core cron to every minute.
Also, you can run that scheduled task from Site Administration --> Server --> Scheduled task
Thanks,
Cron is running every minute. But the scheduled task "\block_site_stats\task\diskusage" is set do run at 00:00 (default value)
Execute scheduled task: Calculate Disk Usage (block_site_stats\task\diskusage)
... started 00:00:01. Current memory use 28,9 Mb.
... used 0 dbqueries
... used 4.0226199626923 seconds
Scheduled task complete: Calculate Disk Usage (block_site_stats\task\diskusage)
Only when I ran the scheduled task manually, the HD usage info appeared.
Ricardo
Yes, the diskusage task is scheduled at 00:00 so that will calculate that once in a day. if you purge all cache after that schedule then that time it will erase the data. So, I suggest you reschedule diskusage task by editing it to every 15 or 30 minutes as per your requirement.
Hope this will help you. Feel free to ask if you face any issue.
Thanks
My mistake!
I had a cron job that purge all caches at 00:05.
The plugin runs as expected!
Ricardo