[root@ns2 qm]# cat mrtg.cfg
WorkDir: /usr/local/apache/htdocs/qm
#############################################################
Title[messages]: example.com - qmail message throughput
MaxBytes[messages]: 100
AbsMax[messages]: 10000
Options[messages]: gauge
Target[messages]: `/usr/local/apache/htdocs/qm/qmail-mrtg-mess
/backup/log/qmail`
PageTop[messages]: <H1>example.com - qmail message throughput</H1>
ShortLegend[messages]: Messages
YLegend[messages]: Messages
Legend1[messages]: Total messages
LegendI[messages]: Deliveries:
LegendO[messages]: Attempts:
WithPeak[messages]: ymwd
#-------------------------------------------------------------------
Title[queue-size]: example.com - qmail queue size
MaxBytes[queue-size]: 1000
AbsMax[queue-size]: 10000
Options[queue-size]: gauge
Target[queue-size]: `/usr/local/apache/htdocs/qm/qmail-mrtg-queue`
PageTop[queue-size]: <H1>example.com - qmail queue size</H1>
ShortLegend[queue-size]: Messages
YLegend[queue-size]: Messages
Legend1[queue-size]: Messages
LegendI[queue-size]: Messages:
LegendO[queue-size]: Unprocessed Messages:
WithPeak[queue-size]: ymwd
#-------------------------------------------------------------------
Title[concurrency]: example.com - qmail concurrency
MaxBytes[concurrency]: 1000
AbsMax[concurrency]: 10000
Options[concurrency]: gauge
Target[concurrency]: `/usr/local/apache/htdocs/qm/qmail-mrtg-concurrency
/backup/log/qmail`
PageTop[concurrency]: <H1>example.com - qmail concurrency</H1>
ShortLegend[concurrency]: Concurrency
YLegend[concurrency]: Concurrency
Legend1[concurrency]: Concurrency
LegendI[concurrency]: Local:
LegendO[concurrency]: Remote:
WithPeak[concurrency]: ymwd
#-------------------------------------------------------------------
[root@ns2 qm]# pwd
/usr/local/apache/htdocs/qm
[root@ns2 qm]# ls -al qmail-mrtg-*
-rwxr-xr-x 1 alex alex 680 Jun 12 13:08
qmail-mrtg-concurrency
-rwxr-xr-x 1 alex alex 2279 Jun 12 13:08 qmail-mrtg-mess
-rwxr-xr-x 1 alex alex 116 Jun 12 13:08 qmail-mrtg-queue
[root@ns2 qm]# ls -ld /backup/log/qmail/
drwxrwxr-x 3 qmaill root 4096 Oct 17 09:02 /backup/log/qmail/
[root@ns2 qm]# ls -la /backup/log/qmail/
total 940
drwxrwxr-x 3 qmaill root 4096 Oct 17 09:02 .
drwxrwxr-x 4 root root 4096 Oct 16 11:46 ..
-rwxr--r-- 1 qmaill nofiles 98027 Oct 17 08:54
@4000000039ec4c010f1ebc34.s
-rwxr--r-- 1 qmaill nofiles 98095 Oct 17 08:54
@4000000039ec4c0a0c33dcfc.s
-rwxr--r-- 1 qmaill nofiles 98095 Oct 17 08:54
@4000000039ec4c0e101944ec.s
-rwxr--r-- 1 qmaill nofiles 98035 Oct 17 08:54
@4000000039ec4c161c8621b4.s
-rwxr--r-- 1 qmaill nofiles 98124 Oct 17 08:54
@4000000039ec4c23300e7b8c.s
-rwxr--r-- 1 qmaill nofiles 98005 Oct 17 08:55
@4000000039ec4c331a2bbadc.s
-rwxr--r-- 1 qmaill nofiles 98002 Oct 17 08:55
@4000000039ec4c43094659fc.s
-rwxr--r-- 1 qmaill nofiles 98075 Oct 17 08:55
@4000000039ec4c5400f15b1c.s
-rwxr--r-- 1 qmaill nofiles 98106 Oct 17 09:02
@4000000039ec4de428cb717c.s
-rw-r--r-- 1 qmaill nofiles 26158 Oct 17 11:29 current
-rw------- 1 qmaill nofiles 0 Oct 16 11:07 lock
drwxrwxr-x 2 qmaill root 4096 Oct 17 11:27 smtpd
-rw-r--r-- 1 qmaill nofiles 0 Oct 16 11:07 state
// ok lets run the mrtg now..
[root@ns2 qm]# /usr/local/mrtg/bin/mrtg /usr/local/apache/htdocs/qm/mrtg.cfg
[root@ns2 qm]#
[root@ns2 qm]# grep -B 3 0.0 messages.html
<TITLE>example.com - qmail message throughput</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="300">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="Tue, 17 Oct 2000 15:46:56 GMT">
--
<BODY BGCOLOR="#ffffff">
<H1>example.com - qmail message throughput</H1><BR>
<HR>
The statistics were last updated <B>Tuesday, 17 October 2000 at 11:41</B>
--
<TABLE CELLPADDING=0 CELLSPACING=0>
<TR>
<TD ALIGN=right><SMALL>Max <FONT
COLOR="#00cc00"> Deliveries:</FONT></SMALL></TD>
<TD ALIGN=right><SMALL>0.0 Messages (0.0%)
</SMALL></TD>
<TD WIDTH=5></TD>
<TD ALIGN=right><SMALL>Average <FONT
COLOR="#00cc00"> Deliveries:</FONT></SMALL></TD>
<TD ALIGN=right><SMALL>0.0 Messages (0.0%)
</SMALL></TD>
<TD WIDTH=5></TD>
<TD ALIGN=right><SMALL>Current <FONT
COLOR="#00cc00"> Deliveries:</FONT></SMALL></TD>
<TD ALIGN=right><SMALL>0.0 Messages (0.0%)
--
i have more than 50k messages going out daily, yet these are my reports..
did anyone ever get _ANY_ qmail mrtg to work? if so please reply, with
what logger? (i use multilog) what qmail-mrtg? where to get it? what did
you edit in the cfg file/etc. thank you. help greatly appreciated!!
alex khanin, system administrator, relationalMail
205 hudson st, 7th floor, new york, ny 10013, usa
v: 646-613-2074 * e: alex -at- relationalmail.com