sendmail + MRTG - Linux

Table of Contents

我在尋找能用mrtg來統計sendmail使用狀態的情形

我在網路上找到mrtg-mailstats

http://www.hovenweep.org/~rowan/software/mrtg-mailstats.html

我的環境是 SENDMAIL和跑MRTG的機器在不同台上
(都是Ubuntu)

所以只能用他的remote的方法

but 我在讀他的README.txt時有看到
=head2 Remote Operation

The default mode for mrtg-mailstats is to run mailstats(1) on the
local host and parse its output. In remote operation, mrtg-mailstats
will connect to a remote server on a specified port number (default
7256). It is expected that immediately upon connection, a mailstats(1)
process on the remote host will be started with its output directed
to the the connection socket. The easiest way to do this is through
inetd(8). Add a line in the F</etc/inetd.conf> file with the service
name for the desired port and a program specification of
/usr/sbin/mailstats:

mailstats stream tcp nowait root \
/usr/sbin/mailstats mailstats

不過/etc/inetd.conf在Ubuntu上似乎是不存在的
(我知道Freebsd有)

有沒有人有什麼其他好方法或實做的經驗
(我知道有Mailscanner可以搭配mrtg,但是所在環境不允許多更動)

--

All Comments

Caroline avatarCaroline2010-05-01
為什麼不用 mailgraph?