Cisco change against 7.3.6

Hugo van der Kooij <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Here is a patch for the cisco parser against the one in 7.3.6:

--- cisco.7.3.6 2007-05-20 02:24:33.000000000 +0200
+++ cisco       2007-08-31 07:30:41.000000000 +0200
@@ -195,6 +195,9 @@
     elsif ( ($unmatched) = ($ThisLine =~ /%AUDIT-5-RUN_CONFIG/) ) {
        $ConfigChange{$host}++;
     }
+   elsif ( ($HASH) = ($ThisLine =~ /%AUDIT-5-STARTUP_CONFIG: Startup Configuration changed. Hash:\s(^\s)/) ) {
+      $StartConfigChange{host}++;
+   }
     elsif ( ($interface,$errortype,$withwho) = ($ThisLine =~ /duplex mismatch discovered on (.+) \(.*\), with (.*)/) ) {
        $DuplexMismatched{$host}{$interface." with ".$errortype}++;
     }
@@ -662,6 +665,14 @@
     }
  }

+if (keys %StartConfigChange) {
+   print "\nDevice start config changes :\n";
+   foreach $ThisOne (sort keys %StartConfigChange) {
+      print "   " . $ThisOne . ": " . $StartConfigChange{$ThisOne} . " Time(s)\n";
+   }
+}
+
+
  if (keys %LoginFail) {
     print "\nLogin failed on device :\n";
     foreach $ThisOne (sort keys %LoginFail) {


-- 
 	[email protected]	http://hugo.vanderkooij.org/
 	    This message is using 100% recycled electrons.

 	Some men see computers as they are and say "Windows"
 	I use computers with Linux and say "Why Windows?"
 	(Thanks JFK, for this quote of George Bernard Shaw.)

_______________________________________________
Logwatch-Devel mailing list
[email protected]
http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
cisco.patch (text/plain, 971 B)
--- cisco.7.3.6	2007-05-20 02:24:33.000000000 +0200
+++ cisco	2007-08-31 07:30:41.000000000 +0200
@@ -195,6 +195,9 @@
    elsif ( ($unmatched) = ($ThisLine =~ /%AUDIT-5-RUN_CONFIG/) ) {
       $ConfigChange{$host}++;
    }
+   elsif ( ($HASH) = ($ThisLine =~ /%AUDIT-5-STARTUP_CONFIG: Startup Configuration changed. Hash:\s(^\s)/) ) {
+      $StartConfigChange{host}++;
+   }
    elsif ( ($interface,$errortype,$withwho) = ($ThisLine =~ /duplex mismatch discovered on (.+) \(.*\), with (.*)/) ) {
       $DuplexMismatched{$host}{$interface." with ".$errortype}++;
    }
@@ -662,6 +665,14 @@
    }
 }
 
+if (keys %StartConfigChange) {
+   print "\nDevice start config changes :\n";
+   foreach $ThisOne (sort keys %StartConfigChange) {
+      print "   " . $ThisOne . ": " . $StartConfigChange{$ThisOne} . " Time(s)\n";
+   }
+}
+
+
 if (keys %LoginFail) {
    print "\nLogin failed on device :\n";
    foreach $ThisOne (sort keys %LoginFail) {
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.