Commit 0a7f4c45 authored by Frank Winkler's avatar Frank Winkler

Documentation for logrotate.

parent 024975bc
......@@ -5,8 +5,32 @@ There are different log files for the monitoring daemon, the job prolog and epil
Currently, we simply grep for keywords in these log files, such as `error` and `failure`, `outlier`.
If a keyword was found, the respective log file is saved with the name of the compute node to a shared file system and an email is sent to the administrators.
##TODO:
## Setup Logrotate for PIKA:
- specify location for error logfiles
- Register email addresses
- create cronjob...
\ No newline at end of file
Adjust the paths in the following files according to your setup:
- [pika_logrotate.conf](pika_logrotate.conf)
- [pika_logrotate.sh](pika_logrotate.sh)
- [pika_prerotate.sh](pika_prerotate.sh)
- [pika_collect_errors.sh](pika_collect_errors.sh)
- [pika_mail_error_info.sh](pika_mail_error_info.sh)
**Note**: prolog will copy `pika_logrotate.sh` to `/etc/cron.daily/` on each compute node if it does not already exist.
## Specify Prerotate Script
Logrotate is calling [pika_collect_errors.sh](pika_collect_errors.sh). You can add here "grep" keywords for collectd and prolog/epilog logfiles.
If this script detects errors, an error file is copied to `$ERROR_COLLECTION_PATH`.
## Create Cronjob and Register Email Addresses
Add [pika_mail_error_info.sh](pika_mail_error_info.sh) to crontab on a service node.
Example:
0 5 * * * /sw/taurus/tools/pika/daemon/logrotate/pika_mail_error_info.sh
This script sends an email to all registers members if `$ERROR_COLLECTION_PATH` contains erros.
Register email addresses in [pika_emails](../../pika_emails) to get error notifications.
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment