[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mrtg configuration



Hi, sebastaan
The mrtg contacts the gateway in your case 192.168.1.254 asking for the
statistics on trafic, normaly any router like Cisco or similar has the user
public define to give away that information. If you have a linux runing as
router you have to do the magic. 

Cheers,
	rak
PD: I haven't try that kind of magic yet, that's way I can't give you any
other advice. B) sorry

On Wed, Oct 23, 2002 at 11:53:03AM +0200, Sebastiaan wrote:
> Hi,
> 
> I am trying to visualize the traffic on my local network with mrtg, but I
> get some errors. My mrtg config file is this:
> 
> # This file is for use with mrtg-2.5.4c
> 
> # Global configuration
> WorkDir: /var/www/mrtg
> WriteExpires: Yes
> 
> Title[^]: Traffic Analysis for
> PageTop[^]: <H1>Stats for
> MaxBytes[_]: 8000
> Options[_]: growright
> 
> Title[lan]: interface eth0
> PageTop[lan]: interface eth0</H1>
> Target[lan]: 2:public@192.168.1.254
> 
> 
> 
> but when running 'mrtg /etc/mrtg.cfg' I get smnp errors:
> SNMP Error:
> no response received
> SNMPv1_Session (remote host: "192.168.1.254" [192.168.1.254].161)
>                   community: "public"
>                  request ID: 1844015366
>                 PDU bufsize: 8000 bytes
>                     timeout: 2s
>                     retries: 5
>                     backoff: 1)
>  at /usr/lib/perl5/SNMP_util.pm line 456
> SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on public@192.168.1.254
>  at /usr/bin/mrtg line 1496
> WARNING: Expected a number but got ''
> WARNING: Expected a number but got ''
> 
> 
> to be onest, I have no idea where SNMP is used for, but I read in the docs
> that mrtg is able to work without extra snmp installations. I just want
> the traffic on eth0 measured.
> 
> Any hints?
> 
> Thanks in advance,
> Sebastiaan
> 
> 
> --
>   NT is the OS of the future. The main engine is the 16-bit Subsystem
>   (also called MS-DOS Subsystem). Above that, there is the windoze 95/98
>   16-bit Subsystem. Anyone can see that 16+16=32, so windoze NT is a
>   *real* 32-bit system.
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 



Reply to: