[Logwatch-Devel] Fwd: dhcpd, smartd

Kirk Bauer kirk at kaybee.org
Thu Oct 19 09:00:20 MST 2006


---------- Forwarded message ----------
From: Sergey Svishchev <svs at ropnet.ru>
Date: Oct 19, 2006 2:53 AM
Subject: dhcpd, smartd
To: logwatch-patches at logwatch.org


scripts/services/dhcpd
    If requesting station's name is empty, it is logged as "".  Warn about
this.

scripts/services/smartd
    smartd configuration file may be installed elsewhere (e.g. if
smartmontools were replaced by newer version from NetBSD pkgsrc).

--
Sergey Svishchev



--- scripts/services/dhcpd      13 Jan 2006 01:33:02 -0000      1.16
+++ scripts/services/dhcpd      19 Oct 2006 09:32:24 -0000
@@ -91,6 +91,10 @@
       if ($Detail >= 5) {
          $data{'Addresses Leased'}{$line}++;
       }
+   } elsif ($line =~ s/^DHCPOFFER on ([\d\.]+) to ("")
\(([a-zA-Z\d_-]+)\) via (\S+)\s*$/$1 -> $2 [$3] ($4)/) {
+      if ($Detail >= 5) {
+         $data{'Warnings'}{$line}++;
+      }
    } elsif ($line =~ s/^BOOTREPLY for ([\d\.]+) to ([a-zA-Z\d_-]+)
\(([a-f\d:]+)\) via (\S+)\s*$/$1 -> $3 [$2] ($4\/bootp)/) {
       if ($Detail >= 5) {
          $data{'Addresses Leased'}{$line}++;
--- scripts/services/smartd     15 Sep 2006 15:40:58 -0000      1.19
+++ scripts/services/smartd     19 Oct 2006 09:32:26 -0000
@@ -112,7 +112,7 @@
       $StartupFailed++;
    } elsif ( ($ThisLine =~ /smartd shutdown failed/ ) ) {
       $ShutdownFailed++;
-   } elsif ( my ($Device,$DLine) = ($ThisLine =~ /Unable to register
SCSI device (.*) at line ([0-9]*) of file \/etc\/smartd.conf/) ) {
+   } elsif ( my ($Device,$DLine) = ($ThisLine =~ /Unable to register
SCSI device (.*) at line ([0-9]*) of file/) ) {
       $UnableToReg{"$Device,$DLine"}++
    } elsif ( ($Device) = ($ThisLine =~ /Device ([^ ]+) not available/)) {
       $UnavailableDev{$Device}++;





-- 
Kirk Bauer <kirk at kaybee.org>
http://linux.kaybee.org | www.autorpm.org | www.logwatch.org


More information about the Logwatch-Devel mailing list