Description of problem: logwatch does not properly parse temperature changes reported by smartd. Version-Release number of selected component (if applicable): logwatch-7.3-8.el5 smartmontools-5.38-2.el5 How reproducible: Steps to Reproduce: 1. Start smartd when disk has been idle for some time (i.e. is cool). 2. Heavily use disk. 3. check for lines like "smartd[3785]: Device: /dev/sg2, Temperature changed +2 Celsius to 34 Celsius (Min/Max 32/34!) " in /var/log/messages. 4. run "logwatch --range Today --print" Actual results: Logwatch report contains the lines: **Unmatched Entries** Device: /dev/sg2, Temperature changed +2 Celsius to 34 Celsius (Min/Max 32/34!) Expected results: Temperature change properly incorporated in section "Temperature Changes" Additional info: This only occurs for positive temperatur changes.
Created attachment 403966 [details] This patch fixes the problem for me. One-liner to properly parse temperature changes which contain a plus sign.
The upstream fixed the regular expression in the same way. This is a candidate for fastrack.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
This request was erroneously denied for the current release of Red Hat Enterprise Linux. The error has been fixed and this request has been re-proposed for the current release.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-1217.html