From owner-freebsd-questions Mon May 6 14:14:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mercury.powersurge.net (mercury.powersurge.net [216.218.200.200]) by hub.freebsd.org (Postfix) with ESMTP id 35B9337B403 for ; Mon, 6 May 2002 14:14:31 -0700 (PDT) Received: from irix.stures.iastate.edu ([64.113.75.4] helo=irix) by mercury.powersurge.net with smtp (Exim 3.34 #1) id 174poS-0007Nn-00; Mon, 06 May 2002 14:14:28 -0700 Reply-To: From: "Adam M Ryan" To: "Johan Huldtgren" Cc: Subject: RE: mrtg monitoring ethernet card Date: Mon, 6 May 2002 16:11:43 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <20020506221012.F2862-100000@mordor.obitus.org> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - mercury.powersurge.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - powersurge.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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]:

Traffic Analysis for 209.25.119.222 -- warfare.kick ass.net

System: warfare.kickass.net in Unknown
Maintainer: root@kickass.net
Description:rl0
ifType: ethernetCsmacd (6)
ifName:
Max Speed: 10.0 Mbits/s
Ip: 209.25.119.222 (warfare.kickass.net)
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