How to display last value?

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

Moderators: Developers, Moderators

Post Reply
UUseeU
Posts: 5
Joined: Mon Mar 11, 2013 9:53 pm

How to display last value?

Post by UUseeU »

Hi, I'm new to cacti. I want to display last value in graph, but I found cacti display error when value change, because the source value is either 1 or 0.
graph_image.php.png
graph_image.php.png (18.24 KiB) Viewed 980 times
Cacti Version: 0.8.8a
rrdtool 1.4.x
pacoscorcho
Posts: 2
Joined: Tue Mar 19, 2013 12:59 pm

Re: How to display last value?

Post by pacoscorcho »

Can you provide any more details about the problem?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: How to display last value?

Post by phalek »

Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
UUseeU
Posts: 5
Joined: Mon Mar 11, 2013 9:53 pm

Re: How to display last value?

Post by UUseeU »

phalek wrote:Maybe you want to look here:

http://docs.cacti.net/manual:088:8_rrdt ... n_integers
Thank you! phalek
Now I know why non last values show. But how to show the exact value? How to disable time normalization function in the case?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: How to display last value?

Post by phalek »

you can try changing the display of that value to "Exact numbers" within the graph template.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
UUseeU
Posts: 5
Joined: Mon Mar 11, 2013 9:53 pm

Re: How to display last value?

Post by UUseeU »

phalek wrote:you can try changing the display of that value to "Exact numbers" within the graph template.
I've set to exact number before I post here, even I set a new GPRINT type like this:
OneString %1.0lf
but all fail.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: How to display last value?

Post by gandalf »

"exact number" works on GPRINT (==legend) only.
Regarding the original question, it is a fake (the link that was referred to explains all the details), as it is rounding and NOT recreating the "number being read from the target".
For some use cases, this ake might be acceptable.

In fact, using rrdtool there is NO such things as getting the "original number back". This is due to polling interval time adjustments, that are performed automatically.
The only method known to me to get "rid" of that thus is to avoid any "re-calculation" due to polling interval "adjustments". And this can be done ONLY, when polling EXACTLY on a 300 sec interval boundary (which in turn means that you MUST finish polling within 1 second. Regarding the fact, that spine initialization already takes some few seconds, this is a nogo).

Well, going deeper into details, you might want to apply the GPRINT fake to the graph as well (if you're happy with that). You can do so using a CDEF. But you'll have to build that on your own :o
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests