[rrd-users] Re: Data acquisition for an RRD to store mail flow rates.

Hugo van der Kooij hvdkooij at vanderkooij.org
Wed Feb 4 19:56:36 MET 2004


On Mon, 2 Feb 2004, Tobias Oetiker wrote:

> you might want to look at david schweikerts mailgraph for
> inspiration
>
> http://people.ee.ethz.ch/~dws/software/mailgraph/

If you happen to run sendmail instead of postfix you might want to add:

        elsif($prog eq 'sendmail') {
                if($text =~ /mailer=local/ ) {
                        event($time, 'received');
                }
                if($text =~ /stat=Sent/ ) {
                        event($time, 'sent');
                }
                if($text =~ /lost input channel/ ) {
                        event($time, 'rejected');
                }
                if($text =~ /ruleset=check_rcpt/ ) {
                        event($time, 'bounced');
                }
                if($text =~ /sender blocked/ ) {
                        event($time, 'bounced');
                }
                if($text =~ /sender denied/ ) {
                        event($time, 'bounced');
                }
                if($text =~ /recipient denied/ ) {
                        event($time, 'bounced');
                }
        }

Somewhere along the list of programs and events.

Hugo.


-- 
 All email sent to me is bound to the rules described on my homepage.
    hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
	    Don't meddle in the affairs of sysadmins,
	    for they are subtle and quick to anger.

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list