FOGProject / fogproject

An open source computer cloning & management system
https://fogproject.org
GNU General Public License v3.0
1.14k stars 222 forks source link

Add FOG Analytics #405

Closed wayneworkman closed 4 years ago

wayneworkman commented 4 years ago

This adds the components needed for FOG Analytics. The FOG Installer was modified to setup a weekly cronjob. This cron job is created such that a random day, hour, and minute is chosen during installation to create the cron job with. This job runs once per week. If it fails, it is of no consequence to the FOG Server's operation. The cron job collects the following information from the FOG Server:

This information is then sent to the FOG Analytics API, which records these three things. This information will be used to inform the FOG Developers of what OSs and Versions are out there being used for FOG going into the future such that they can make more-informed decisions for the FOG Project.

After installed, there are some settings for this located at /opt/fog/analytics/settings which will allow you to choose the day, hour, and minute, the log file, and the user to run the job as. This file is used by the FOG installer to re-create the cron job upon each installation run.

Discussion is here: https://forums.fogproject.org/topic/14668/popularity-contest

mastacontrola commented 4 years ago

I've added the information so that we have all paths taken care of.

Thank you for the PR and all!