Mise à jour de 'README.md'
This commit is contained in:
parent
5521dcaec5
commit
4ec7e4de81
1 changed files with 3 additions and 4 deletions
|
@ -118,15 +118,14 @@ Generate the metric file for the first time:
|
||||||
/srv/statoolinfos/bin/statoolinfos probe -full /srv/statoolinfos/conf/foo.bar.org.conf
|
/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/statoolinfos probe -previousday /srv/statoolinfos/conf/foo.bar.org.conf >> /srv/statoolinfos/cron.log
|
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):
|
In case of several configuration files, just set the configuration directory (without wildcard):
|
||||||
```
|
```
|
||||||
1 * * * * root /srv/statoolinfos/bin/statoolinfos probe -previousday /srv/statoolinfos/conf/ >> /srv/statoolinfos/cron.log
|
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.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue