[問題] sendmail + MRTG

看板Linux作者 (不敗地球人)時間16年前 (2010/04/29 15:48), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
我在尋找能用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,但是所在環境不允許多更動) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.71.94.1

04/29 23:20, , 1F
為什麼不用 mailgraph?
04/29 23:20, 1F
文章代碼(AID): #1BsJcnqB (Linux)
文章代碼(AID): #1BsJcnqB (Linux)