RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 883427 - [RFE] logwatch support for mdadm devices
Summary: [RFE] logwatch support for mdadm devices
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: logwatch
Version: 6.3
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Jan Synacek
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-04 15:12 UTC by jcpunk
Modified: 2015-10-12 13:47 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-12 13:47:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to add support for mdadm (3.96 KB, patch)
2012-12-04 15:13 UTC, jcpunk
no flags Details | Diff
pure perl scrape of /proc/mdstat (7.36 KB, patch)
2012-12-07 14:51 UTC, jcpunk
no flags Details | Diff
Less error prone pure perl scrape of /proc/mdstat (7.70 KB, patch)
2012-12-12 20:59 UTC, jcpunk
no flags Details | Diff

Description jcpunk 2012-12-04 15:12:38 UTC
Description of problem: It would be nice if logwatch could report on mdadm devices in addition to its other functionality


Version-Release number of selected component (if applicable):7.3.6-49.el6


How reproducible: always


Steps to Reproduce:
1. have mdadm devices
2. wish to know their status
3. have to ssh in to look
  
Actual results: no reporting


Expected results: some reporting


Additional info:

http://old.nabble.com/Fwd:-support-for-mdadm-on-linux-td16407756.html

Comment 1 jcpunk 2012-12-04 15:13:12 UTC
Created attachment 657581 [details]
patch to add support for mdadm

This patch adds support for mdadm

Comment 3 Jan Synacek 2012-12-05 10:44:03 UTC
The patch is 4 years old and seems that it has never been accepted upstream. It looks pretty ok-ish to me (not the shell calls though).

Comment 4 jcpunk 2012-12-06 16:52:43 UTC
A few years back the mdadm folks said to only use mdadm to query the status.  Their current docs don't say that, so I'll whip something up in pure perl....

Will take a bit though.

Comment 5 jcpunk 2012-12-07 14:51:53 UTC
Created attachment 659419 [details]
pure perl scrape of /proc/mdstat

This patch makes no system calls.

For this to work under selinux, logwatch will need read access to system_u:object_r:proc_mdstat_t in order to read /proc/mdstat

Comment 6 jcpunk 2012-12-10 14:18:24 UTC
That patch didn't run right on one of my hosts over the weekend.

I'll have a fixed one once I get it sorted.

Comment 7 jcpunk 2012-12-12 20:59:00 UTC
Created attachment 662605 [details]
Less error prone pure perl scrape of /proc/mdstat

This version runs fine on my systems.  Selinux still needs to grant getattr and read access to /proc/mdstat but this patch wont error out if the access is denied.

Comment 8 Jan Synacek 2013-01-09 07:31:45 UTC
FYI mdadm script has been recently added to the mainstream repository:
http://logwatch.svn.sourceforge.net/logwatch/?rev=122&view=rev

Comment 9 RHEL Program Management 2013-10-14 00:12:14 UTC
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 unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.


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