[solved] Wrong Data Input Implementation?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
luca.gervasi
Posts: 3
Joined: Wed Nov 10, 2010 3:36 am

[solved] Wrong Data Input Implementation?

Post by luca.gervasi »

Hello,

i made a little script that outputs some values from a web navigation path.

This is a sample output

Code: Select all

output: dns:0.13 con:0.89 pre:0.93 str:256.12 ttl:256.84 sze:6176566.00 spd:293607105.00 tpf:363 200:319 404:15 30x:29
As you can see, the specified values for the attached graphs are:

Code: Select all

tpf:363
200:319
404:15
30x:29
These are all INTEGERs (they represents Total Resources Fetched, Total HTTP 200 Responses, Total HTTP 404 Responses and Total Redirects)

Cacti (or rrd, i don't know), use them as FLOATs! As you can see in the graphs, I have "330.26" as Current (as you can see in the attached graph template, Current is LAST read value). It is not possible. How can an Integer interpreted as Float?

Thanks for your support.

Cheers!

Luca
Graph Template Items
Graph Template Items
Screenshot.png (57.33 KiB) Viewed 766 times
Attachments
Generated Graph
Generated Graph
graph_image.php.png (38.42 KiB) Viewed 766 times
Last edited by luca.gervasi on Wed Nov 10, 2010 6:06 am, edited 1 time in total.
luca.gervasi
Posts: 3
Joined: Wed Nov 10, 2010 3:36 am

Re: Wrong Data Input Implementation?

Post by luca.gervasi »

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: [solved] Wrong Data Input Implementation?

Post by gandalf »

Yep. Hit it!
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests