GPRINT error - returns zero value when set to Exact Numbers

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

Moderators: Developers, Moderators

garyb
Posts: 15
Joined: Tue Apr 17, 2012 6:04 am

Re: GPRINT error - returns zero value when set to Exact Numb

Post by garyb »

Just checked it again

output: vid_use1:7
garyb
Posts: 15
Joined: Tue Apr 17, 2012 6:04 am

Re: GPRINT error - returns zero value when set to Exact Numb

Post by garyb »

Any ideas?

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

Re: GPRINT error - returns zero value when set to Exact Numb

Post by gandalf »

"Exact numbers" only rounds the number to return an integer. So what did you expect?
R.
garyb
Posts: 15
Joined: Tue Apr 17, 2012 6:04 am

Re: GPRINT error - returns zero value when set to Exact Numb

Post by garyb »

So what setting should I be using to output the values as they come from my script?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: GPRINT error - returns zero value when set to Exact Numb

Post by gandalf »

RRDTooll always stores a rate. So, assuming that poller interval is 300 sec, you will have to multiply the data with 300 to receive the "normalized" value for that very interval.

I say "normalized", because rrdtool ALWAYS performs a normalization to exact 300 sec boundaries! See e.g. http://www.vandenbogaerdt.nl for better explanations
R.
garyb
Posts: 15
Joined: Tue Apr 17, 2012 6:04 am

Re: GPRINT error - returns zero value when set to Exact Numb

Post by garyb »

gandalf,

This is still causing issues for us.

I created a cdef function to multiply the data by 300, as your last post suggests (if I've understood that right)

But still... our graph's GPRINT shows as 0, when the script is outputting larger numbers.

Interestingly.. the MAX GPRINT does now work, but the LAST and AVG still show as zero.

Any more ideas?

Thanks
garyb
Posts: 15
Joined: Tue Apr 17, 2012 6:04 am

Re: GPRINT error - returns zero value when set to Exact Numb

Post by garyb »

Interestingly... this server is one part of a pair of servers running the same base build.

I quickly tested configuring my script and graph template etc on that box - and it works. With No CDEF function and the GPRINT type set to exact numbers.
garyb
Posts: 15
Joined: Tue Apr 17, 2012 6:04 am

Re: GPRINT error - returns zero value when set to Exact Numb

Post by garyb »

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

Re: GPRINT error - returns zero value when set to Exact Numb

Post by gandalf »

Please post a screenshot of the "failing" graph and the rrdtool graph command seen when hitting the wrench
R.
garyb
Posts: 15
Joined: Tue Apr 17, 2012 6:04 am

Re: GPRINT error - returns zero value when set to Exact Numb

Post by garyb »

Gandalf.

Don't worry

We have now decided not to pursue / use Cacti any longer.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests