INN commit: trunk/scripts (innreport_inn.pm)
INN Commit
rra at isc.org
Tue Mar 16 19:39:42 UTC 2010
Date: Tuesday, March 16, 2010 @ 12:39:42
Author: iulius
Revision: 9004
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:
trunk/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:35:34 UTC (rev 9003)
+++ innreport_inn.pm 2010-03-16 19:39:42 UTC (rev 9004)
@@ -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