sendmail + MRTG - Linux
By Queena
at 2010-04-29T15:47
at 2010-04-29T15:47
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,但是所在環境不允許多更動)
--
我在網路上找到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,但是所在環境不允許多更動)
--
Tags:
Linux
All Comments
By Caroline
at 2010-05-01T09:11
at 2010-05-01T09:11
Related Posts
Linux有辦法作到像xp還原卡的功能嗎?
By Hedwig
at 2010-04-28T23:32
at 2010-04-28T23:32
Linux有辦法作到像xp還原卡的功能嗎?
By Agnes
at 2010-04-28T22:01
at 2010-04-28T22:01
吐血…血尿控拆ANSYS安裝的超級小BUG…
By Hedda
at 2010-04-28T18:54
at 2010-04-28T18:54
吐血…血尿控拆ANSYS安裝的超級小BUG…
By Irma
at 2010-04-28T18:34
at 2010-04-28T18:34
不敢相信之螢幕種類會影響Fedora的當機!!
By Faithe
at 2010-04-28T17:47
at 2010-04-28T17:47