Get information from rrd-traffic

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Steve25
Posts: 1
Joined: Thu Jul 09, 2009 6:42 am

Get information from rrd-traffic

Post by Steve25 »

Hello,

I've a problem to get traffic information from rrd-tool. In cacti, I see that :

Image

or if I execute this command on bash "rrdtool lastupdate serveur_st-foy_traffic_in_27.rrd" , I obtain that :

Code: Select all

rrdtool lastupdate serveur_st-foy_traffic_in_27.rrd
                    traffic_in traffic_out
1247141111: 3037444102 66104081
I don't understand the signification of 3037444102 and 66104081? It's not bit/s ...

An another sample :

Code: Select all

rrdtool fetch serveur_st-foy_traffic_in_27.rrd AVERAGE -r1  -s -6m
                     traffic_in         traffic_out

1247141100: 3.5372309847e+05 1.0382666667e+01
1247141400: nan nan

Thanks for your help,
Steve.
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

Network interfaces use to count bytes not bits.
So in your case you will have:
3.5372309847e+05 *8 / 1e+06 = 2.829... MBit/s

"Lastupdate" returns the most recent update datum stored for each DS and the corresponding counter reading.


Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest