Fwd: small fix in dhcpd

"Kirk Bauer" <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
------------------------------------------------------
Kirk Bauer <[email protected]>
http://linux.kaybee.org | www.logwatch.org
Author, Automating UNIX & Linux Administration




---------- Forwarded message ----------
From: Stefan Jakobs <[email protected]>
Date: Fri, Dec 12, 2008 at 12:36 PM
Subject: small fix in dhcpd
To: [email protected]


Hello,

logwatch told me:
Unknown Entries:
   Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not
specified in the config file:

And this is the corresponding log line:
Nov  8 16:13:15 server dhcpd: Not searching LDAP since ldap-server, ldap-port
and ldap-base-dn were not specified in the config file

I attached a patch which will ignore this line.

Greetings
Stefan

_______________________________________________
Logwatch-Devel mailing list
[email protected]
http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
dhcpd.patch (text/x-diff, 591 B)
--- logwatch/scripts/services/dhcpd	2008-04-30 19:15:14.000000000 +0200
+++ dhcpd.new	2008-12-12 20:27:11.000000000 +0100
@@ -57,7 +57,8 @@
       ($line =~ /^Abandoning IP address/) or
       ($line =~ /^Unable to add (forward|reverse) map/) or
       ($line =~ /^Can\'t update (forward|reverse) map/) or
-      ($line =~ /^pool [0-9a-f]+ /)
+      ($line =~ /^pool [0-9a-f]+ /) or
+      ($line =~ /^Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file/)
       ) {
       # Ignore these lines
    } elsif ($line =~ s/Listening on\s+//) {
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBJQr0nBiHtkFOLX+gRAmm8AJ4ibWz/pXRcW14DBzKonIhr66xvZwCdFJa/
07D8XXOkEmYeR9qKHeCnbHU=
=Hw6c
-----END PGP SIGNATURE-----
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.