MailScanner-MRTG problem
Denis Beauchemin
Denis.Beauchemin at USHERBROOKE.CA
Thu Jan 9 16:31:19 GMT 2003
I found my problem: mailscanner-mrtg was returning a number greater than
what would fit in a 32bit counter and MRTG uses 32bit counters (except
for some quite recent releases).
To correct it I changed from bytes to MBytes:
/etc/mrtg/mailscanner-mrtg.cfg:
Target[mailbytes]: `/usr/sbin/mailscanner-mrtg mailbytes`
Title[mailbytes]: Bytes of Mail Processed
Background[mailbytes]: #ffffff
PageTop[mailbytes]: <H1>MBytes of Mail Processed</H1>
WithPeak[mailbytes]: wmy
Directory[mailbytes]: mailbytes
MaxBytes[mailbytes]: 4096
AbsMax[mailbytes]: 8192
YLegend[mailbytes]: MBytes
ShortLegend[mailbytes]: Mbytes
Legend1[mailbytes]: Average MBytes
Legend2[mailbytes]:
Legend3[mailbytes]: Maximum MBytes
Legend4[mailbytes]:
LegendI[mailbytes]: :
LegendO[mailbytes]:
I also modified /usr/sbin/mailscanner-mrtg at the end of the MailBytes
function:
close LOG;
# Mod to convert in MB
$Total /= 1024 * 1024;
if ($debug) {
Debug("Total", $Total);
Debug("Leaving sub Mail");
}
}
and deleted all my data in the mailbytes directory where MRTG puts its
logs and graphs.
Denis
Le mar 07/01/2003 à 08:26, Denis Beauchemin a écrit :
> Hello,
>
> One of my graphs maxes out and I can't seem to do what is right to
> correct it:
>
> The text below the graph is:
> Max : 2146.1 M bytes Average : 801.5 M bytes Current : 112.7 M
> bytes
>
> The definition for it is:
> # grep mailbytes /etc/mrtg/mailscanner-mrtg.cfg
> Target[mailbytes]: `/usr/sbin/mailscanner-mrtg mailbytes`
> Title[mailbytes]: Bytes of Mail Processed
> Background[mailbytes]: #ffffff
> PageTop[mailbytes]: <H1>Bytes of Mail Processed</H1>
> WithPeak[mailbytes]: wmy
> Directory[mailbytes]: mailbytes
> MaxBytes[mailbytes]: 5000000000000
> AbsMax[mailbytes]: 100000000000000
> YLegend[mailbytes]: Bytes
> ShortLegend[mailbytes]: bytes
> Legend1[mailbytes]: Average Bytes
> Legend2[mailbytes]:
> Legend3[mailbytes]: Maximum Bytes
> Legend4[mailbytes]:
> LegendI[mailbytes]: :
> LegendO[mailbytes]:
>
> I'm using mailscanner-mrtg-0.04-2.noarch.rpm.
>
> Any ideas?
>
> THanks!
>
> Denis
--
Denis Beauchemin, analyste
Université de Sherbrooke, S.T.I.
T: 819.821.8000x2252 F: 819.821.8045
More information about the MailScanner
mailing list