Broken values with integer graphing

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

Moderators: Developers, Moderators

Post Reply
alexnderit
Posts: 3
Joined: Tue Jan 30, 2007 1:51 am

Broken values with integer graphing

Post by alexnderit »

Am having issues graphing some integer values with cacti. I used the random2.pl example provided in this site- google random2.pl- to graph but i keep getting value that are not always ranging from 0-9. I sometimes get values such as 1.2, 6.7 etc. The same problem exists with other perl scripts I have developed to graph some integer values. Kindly assist.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This was asked very often on the rrdtool-users mailing list. Please be aware of the fact, that rrdtool always stores rates, even with GAUGEs. And it will take care of time jitter when updating on non-uniform intervals.
In other words: if you make sure, that updates will occur at exactly 300 sec intervals, rrdtool (and therefor cacti) will report whole numbers
Reinhard
User avatar
kjmattakat
Posts: 15
Joined: Fri Oct 12, 2007 3:03 pm

Post by kjmattakat »

gandalf wrote:This was asked very often on the rrdtool-users mailing list. Please be aware of the fact, that rrdtool always stores rates, even with GAUGEs. And it will take care of time jitter when updating on non-uniform intervals.
In other words: if you make sure, that updates will occur at exactly 300 sec intervals, rrdtool (and therefor cacti) will report whole numbers
Reinhard
why then do the Current/Avg/Max values show up as whole numbers? is there a way to graph only whole numbers? I am using "exact numbers" on the graph item.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Exact Numbers is only a GPRINT format that cuts off decimals. If you're happy with that, ok.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest