[rrd-users] Re: MRTG and RDD graphics difference

Serge Maandag serge.maandag at staff.zeelandnet.nl
Fri Mar 29 00:30:26 MET 2002


Your mrtg config file has "Options[_]: bits" which converts your octets
by multiplying them by 8.
Do the same with rrdtool by saying:

CDEF:inoctets=inoctets,8,* \ 
CDEF:outoctets=outoctets,8,* \ 

You may need to use a different varaiable name like

CDEF:inoctets2=inoctets,8,* \ 

Serge Maandag.

-----Original Message-----
From: Andriy M. Shevchuk [mailto:morbid at phbme.ntu-kpi.kiev.ua]
Sent: dinsdag 26 maart 2002 19:49
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] MRTG and RDD graphics difference




MRTG graphic and graphic created by rrdtool are different
if MRTG gfraphic has maximum value ~20,4G, then graphic
created by RRD has maximum value ~2,6G

Operating system
phbme:/usr/home/morbid > uname -mrs 
FreeBSD 4.5-RELEASE-p2 i386         


Isnstalled packages
pkphbme:/usr/home/morbid > pkg_info | grep rrd 
rrdtool-1.0.33      Round Robin Database Tools 

phbme:/usr/home/morbid > pkg_info | grep mrtg        
mrtg-2.9.18.p2      The multi-router traffic grapher



RRDatabase was created by editing of mrtg.cfg file

phbme:/home/www/data/noc/interfaces > cat mrtg.cfg | grep rrd 
LogFormat: rrdtool                                            


MRTG and RRD data are the same

phbme:/home/www/data/noc/interfaces/log/eth0 > rrdtool fetch \
eth0.phbme.ntu-kpi.kiev.ua.rrd AVERAGE -s now-20minutes -e now
                      ds0            ds1

1017163200:  5.7914820922e+03  6.6678489585e+04
1017163500:  3.7340436442e+03  4.0069586307e+04
1017163800:  1.5952907482e+03  2.9759509602e+04
1017164100:  4.5949378357e+03  1.4648241678e+05
1017164400:  9.7889920444e+03  3.7239426724e+05
1017164700:  NaN  NaN


phbme:/home/www/data/noc/interfaces/mrtg/log/eth0 > head -n 7 \
	eth0.phbme.ntu-kpi.kiev.ua.log

1017164676 1202378862 3338000249
1017164676 6137 205010 6137 205010
1017164376 10320 395568 10320 395568
1017164100 4594 146052 10320 395568
1017163800 1571 29802 4097 124356
1017163500 3744 40246 3952 41870
1017163200 5788 66226 5948 68344


The script that creates the garphic
rrdtool graph daily.png \                         
	--start now-1hours --end now-1minutes \                         
	--imgformat PNG \                                               
	DEF:inoctets=eth0.rrd:ds0:AVERAGE \ 
	DEF:outoctets=eth0.rrd:ds1:AVERAGE \
	AREA:inoctets#00FF00:"In traffic" \                             
	LINE1:outoctets#0000FF:"Out traffic"                            

Any ideas

-- 

	best reagrds
		Andriy

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list