Updated "named" service

"Jesper K. Pedersen" <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Add the ability to recognize zone updates when view's are enabled

Example log entry that is now recognized :

Apr  8 06:08:26 rhea named[26193]: client 127.0.0.1#33446: view
intranet: updating zone 'solnet/IN': deleting rrset at 'io.solnet' A
Apr  8 06:08:26 rhea named[26193]: client 127.0.0.1#33446: view
intranet: updating zone 'solnet/IN': adding an RR at 'io.solnet' A



This log entry wasnt recognized before due to the "view intranet:"


Best regards
Jesper K. Pedersen

_______________________________________________
Logwatch-Devel mailing list
[email protected]
http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
named.patch (text/x-patch, 647 B)
--- named	2006-03-20 21:42:57.000000000 +0100
+++ named.updated	2007-04-07 21:24:35.000000000 +0200
@@ -184,6 +184,8 @@
       $NetworkUnreachable{$Way}{$FullHost}++;
    } elsif ( ($Zone,$Message) = ( $ThisLine =~ /client [^\#]+#[^\:]+: updating zone '([^\:]+)': (.*)$/ ) ) {
       $ZoneUpdates{$Zone}{$Message}++;
+   } elsif ( ($Zone,$Message) = ( $ThisLine =~ /client [^\#]+#[^\:]+: view \w+\: updating zone '([^\:]+)': (.*)$/ ) ) {
+      $ZoneUpdates{$Zone}{$Message}++;
    } elsif ( ($Host,$Zone) = ( $ThisLine =~ /approved AXFR from \[(.+)\]\..+ for \"(.+)\"/ ) ) {
       $FullHost = LookupIP ($Host);
       $AXFR{$Zone}{$FullHost}++;
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.