Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 May 2002 16:11:43 -0500
From:      "Adam M Ryan" <adam@powersurge.net>
To:        "Johan Huldtgren" <sauron@mordor.obitus.org>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: mrtg monitoring ethernet card
Message-ID:  <LOBBLIOBJFLGFEDBACNIIEGOFLAA.adam@powersurge.net>
In-Reply-To: <20020506221012.F2862-100000@mordor.obitus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Here is my entry in the mrtg config file:

WorkDir: /home/httpd/mrtg
Options[_]: bits,growright
### Interface 1 >> Descr: 'rl0' | Name: '' | Ip: '209.25.119.222' | Eth: ''
###

Target[localhost_209.25.119.222]: /209.25.119.222:community@localhost:
SetEnv[localhost_209.25.119.222]: MRTG_INT_IP="209.25.119.222"
MRTG_INT_DESCR="rl0"
MaxBytes[localhost_209.25.119.222]: 1250000
Title[localhost_209.25.119.222]: Traffic Analysis for 209.25.119.222 --
warfare.kickass.ne
t
PageTop[localhost_209.25.119.222]: <H1>Traffic Analysis for
209.25.119.222 -- warfare.kick
ass.net</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>warfare.kickass.net in Unknown</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>root@kickass.net</TD></TR>
   <TR><TD>Description:</TD><TD>rl0  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>209.25.119.222
(warfare.kickass.net)</TD></TR>
 </TABLE>


As of right the machine is doing maybe 2kb/s, but mrtg reads 25kb/s.  I
tried changing the maxbytes but it didn't seem to alter it much.  Would I
have to lower it?

Real reading from netstat:
 netstat -w60
            input        (Total)           output
   packets  errs      bytes    packets  errs      bytes colls
       193     0     186458          2     0        108     0


Adam

-----Original Message-----
From: Johan Huldtgren [mailto:sauron@mordor.obitus.org]
Sent: Monday, May 06, 2002 3:19 PM
To: Adam M Ryan
Cc: freebsd-questions@FreeBSD.ORG
Subject: Re: mrtg monitoring ethernet card


On Sun, 5 May 2002, Adam M Ryan wrote:

> When I use the configmaker I don't get any errors, but when I check my
mrtg
> generated files I see a huge input, 250kb.  MRTG says its monitoring rl0,
> which is my ethernet device.
>
> But using netstat -w 100 I only see an input of around 25kbs.  What could
be
> causing the confusion with the input errors?  Do I have snmpd setup
> incorrectly?  Has anyone seen any problems like this?

My guess is take a look at your mrtg.cfg file. By default mrtg graphs in
bytes not bits. Also having an incorrect value for the maximum speed of
your network card will give funky looking graphs. The two lines you want
to check are:

Options[^]: bits

and

MaxBytes[localhost]: appropriate value

when I created my cfg, with configmaker, it got the MaxBytes option wrong.

HTH,

- Johan

_____________________________________________________________

"A society that will trade a little liberty for a little order will lose
both, and deserve neither." - [Thomas Jefferson]


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LOBBLIOBJFLGFEDBACNIIEGOFLAA.adam>