jkirk / ansible-role-checkmkagent

A simple role to deploy the Check_Mk Agent
0 stars 1 forks source link

logwatch.cfg.j2: check backup logs for pending tape drive cleanings #12

Closed mika closed 1 year ago

mika commented 1 year ago

We usually symlink /var/log/backup/backup_tape_latest on our backup server to its latest backup execution log. If such a backup system uses tape drives underneath, they might require regular tape drive cleaning procedure, showing up in execution logs as:

TapeAlert[21]: Clean Periodic:The tape drive needs to be cleaned at next opportunity.

To be aware of such a situation, let's monitor it via logwatch.

FTR: non-existing log files don't seem to cause any problems with checkmk's logwatch, so until we have a better way to add custom snippets for specific systems, let's add it to our default template.