Bug 109498
Summary: | logwatch reports "Unmatched Entries" when hostname has a dash "-" in name for cron entries. | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Pete Nesbitt <pete> |
Component: | logwatch | Assignee: | Elliot Lee <sopwith> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | ivan, jgd |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i586 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-08-20 20:12:39 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Attachments: |
Description
Pete Nesbitt
2003-11-08 18:02:28 UTC
Created attachment 95830 [details]
diff of original /etc/log.d/scripts/services/cron and patched copy
I am not too familair with the process as it is my first submission. I have
attached a "diff -l" and called it a patch, I hope that is the correct
process/terminalogy.
Just changed the string a bit more as it was allowing a hostname consisting of only (one or more) dashes. Change string: Original s/^... .. ..:..:.. \w+ \w+\[\d+\]: \((\S+)\)\s+// 1st fix: s/^... .. ..:..:.. [-\w]+ \w+\[\d+\]: \((\S+)\)\s+// 2nd fix: s/^... .. ..:..:.. [-*\w+]+ \w+\[\d+\]: \((\S+)\)\s+// actual change between 1st fix & 2nd is: [-\w]+ became [-*\w+]+ (new diff attached) Created attachment 95832 [details]
output of 'diff -l' on the original cron file and the 2nd fix.
corrects first fix that allowed hostname of all dashes.
Created attachment 95865 [details]
just cleaned old commented lines from new file. (cleaner diff)
Thanks Pete - that is exactly what I've been seeing, and I've finally got round to looking at it. It is probably worthwhile bearing in mind that many places (ISPs especially) use naming standards, and use a "-" as a separator (eg web-1, etc). This is why we hit it. *** Bug 110291 has been marked as a duplicate of this bug. *** Looks like the latest logwatch has a fix for this issue. |