Werk #2362: mk_logwatch: fix cases where one logfile is listsed more than once in logwatch.cfg

Komponente Checks & agents
Titel mk_logwatch: fix cases where one logfile is listsed more than once in logwatch.cfg
Datum 29.06.2015
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.2.7i3
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

One example of such a case:

logwatch.cfg

/var/log/syslog /var/log/kern.log
 C panic
 C Oops
 W generic protection rip
 W .*Unrecovered read error - auto reallocate failed

/var/log/kern.log
 C INFO

In the old implementation the line with C INFO would never be executed. Now it is appended at the bottom of the other patterns for kern.log.

Thanks to Gregor Hoffleit for the patch!

Zur Liste aller Werks