Description of problem: The logwatch script for cron doesn't run if the hostname contains a hyphen. Version-Release number of selected component (if applicable): logwatch-4.3.2-2.noarch.rpm How reproducible: always Steps to Reproduce: 1. Put a hyphen in the hostname 2. Run logwatch Actual results: If I am expecting a cron section in the LogWatch email message, this section doesn't appear. Expected results: I should get a cron section in LogWatch if I am expecting one. Additional info: We were able to work around this bug by patching /etc/log.d/scripts/logfiles/cron/applydate: 46c46 --- } elsif ($ThisLine =~ m/^$SearchDate2 ..:..:.. \w+ \w+\[\d+\]:/o) { +++ } elsif ($ThisLine =~ m/^$SearchDate2 ..:..:.. [a-zA-Z0-9.\-_]+ \w+\[\d+\]:/o) { But I notice that this line is different (probably fixed) for logwatch-5.2.2-1.EL4.1 on RHEL4 (line 60): +++ } elsif ($ThisLine =~ m/^$SearchDate2 ..:..:.. [^ ]+ \w+\[\d+\]:/o) {
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0333.html