mrtg-mailstats
Current version: 1.30
21-SEP-2002
Download:
mrtg-mailstats is a Perl script that can be used with MRTG
to collect mail traffic statistics from Sendmail servers. It is not a
replacement for the Sendmail mailstats program. It has the same
requirements as MRTG for the collection platform. For the monitored
server, Sendmail 8.8 or higher is required. The MRTG host and the
monitored mail server may be the same machine, or they may be
different machines with mrtg-mailstats running in remote operation.
For the full information, read the POD documentation included in the
mrtg-mailstats script (perldoc mrtg-mailstats).
Usage:
mrtg-mailstats [-hvbr] [-S from|to|rej|dis|total] [-f factor] [-m mailer] [-s host [-p port]] [-C sendmail.cf]
Options:
- -h help screen
- -v print version number and exit
- -b count total bytes rather than number of messages
- -r count rejected and discarded messages
- -m mailer get stats for mailer mailer
- -s server get stats from remote server server
- -p port connect to port port on remote server
- -f factor multiply variables by factor
- -S from|to|rej|dis|total use SNMP exec MIB mode and return the from, to, rejected, discarded, or total count for the requested mailer.
- -C sendmail.cf specify an alternate sendmail configuration file.
An example config file for MRTG
Changelog:
- 21-SEP-2002, version 1.30
- added -r switch for rejected/discarded message counts
- added support for parsing Sendmail 8.12.x mailstats
- 15-APR-2002, version 1.20
- added -C switch to choose alternate sendmail.cf file (credit
to Alexandre Roberto Zia).
- 18-JUL-2001, version 1.10
- added -S switch to enable use of the script as a filter
for the exec MIB in UCD-SNMP. Updated POD docs for this.
- 27-NOV-2000, version 1.00
- use the third line of output to signify an
error message
if an error occurs (this line is usually used by MRTG to
show the uptime of the target)
- created POD documentation within the mrtg-mailstats
script.
- verified operation with RRDTool
- 21-AUG-2000, version 0.12
- Updated documentation to reflect new email address and
web site.
- Fixed the argument parsing to work with older versions
of Getopt::Std which put the option values in $opt_x,
where x is the switch name, rather than in $opts{'x'} (or
whatever you wanted to call your options array).
- Added a few more explanatory hints to the documentation.
- 26-MAR-1999, version 0.11
- added -f switch to deal with small value changes between
runs. It helps to specify a large factor (greater than
100) if you have low mail traffic -- especially if you're
counting messages instead of bytes. This is an artifact
of the way rateup works.
- Fixed some typos in the source and docs.
- 23-MAR-1999, version 0.10
$Id: mrtg-mailstats.html,v 1.7 2002/09/22 00:17:12 rowan Exp $