small innreport patch

Fabien Tassin fta at sofaraway.org
Thu May 10 12:49:08 UTC 2001



--- etc/innreport.conf.orig	Wed Jan 17 17:30:34 2001
+++ etc/innreport.conf	Thu May 10 14:39:45 2001
@@ -999,6 +999,26 @@
 	};
 };
 
+section innd_max_conn {
+        title   "Too many incoming connections (innd):";
+	data    "%innd_max_conn";
+	sort    "$innd_max_conn{$b} <=> $innd_max_conn{$a}";
+        column {
+                name          "Server";
+                format        "%-70.70s";
+		value         "$key";
+		format_total  "TOTAL: %-63.63s";
+		total         "$num";
+        };
+        column {
+                name          "Conn";
+		format_name   "%8s";
+                format        "%8d";
+		value         "$innd_max_conn{$key}";
+		total         "total(%innd_max_conn)";
+        };
+};
+
 section innd_too_many_connects_per_minute {
 	title	"INND too many connects per minute:";
 	data	"%innd_too_many_connects_per_minute";
--- lib/innreport_inn.pm.orig	Mon Mar  5 11:48:25 2001
+++ lib/innreport_inn.pm	Thu May 10 13:48:32 2001
@@ -361,6 +361,11 @@
        $innd_control{"flush_file"}++;
        return 1;
      }
+    # too many connections from site
+    if ($left =~ /too many connections from (\S+)/o) {
+      $innd_max_conn{$1}++;
+      return 1;
+    }
     # overview exit 0 elapsed 23 pid 28461
     return 1 if $left =~ m/\S+ exit \d+ .*$/o;
     # internal rejecting huge article

-- 
Fabien Tassin -+- fta at sofaraway.org


More information about the inn-patches mailing list