Strange Decimal figures where Integer expected

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

Moderators: Developers, Moderators

Post Reply
Robin V.

Strange Decimal figures where Integer expected

Post by Robin V. »

Hello,

Is it a bug, a feature, or am i only idiot ?
I've made several scripts to get data on remote hosts by ssh, and all seems to work, except one thing: Integer data sometimes become decimal.

I have a "count processus" data input, and when I watch the base and the graphs, i find values like "minimum: 5.15 ", "maximum: 15.90".

This is strange, because my values input are all integers like it is shown in the log and in the cron printout:
/home/rv/rdf.sh exploit prew3.nosy.fr /var => 3660 931339
/home/rv/rmemstat.sh exploit prew3.nosy.fr => 55350 380600 25605 51496 1803
/home/rv/rcountproc.sh exploit prew3.nosy.fr httpd => 40

Could it be a problem with the time compensation of rrdtool (i have seen that rrdtool could adjust the values of counter with the time delay)...all this sources are "gauges".

Do you have an idea ?

Last, i encountered a weird bug with input that were wrong if the last parameter is directly followed by a carriage return:
123 412\n =>Bad value 412
123 412 \n => Ok

Is this problem frequently encountered ?

Thanks for helping,
Robin
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Sounds like how rrdtool treats its numbers. To get exact numbers, go into the GPRINT graph items and select 'Exact Numbers' under 'GPRINT Options'. This should force rrdtool to output whole integers instead of strange decimal values.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests