[rrd-users] Strange Data with 64bit Couters
Reinartz, Ralf
Ralf.Reinartz at msg.maxdata.de
Thu Jul 11 10:57:21 MEST 2002
Hello,
I have a strange problem using rrd and 64Bit Interface Counters.
The interfaces are 2GBit Trunks with good load (around 30% i.e. 600 and more
MBit).
With code at the end of this Message I create and update the RRD Databases.
And now the Problem:
The values I get with rrd graph are higher than the bandwith.
Where is my misstake?
TIA
Ralf
--------------------
#!/usr/bin/perl
use strict;
use Data::Dumper;
use Convert::BER;
use SNMP_Session ;
use SNMP_util "0.71";
use DBD::mysql;
# ---- CUT ------some code for MYSQL Connection
snmpmapOID("in","1.3.6.1.2.1.31.1.1.1.6");# 64 Couter inOketes
snmpmapOID("out","1.3.6.1.2.1.31.1.1.1.10");
# ---CUT--- some code to get interfacelist from DB
while (my $set=$sth->fetchrow_hashref() ){
if (! -e "/home/ralf/ph/rrd/$set->{ip}.$set->{ifIndex}.rrd"){
system("rrdtool create /home/ralf/ph/rrd/$set->{ip}.$set->{ifIndex}.rrd
DS:inoktets:COUNTER:600:U:U DS:outoktets:COUNTER:600:U:U
RRA:AVERAGE:0.5:1:8928 RRA:AVERAGE:0.5:12:8784");
}
my $zeit=time;
my
@erg=&snmpget("community\@$set->{ip}:::::2c","in.$set->{ifIndex}","out.$set-
>{ifIndex}");
my($i,$o)=@erg;
print "i: $i o:$o\n";
$i=~s/\+//;
$o=~s/\+//;
system("rrdtool update /home/ralf/ph/rrd/$set->{ip}.$set->{ifIndex}.rrd -t
inoktets:outoktets $zeit:$i:$o");
}
--
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