SF.net SVN: logwatch:[245] trunk
[email protected] Wed, 24 Sep 2014 11:59:44 +0000
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 245
http://sourceforge.net/p/logwatch/code/245
Author: stefjakobs
Date: 2014-09-24 11:59:42 +0000 (Wed, 24 Sep 2014)
Log Message:
-----------
Bug#27: make mdadm scanning an option (Thanks: Peter Backes)
Modified Paths:
--------------
trunk/conf/services/mdadm.conf
trunk/scripts/services/mdadm
Modified: trunk/conf/services/mdadm.conf
===================================================================
--- trunk/conf/services/mdadm.conf 2014-09-23 12:47:20 UTC (rev 244)
+++ trunk/conf/services/mdadm.conf 2014-09-24 11:59:42 UTC (rev 245)
@@ -10,6 +10,11 @@
Title = "Mdadm"
+# Logwatch will try to find md devices in /etc/mdadm.conf or
+# /etc/mdadm/mdadm.conf. If none of these files exist it can scan actively
+# for md devices. Set to 'Yes' to enable active scanning:
+$MDADM_ENABLE_SCAN = No
+
# Which logfile group...
LogFile = messages
Modified: trunk/scripts/services/mdadm
===================================================================
--- trunk/scripts/services/mdadm 2014-09-23 12:47:20 UTC (rev 244)
+++ trunk/scripts/services/mdadm 2014-09-24 11:59:42 UTC (rev 245)
@@ -25,13 +25,14 @@
use strict;
my $Detail = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 0;
+my $enable_scan = $ENV{'mdadm_enable_scan'} || 0;
my @devices = ();
if ( -f "/etc/mdadm.conf" ) {
open(MDADM,"< /etc/mdadm.conf");
} elsif ( -f "/etc/mdadm/mdadm.conf" ) {
open(MDADM,"< /etc/mdadm/mdadm.conf");
-} else {
+} elsif ($enable_scan) {
open(MDADM,"mdadm --detail --scan 2>/dev/null|");
}
while (<MDADM>) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk