[mrtg] getting bogus values from snmp ??

Robert Huff roberthuff at rcn.com
Sun Oct 2 05:48:24 MEST 2005

	I recently installed mrtg (2.12.2,1) and snmp
(net-snmp- under FreeBSD -CURRENT.
	After making what I though were appropriate chamges to the cfg
file, the program runs nicely ...
	... with the exception that I don't believe the traffic numbers
reported.  For one, the in and out values are identical; also they
(or at least the in count) are much lower than reasonable (count
varies between 250 and 1200 bits/sec, but one application alone
reports using ~ 15,000 bits/sec).
	Before I go investigating the snmp side, I'd like to know I've
got mrtg behaving correctly.  I've read the comments in the config
file and searched the FAG; I've also Googled what seem to be the
most interesting bits.  My config file (minus comment lines) is
appended as it a sample entry when run with logging and debug=snpo.
	Help - please!

				Robert Huff

****************  contents of mrtg.cfg		****************
WorkDir: /var/mrtg
Options[_]: growright,bits
RunAsDaemon: Yes
Interval: 5
WriteExpires: Yes
Target[Jerusalem]: 2:<deleted>@
MaxBytes[Jerusalem]: 1250000
Title[Jerusalem]: Traffic Analysis for Jerusalem
WithPeak[Jerusalem]: ym

Target[sendmail]: `/usr/local/etc/mrtg/mrtg-mailstats`
MaxBytes[sendmail]: 300
Title[sendmail]: Requests for SMTP server (jerusalem.litteratus.org)
PageTop[sendmail]: <H1>Requests for SMTP server (jerusalem.litteratus.org)</H1>\n
 <A HREF="./smtp.shtml"><STRONG>SMTP server overview</STRONG></A><BR>
Options[sendmail]: growright gauge integer
YLegend[sendmail]: requests/5 mins
ShortLegend[sendmail]: SMTP requests/5 mins
Background[sendmail]: #ffffff 
****************	extrace from log file	****************
2005-10-01 23:30:27 -- --snpo: simple If: .2
2005-10-01 23:30:27 -- --snpo: simple If: .2
2005-10-01 23:30:27 -- --snpo: SNMPGet from <deleted>@ -- ifInOctets.2,ifOutOctets.2,sysUptime,sysName
2005-10-01 23:30:27 -- --snpo: SNMPfound -- '3120611', '3120611', '7:52:59', 'Jerusalem'

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the mrtg mailing list