MRTG Help again

Matt hciss at HCIWS.COM
Wed Oct 16 18:05:22 IST 2002


I have gotten the below MRTG config to work on my server.  My Cobalt Raq
automatically rotates the log files dailly at 4am so I set a cron job to run
MRTG at 3am.

What seems strange to me is that the MRTG page shows percentages when that
does not really apply to this situation.  It also seems strange that we have
a 30 minute and 2 hour average graphs when they stats are only updated once
a day.

What I would like is to have 2 graphs on 1 webpage.  The first would reflect
a daily average of mail vs. viruses and the 2nd mail vs. spam.  Could anyone
tell me how to do that?  I got MRTG to monitor my t1 lines and that was a
struggle so I am no MRTG expert.

Thanks

Matt


#
# Usage example on .cfg file:
#
Workdir: /home/sites/site1/web/mailscan
IconDir: /mailscan
WriteExpires: Yes
Interval: 1440
Refresh: 86400

Target[mail]: `/usr/local/mrtg-2/bin/sendmail.logs.pl mail`
Suppress[mail]: d
Title[mail]: Email Server: Messages Entering
Background[mail]: #ffffff
PageTop[mail]: <!--#include virtual="header.htx" -->
                 <H1>Email Server: Messages Entering</H1>
                 This page will refresh automatically every 24 hours.
PageFoot[mail]: <!--#include virtual="footer.htx" -->
WithPeak[mail]: wmy
Directory[mail]: mail
XSize[mail]: 340
YSize[mail]: 100
#Unscaled[mail]: wmy
MaxBytes[mail]: 200000
Options[mail]: growright, gauge, noinfo
Colours[mail]: Blue#0000ff,GoldenRod#D2A13B,DarkBlue#000099,Violet#ff00ff
YLegend[mail]: Messages Received
ShortLegend[mail]: Messages
Legend1[mail]: Average Messages
Legend2[mail]:
Legend3[mail]: Maximum Messages
Legend4[mail]:
LegendI[mail]: &nbsp;messages:
LegendO[mail]:

Target[spam]: `/usr/local/mrtg-2/bin/sendmail.logs.pl spam`
Suppress[spam]: d
Title[spam]: Email Server: SPAM Entering
Background[spam]: #ffffff
PageTop[spam]: <!--#include virtual="header.htx" -->
                 <H1>Email Server: SPAM Entering</H1>
                 This page will refresh automatically every 24 hours.
PageFoot[spam]: <!--#include virtual="footer.htx" -->
WithPeak[spam]: wmy
Directory[spam]: spam
XSize[spam]: 340
YSize[spam]: 100
#Unscaled[spam]: wmy
MaxBytes[spam]: 200000
Options[spam]: growright, gauge, noinfo
Colours[spam]: Blue#0000ff,GoldenRod#D2A13B,DarkBlue#000099,Violet#ff00ff
YLegend[spam]: Messages Received
ShortLegend[spam]: Messages
Legend1[spam]: Average Messages
Legend2[spam]:
Legend3[spam]: Maximum Messages
Legend4[spam]:
LegendI[spam]: &nbsp;messages:
LegendO[spam]:

Target[viruses]: `/usr/local/mrtg-2/bin/sendmail.logs.pl virus`
Suppress[viruses]: d
Title[viruses]: Email Server: Viruses Entering
Background[viruses]: #ffffff
PageTop[viruses]: <!--#include virtual="header.htx" -->
                 <H1>Email Server: Viruses Entering</H1>
                 This page will refresh automatically every 24 hours.
PageFoot[viruses]: <!--#include virtual="footer.htx" -->
WithPeak[viruses]: wmy
Directory[viruses]: viruses
XSize[viruses]: 340
YSize[viruses]: 100
#Unscaled[viruses]: wmy
MaxBytes[viruses]: 200000
Options[viruses]: growright, gauge, noinfo
Colours[viruses]: Blue#0000ff,GoldenRod#D2A13B,DarkBlue#000099,Violet#ff00ff
YLegend[viruses]: Viruses Detected
ShortLegend[viruses]: Viruses
Legend1[viruses]: Average Viruses
Legend2[viruses]:
Legend3[viruses]: Maximum Viruses
Legend4[viruses]:
LegendI[viruses]: &nbsp;viruses:
LegendO[viruses]:



More information about the MailScanner mailing list