Scripts description

All scripts are using the configuration file config.pl to know the options you have choosen. You don't have to modify in any case the scripts to run excepting if you find a bug of course or you want to alter the scripts.

You will have to run cron-pages.pl only once except if you change some values in the configuration file.

List of scripts :


Cron-hour.pl
Aim Hourly stats
It compute stats for each hours of the current day, by scanning the logfile on the current day.
Frequency Once every hour.
If you forget to run it one hour, it won't loose any data as cron-hour.pl compute the hourly stats from the beginning of the current day. This is a secure way as if your hosts crash for several hours, you won't loose any data.
Time taken A few seconds.
How it works It scan the logfile for the current date and compute values for each hours from the beginning of the current day. It will also save the hourly stats at midnight, the files can be viewed in the table of daily stats.
Options
-a scan all the logfile to produce hourly stats
-d <dd/Mmm/yyyy> scan only a specific day
-e output in english only
-f output in french only
-h help
-i <file> input logfile
-p <level> precision level
-v display version
Notes Produced a day stats you can see in the text version of the daily stats. Will not save over than one year daily files. Can be run as a standalone prg.


Cron-jour.pl
Aim Daily stats
It compute text and graphics stats for each day, by scanning files produced by cron-pages or cron-inc.
Frequency Once every day.
No data lost if you forget to run it one day.
Time taken From a few seconds to a few minutes.
How it works It scan differents files produced by cron-pages or cron-inc , extract some values and compute the graphs and table data.
Options
-d <number> number of days
-e output in english only
-f output in french only
-b bar charts graphs
-l lines graphs
-c lines filled graphs
-h help
-v display version
-p <level> precision level
Notes You could look for the last previous days stats in the text option. The hourly stats script save its daily file at the end of the day and cron-jour.pl add the link in its table data.


Cron-semaines.pl
Aim Weekly stats
It compute stats for each week by scanning files produced by cron-pages or cron-inc.
Frequency Once every week.
No data lost if you forget to run it one week.
You will have to wait two weeks to see the graphs (need two points to draw a graph !).
Time taken From a few seconds to a few minutes.
How it works It scan differents files produced by cron-pages or cron-inc , extract some values and compute the graphs and table data.
Options
-e output in english only
-f output in french only
-b bar charts graphs
-l lines graphs
-c lines filled graphs
-h help
-v display version
-p <level> precision level
Notes Cron-semaines compute a graph for the directory stats.
It will also compute graphs for each directories you have choosen in the configuration files.


Cron-mois.pl
Aim Monthly stats
It compute stats for each month by scanning the log file.
Frequency Once every month.
No data lost if you forget to run it one month.
You will have to wait two months to see the graphs (need two points to draw a graph !).
Time taken From a few seconds to a few minutes.
How it works It scan the log file to extract a resume stats for each month.
Options
-a incremental run
-e output in english only
-f output in french only
-b bar charts graphs
-l lines graphs
-c lines filled graphs
-h help
-v display version
-p <level> precision level
Notes When choosing th '-a' flag, the script will scan only the last month, speeding the process !