Red Hat Bugzilla – Bug 110291
logwatch hostname pattern match in cron analysis
Last modified: 2007-04-18 12:59:33 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux)
Description of problem:
The hostname pattern match in /etc/log.d/scripts/services/cron is incorrect. Any host
which contains the character '-' in its name will get unmatched entries for things
which would be otherwise ignored.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install redhat 9 on a host with a minus in its name (e.g. host-1.example.com)
2. Wait until there are entries for cron.hourly in /var/log/cron
3. Run /etc/cron.daily/00-logwatch
Actual Results: You will see unmatched entries for 'cron.hourly' runs in the email
output by logwatch. These entries are correctly skipped if the hostname does not
contain a minus.
Expected Results: Invocations of cron.hourly should not show up in the email output
Created attachment 96035 [details]
Correction to pattern match for hostname field
*** This bug has been marked as a duplicate of 109498 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.