[rrd-users] RRD graphing

Munroe Sollog mus3 at Lehigh.EDU
Thu Sep 26 19:45:16 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am having some trouble creating the grapns for my RRDs.  I am trying to graph 48hrs, 10day,
60day and 1year.  The 48hour graphs are working fine, but the other graphs only ever show 48hrs
worth of data.  For example, my 10day (code included below) generates the correct x-axis labels
but only shows 48hrs worth of data even though I've been collecting data for well over 7 days.
Below I have included the relevant perl code.  I trimmed the graph creation output to just a few
DEFs.  Any help would be appreciated.

Perl:
#
#Creating the RRD file
#

            RRDs::create ($rrdfile, "--start", $time, "--step", 300,
                          "DS:auth:GAUGE:600:0:99999", # auth = authenticated users
                          "DS:guest:GAUGE:600:0:99999", # guest = guest users
                          "RRA:LAST:0.5:1:576", # 48 hours, 5 minute samples
                          "RRA:MAX:0.5:12:240", # weekly, 10 days of 1 hour samples
                          "RRA:MAX:0.5:48:336", # monthly, 8 weeks of 4 hour samples
                          "RRA:MAX:0.5:288:730", # yearly, 2 years of 1 day samples
                          "RRA:MAX:0.5:2016:1040", # 20 years of 1 week samples



#
#Creating the RRD graph
#10day code
#

$VAR1 = '/arubav2/graphs/building/large/Bldg82.10d.png';
$VAR2 = '--title';
$VAR3 = 'Bldg82';
$VAR4 = '--start';
$VAR5 = 'now-10d';
$VAR6 = '--width=800';
$VAR7 = '--height=300';
$VAR8 = '--vertical-label=Active Users';
$VAR9 = 'DEF:a0=/arubav2/data/aps/Bldg82-rm109.rrd:auth:LAST';
$VAR10 = 'DEF:aa0=/arubav2/data/aps/Bldg82-rm109.rrd:auth:MAX';
$VAR11 = 'DEF:g0=/arubav2/data/aps/Bldg82-rm109.rrd:guest:LAST';
$VAR12 = 'DEF:gg0=/arubav2/data/aps/Bldg82-rm109.rrd:guest:MAX';
$VAR13 = 'DEF:a1=/arubav2/data/aps/Bldg82-rm221.rrd:auth:LAST';
$VAR14 = 'DEF:aa1=/arubav2/data/aps/Bldg82-rm221.rrd:auth:MAX';
$VAR15 = 'DEF:g1=/arubav2/data/aps/Bldg82-rm221.rrd:guest:LAST';
$VAR16 = 'DEF:gg1=/arubav2/data/aps/Bldg82-rm221.rrd:guest:MAX';
$VAR17 = 'DEF:a2=/arubav2/data/aps/Bldg82-rm204.rrd:auth:LAST';
$VAR18 = 'DEF:aa2=/arubav2/data/aps/Bldg82-rm204.rrd:auth:MAX';
$VAR19 = 'DEF:g2=/arubav2/data/aps/Bldg82-rm204.rrd:guest:LAST';
$VAR20 = 'DEF:gg2=/arubav2/data/aps/Bldg82-rm204.rrd:guest:MAX';
$VAR21 = 'DEF:a3=/arubav2/data/aps/Bldg82-rm002.rrd:auth:LAST';
$VAR22 = 'DEF:aa3=/arubav2/data/aps/Bldg82-rm002.rrd:auth:MAX';
$VAR23 = 'DEF:g3=/arubav2/data/aps/Bldg82-rm002.rrd:guest:LAST';
$VAR24 = 'DEF:gg3=/arubav2/data/aps/Bldg82-rm002.rrd:guest:MAX';

$VAR53 = 'CDEF:atot=a0,a1,a2,a3,ADDNAN';
$VAR54 = 'CDEF:gtot=g0,g1,g2,g3,ADDNAN';
$VAR55 = 'CDEF:amax=aa0,aa1,aa2,aa3,ADDNAN,';
$VAR56 = 'CDEF:gmax=gg0,gg1,gg2,gg3,ADDNAN,';
$VAR57 = 'VDEF:a=atot,LAST';
$VAR58 = 'VDEF:g=gtot,LAST';
$VAR59 = 'AREA:atot#6799c3:Auth:STACK';
$VAR60 = 'GPRINT:a:Current\\:%4.0lf %S';
$VAR61 = 'AREA:gtot#ffc97e:Guest:STACK';
$VAR62 = 'GPRINT:g:Current\\:%4.0lf %S';
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQEcBAEBAgAGBQJSRHKrAAoJEPbbZiWCKDVC+G4H/0QSKQ7J6Jw1km333yWGbuDT
fnnVC26NWhGTiEHPJU169VWsGMlA44pnracOWWBYy9mxx2OEA+Yvywk3MyWOQ/D7
mT0O8a+y/s5TY9fbu8iQyRPpVCr4ypc0VQEYWtbnjAJD9dTlhFY9nKI/CvcTtYwI
jnF3z22jX3H3AT6H+BQVrES6nv42bwRfAqC7f75Uei14ejmsiYSeSKkcW+mYASkL
S9W+yEDRiuYlAHlq7wyFaTIoaqjJBxqW06TwG0WGHerAfFDIHw7+mnp3a7BBwd4f
4HqC+jwv8xJzGBBpFWQxyLEBDtTBzfhzI7jKvKAL32lY1NaY8fLFsclnrVOVGb0=
=7ZZh
-----END PGP SIGNATURE-----



More information about the rrd-users mailing list