sendmail + MRTG - Linux

Queena avatar
By Queena
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,但是所在環境不允許多更動)

--
Tags: Linux

All Comments

Caroline avatar
By Caroline
at 2010-05-01T09:11
為什麼不用 mailgraph?

Linux有辦法作到像xp還原卡的功能嗎?

Hedwig avatar
By Hedwig
at 2010-04-28T23:32
slax linux支援所謂的還原功能, 請搜尋洪朝貴老師的網頁 ※ 引述《YuiHirasawa (平澤 唯)》之銘言: : 明天Ubuntu10.04 LTS要出來了,正在思考要不要索取個十片光碟在吾人就讀的高中圖書館 : 裡推廣。目前遇到的問題有; : 1.最重要的,怕學校太死腦筋、怕麻煩或根本聽不 ...

Linux有辦法作到像xp還原卡的功能嗎?

Agnes avatar
By Agnes
at 2010-04-28T22:01
明天Ubuntu10.04 LTS要出來了,正在思考要不要索取個十片光碟在吾人就讀的高中圖書館 裡推廣。目前遇到的問題有; 1.最重要的,怕學校太死腦筋、怕麻煩或根本聽不懂不給裝。這點我明天會去詢問。 2.學校電腦是裝XP+還原卡,爬了一下文,直接裝的話似乎會有問題? 3.如果拔掉還原卡,以學校的行政作風肯定 ...

吐血…血尿控拆ANSYS安裝的超級小BUG…

Hedda avatar
By Hedda
at 2010-04-28T18:54
※ 引述《jackjack0040 (小肥肥)》之銘言: : 目前有想到一個解法:就是把這個光碟上面的東東複製,弄成iso檔…改個普通檔名, : 再把它放到別處去mount起來…再安裝,就可以避免掉這個問題,真的嗎?可以做得到嗎? : 我猜…這東西應該是做出來給redhat跟solaris用的對吧… 1. ...

吐血…血尿控拆ANSYS安裝的超級小BUG…

Irma avatar
By Irma
at 2010-04-28T18:34
剛好實驗室有正版的ANSYS軟體,想說它有沒有Linux版的… 沒想到真的有!抱著雀躍的心情,趕快把它放進光碟機裡面讀… 光碟機吱吱叫地轉動了…/media/ANSYS_12.0.1的畫面很快地跳出來~ 一開始按INSTALL…但是沒有效果…後來想到了什麼… 換用./INSTALL,便開始跑安裝程式了 ...

不敢相信之螢幕種類會影響Fedora的當機!!

Faithe avatar
By Faithe
at 2010-04-28T17:47
先前有po過文,安裝成功Fedora,可是後來卻一直當機, 後來搬去給老師檢測看看,沒想到,接上老師那老舊的螢幕, 電腦完全沒事~!!! 我一直以為我看傻眼,是真的!! 所有的當機畫面完全沒有了!! 我後來搬電腦回家,想再來開機看看, 又是一樣的當機畫面~~~~~~ 我用的是液晶螢幕,開始對螢 ...