diff --git a/README.md b/README.md index 242ebbc..c854538 100644 --- a/README.md +++ b/README.md @@ -118,10 +118,14 @@ Generate the metric file for the first time: /srv/statoolinfos/bin/statoolinfos probe -full /srv/statoolinfos/conf/foo.bar.org.conf ``` -Create a cron file to update the metric file everyday: - +Create a cron file in `/etc/cron.d/statoolinfos` to update the metric file everyday: ``` -1 * * * * root /srv/statoolinfos/bin/probe -previousday /srv/statoolinfos/conf/foo.bar.org.conf +1 0,12 * * * root /srv/statoolinfos/bin/statoolinfos probe -previousday /srv/statoolinfos/conf/foo.bar.org.conf >> /srv/statoolinfos/cron.log +``` + +In case of several configuration files, just set the configuration directory (without wildcard): +``` +1 0,12 * * * root /srv/statoolinfos/bin/statoolinfos probe -previousday /srv/statoolinfos/conf/ >> /srv/statoolinfos/cron.log ``` Warning: in previous day mode, the metrics generated are overwrited for the last month, the last week and the last day. So, six weeks in logs are required. @@ -136,6 +140,7 @@ conf.probe.httpaccesslog.file=/var/log/apache2/foo.bar.org-access.log* conf.probe.httpaccesslog.pattern= # This parameter requires real ip proxy setting and log output setting. conf.probe.etherpad.logs=/var/log/etherpad/output.log +# Database URL. Example of the most frequent cases: # jdbc:mariadb://localhost:1234/databasename # jdbc:mysql://localhost:1234/databasename # jdbc:postgresql://localhost:1234/databasename @@ -146,8 +151,6 @@ conf.probe.etherpad.database.password= conf.probe.target=/srv/statoolinfos/well-known/statoolinfos/foo.bar.org-metrics.properties ``` - - ### Framdadate metrics (coming soon) Configuration template: @@ -266,6 +269,29 @@ conf.probe.httperrorlog.file=/var/log/apache2/foo.bar.org-error.log* conf.probe.target=/srv/statoolinfos/well-known/statoolinfos/foo.bar.org-metrics.properties # Custom access log pattern with Java regex. -# Default: "^(?[a-zA-F0-9\\\\:\\\\.]+) - (?[^\\[]+) \\[(?