SF.net SVN: logwatch:[105] scripts/services/dhcpd

[email protected]
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 105
          http://logwatch.svn.sourceforge.net/logwatch/?rev=105&view=rev
Author:   stefjakobs
Date:     2012-05-09 07:53:09 +0000 (Wed, 09 May 2012)
Log Message:
-----------
fix: DHCPDECLINE
fix: duplicate leases

Modified Paths:
--------------
    scripts/services/dhcpd

Modified: scripts/services/dhcpd
===================================================================
--- scripts/services/dhcpd	2012-05-08 19:29:18 UTC (rev 104)
+++ scripts/services/dhcpd	2012-05-09 07:53:09 UTC (rev 105)
@@ -133,7 +133,7 @@
       if ($Detail >= 5) {
          $data{'Warnings'}{$line}++;
       }
-   } elsif ($line =~ s/^DHCPDECLINE of ([\d\.]+) from ([\w:]+) \(([^)]+)\) via ([\d\.]+).*$/$1 -> $2 [$3] ($4)/) {
+   } elsif ($line =~ s/^DHCPDECLINE of ([\d\.]+) from ([\w:]+) (?:\(([^)]+)\) )?via ([\d\.]+).*$/$1 -> $2 [$3] ($4)/) {
       if ($Detail >= 5) {
          $data{'Addresses Declined'}{$line}++;
       }
@@ -193,7 +193,7 @@
       if ($Detail >= 3) {
          $data{'Duplicate lease'}{$line}++;
       }
-   } elsif ($line =~ /^client [a-f0-9:]{18} has duplicate leases on/) {
+   } elsif ($line =~ s/^client ([a-f0-9:]{17}) has duplicate leases on ([a-f0-9\/.:]+)$/$1 on $2/ ) {
       if ($Detail >= 3) {
          $data{'Duplicate lease'}{$line}++;
       }

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.