Bug 204434 - email title is wrong when using splithosts
Summary: email title is wrong when using splithosts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: logwatch
Version: 4.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Ivana Varekova
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-29 03:41 UTC by Russell Coker
Modified: 2008-07-24 20:01 UTC (History)
1 user (show)

Fixed In Version: RHBA-2008-0750
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-24 20:01:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to fix this bug (2.69 KB, patch)
2006-08-29 06:49 UTC, Russell Coker
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2008:0750 0 normal SHIPPED_LIVE logwatch bug fix and enhancement update 2008-07-23 16:49:48 UTC

Description Russell Coker 2006-08-29 03:41:38 UTC
$Config{'splithosts'} = 1;

I have the above in /etc/cron.daily/00-logwatch and have the logs from multiple
machines ending up in syslog on a machine named "mg******".

The machine named "fl******" gets it's log entry processed first which means
that the title of the email is "LogWatch for fl******" instead of "LogWatch for
mg******".

It seems to me that a more appropriate email title when splithosts is used would
be "LogWatch run on $Config{'hostname'}".

I believe that the correct solution to this problem would involve having
$hostname refer to the host that is being processed and $Config{'hostname'}
refer to the machine that is running the logwatch.

Comment 1 Russell Coker 2006-08-29 06:49:55 UTC
Created attachment 135106 [details]
patch to fix this bug

This patch works for me on RHEL4.4.  Let me know if it would help if I wrote
and tested a patch for rawhide.

Comment 2 Ivana Varekova 2007-10-26 08:53:56 UTC
Putting on the proposed list.

Comment 3 RHEL Program Management 2007-11-29 04:24:40 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 9 errata-xmlrpc 2008-07-24 20:01:07 UTC
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 therefore 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-2008-0750.html


Note You need to log in before you can comment on or make changes to this bug.