mrtg step-by-step howto/configuration for a newbie?

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

 



Hi all:

I know MRTG is a very important tool for monitoring Internet/network
connection and data usage. However, I have taken it for granted so far
as my work before was not so involved with network traffic
control/measuring. But now I'm in the middle of it and need your help.
If someone could point me to a good tutorial on mrtg that explains
step-by-step configuration for RedHat 9.0, i'd be most grateful.

I've tried the one that comes with RedHat 9.0 CD, but I could not manage
to make it work. I know, it does not work out of the box; maybe someone
of you can explain some steps to get the RPM that comes with Shrike CD
working.

I saw its default configuration like this in /etc/mrtg/mrtg.cfg:

----------------
WorkDir: /var/www/html/mrtg
Target[r1]: 2:public@xxxxxxxxxxxxx
MaxBytes[r1]: 1250000
Title[r1]: Traffic Analysis
PageTop[r1]: <H1>Stats for our Ethernet</H1>
----------------

and in the /etc/crontab:

----------------
...
0-59/5    *    *    *    *    mrtg /etc/mrtg/mrtg.cfg
----------------

This configuration seems to produce no outputs. What should I do more
with it?

And when I tried running it manually:

$ mrtg /etc/mrtg/mrtg.cfg

There were these errors:

----------------
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.2.1.2.2.1.16.2)
SNMPv1_Session (remote host: "203.146.184.138" [203.146.184.138].161)
                  community: "public"
                 request ID: 1813387757
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on
public@xxxxxxxxxxxxxxx
 at /usr/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
libpng warning: Application was compiled with png.h from libpng-1.2.2
libpng warning: Application  is  running with png.c from libpng-1.0.13
gd-png:  fatal libpng error: Incompatible libpng version in application
and library
WARNING: rateup died from Signal 11
 with Exit Value 0 when doing router 'r1'
 Signal was 11, Returncode was 0
----------------

Thanks in advance for all help and regards,
Vidol :)


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux