[rrd-users] problem with data shown in rrd

Bruce Alexander xeno at flapflap.net
Sat Sep 7 07:25:52 MEST 2002


Hello everyone,

I apologize in advance for my newbieness with RRDtool, but I have wrestled
with this problem for over 2 weeks and have come up with no solution.  Nor
have I seen anything like this mentioned in the mailing list archives.  I
will say that RRDtool looks quite awesome still despite my headaches though,
which are probably induced by some little thing I missed in the manuals.

The Setup:

I have a perl script which is executed by cron every 5 minutes.  The perl
script performs an snmpget on said device and collects the inOctets and
outOctets and places the info into a .rrd via an rrdtool update command.

## Typical perl script used to pull data
#!/usr/bin/perl

$community = "xxx";

$hostname = "192.168.0.254";

$snmpget = "snmpget -Oqv -c $community $hostname";

$ifInOctets = `$snmpget 2.2.1.10.2`;

$ifOutOctets = `$snmpget 2.2.1.16.2`;

chomp ($ifInOctets);
chomp ($ifOutOctets);

$thereitgoes = `rrdtool update /home/somedir/perl/flapflap.rrd
N:$ifInOctets:$ifOutOctets`;
##END PERL SCRIPT

##Typical command used to create the rrd

rrdtool create somerrd.rrd DS:input:COUNTER:600:U:U
DS:output:COUNTER:600:U:U RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700
RRA:AVERAGE:0.5:24:775
RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700
RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797

##Typical command run to graph

rrdtool graph somerrd.gif --start -86400
DEF:inoctets=somerrd.rrd:input:AVERAGE
DEF:outoctets=somerrd.rrd:output:AVERAGE AREA:inoctets#00FF00:"In traffic"
LINE1:outoctets#0000FF:"Out traffic"


The Problem:

The data is totally off in the rrd.  It may show anywhere from constant 50 M
(million) to 1.5 G (giga) at all times (I tried using it to graph a server
at one point, and a router at another time, I have gotten rrd to
successfully graph two workstations though).  There is no possible way that
these devices could pass this much data a second.. also, I can manually pull
the octets, then five minutes later pull the octets again and manually do
the math and everything looks ok.  When I let rrdtool do the work for me, it
just shows extraordinarily huge numbers.

Any idea why this is?  If you need more info about my problem, I will be
more than happy to provide it.  Thanks in advance for any assistance.

Bruce
xeno at flapflap.net

--
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