INN commit: branches/2.5/scripts (innreport_inn.pm)

INN Commit rra at isc.org
Tue Mar 16 19:52:38 UTC 2010


    Date: Tuesday, March 16, 2010 @ 12:52:38
  Author: iulius
Revision: 9011

innreport was not properly summing post errors:  the domain
count was not done (though configured in innreport.conf),
and the reader count was not working.

Modified:
  branches/2.5/scripts/innreport_inn.pm

------------------+
 innreport_inn.pm |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: innreport_inn.pm
===================================================================
--- innreport_inn.pm	2010-03-16 19:52:27 UTC (rev 9010)
+++ innreport_inn.pm	2010-03-16 19:52:38 UTC (rev 9011)
@@ -212,6 +212,7 @@
 our %nnrpd_dom_connect;
 our %nnrpd_dom_groups;
 our %nnrpd_dom_no_permission;
+our %nnrpd_dom_post_error;
 our %nnrpd_dom_post_ok;
 our %nnrpd_dom_post_rej;
 our %nnrpd_dom_reset_peer;
@@ -1508,7 +1509,10 @@
     # post/ihave failed
     if ($left =~ /(\S+) (post|ihave) failed (.*)$/o) {
       my ($cust, $error) = ($1, $3);
-      $nnrpd_post_error{$error}++;
+      $cust = lc $cust unless $CASE_SENSITIVE;
+      my $dom = &host2dom($cust);
+      $nnrpd_dom_post_error{$dom}++;
+      $nnrpd_post_error{$cust}++;
       return 1;
     }
     # post ok




More information about the inn-committers mailing list