ds[traffic_in].last_ds in kb mb?

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

Moderators: Developers, Moderators

Post Reply
blackandtackle
Posts: 2
Joined: Wed Jan 15, 2014 11:31 am

ds[traffic_in].last_ds in kb mb?

Post by blackandtackle »

I am trying to take some output from cacti and create external graphs. I am able to script pulling the info from the rrd but I have been trying to figure out what to do with the output for a few hours.

I have the data source set to Traffic bits/sec (64 bit) What is this number?

ds[traffic_in].last_ds = "243780931880"

It isn't bps or that would be 243.8 Gbps and I don't have that sort of link capacity. How do I convert to something understandable like kbps or mbps?

Full output in case I am looking at the wrong field in the rrd

rrd_version = "0003"
step = 300
last_update = 1389805216
header_size = 2912
ds[traffic_in].index = 0
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 2.5600000000e+06
ds[traffic_in].last_ds = "245491096519"
ds[traffic_in].value = 5.1002330667e+05
ds[traffic_in].unknown_sec = 0
ds[traffic_out].index = 1
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 2.5600000000e+06
ds[traffic_out].last_ds = "105533968889"
ds[traffic_out].value = 1.7021669333e+05
ds[traffic_out].unknown_sec = 0

Thanks.
blackandtackle
Posts: 2
Joined: Wed Jan 15, 2014 11:31 am

Re: ds[traffic_in].last_ds in kb mb?

Post by blackandtackle »

I am starting to think I need to be pulling the ds[traffic_in].value

It converts to

ds[traffic_in].value = 5.0662013758e+05
= 506620 bps
= 506 kbps

ds[traffic_out].value = 2.5557189597e+05
= 255571 bps
= 255 kbps
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest