Package: munin
Version: 1.2.2-3
Followup-For: Bug #302220

I solved the problem in a slightly similar way:

elsif (($line =~ /reject: \S+ \S+ \S+ (\S+)/) && (!($line 
=~/\/cleanup\[\d+\].*reject:/)))

however, in light of what you said in reply, I think the solution you
are suggesting is better, with the modification indicated below:

> In addition to that, what do you think about the additional elsif?
>
>        elsif ($line =~ /postfix\/cleanup.* reject:/)
>                       {
>                                           $rejects->{"cleaned"} ++;
>                                                               }
                                                                        
Cleanup occurs constantly, not always as rejects, so you dont want to do:
            $rejects->{"cleaned"} ++;
                        
The cleanup reject could happen from a mime_header regex matching, or
an access, helo check, recipient matching, etc. These appear in the
logs as either header or body rejects, as follows:

Mar 31 06:55:19 buffy postfix/cleanup[28932]: 36DAFA2E09: reject: body
Mar 31 06:55:19 buffy postfix/cleanup[28932]: 56DAFA33E3: reject: header

                        
you want maybe to do instead:

elsif ($line =~ /postfix\/cleanup.* reject: body/)
          {
                        $rejects->{"body_reject"} ++;
          }

elsif ($line =~ /postfix\/cleanup.* reject: header/)
          {
                        $rejects->{"header_reject"} ++;
          }
                        

                  
-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages munin depends on:
pn  libdigest-md5-perl                       Not found.
ii  libhtml-template-perl         2.6-2      HTML::Template : A module for usin
ii  librrds-perl                  1.0.49-1   Time-series data storage and displ
pn  libtime-hires-perl                       Not found.
ii  perl [libstorable-perl]       5.8.4-8    Larry Wall's Practical Extraction 
ii  perl-modules                  5.8.4-8    Core Perl modules

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to