Using last values for graph when not able to poll.

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
tapufd
Cacti User
Posts: 55
Joined: Thu Aug 19, 2004 9:14 am
Location: Belgium

Using last values for graph when not able to poll.

Post by tapufd »

MRTG has the option unknaszero = Log unknown data as zero instead of the default behaviour of repeating the last value seen. Be careful with this, often a flat line in the graph is much more obvious than a line at 0.

Cacti always uses this option: unknown data = zero . For Cpu-load is this interesting, but for volume-usage it seems for me more interesting that you can choose to let cacti use the last seen value. So if the server is temporarely inaccessible, the graph of the volume-usage doesn't has gaps.

Checked cacti, but couldn't find this option.
pvd
Posts: 30
Joined: Sat Aug 09, 2003 3:02 pm

Post by pvd »

personally, having written a data gatherer that did just this by mistake, for remote disk space/useage, I would have spotted a disk with Zero size, but one that was 3G and not growing it just looked normal, until quota threw me off and I learnt to add up.

I can see where this might be useful, but it needs to be optional, In my world data is data and not measuring it should be "nothing" not the last known value.
Phil
totoforte
Posts: 1
Joined: Tue Jan 25, 2005 9:28 am

yes, sometimes messes up the things, sometimes is very usefu

Post by totoforte »

here.. i have a optical fiber connection, with 10mbits/s metropolitan bandwidth, and only 512kbits/s outside the network bandwidth. so i want to generate graphs for the outside traffic, and i set a max value of 512kbits to remove the spikes. all is fine, but when someone transfers from the metropolitan are leaves holes in my graph.
in this situation i would like to set a repeat last value seen behaviour, is not hard to implement it.
if someone can give me some directions(variable, functions) to modify in order to alter the behaviour, i`ll appreciate that.

thank you
zyndarius
Posts: 7
Joined: Wed Jul 20, 2011 8:14 am

Re: Using last values for graph when not able to poll.

Post by zyndarius »

First of all, excuse me for reviving a very old topic, but:

Is there any information about this? The possibility of configuring cacti to graph the unknown data = last value seen?

I would greatly appreciate any kind of feedback related to this.

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

Re: Using last values for graph when not able to poll.

Post by gandalf »

We do not have plans to fake wrong values into rrd files, not even as an option.
RRDTool itself has no option to do so as well.
So I fear, that you will have to do this on your own
R.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Using last values for graph when not able to poll.

Post by TheWitness »

For things that 'might' be gappy, simply increase the heartbeat, and your problems will be solved.

Code: Select all

root@SYMPH1:~# rrdtool tune
RRDtool 1.4.3  Copyright 1997-2009 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Mar 26 2011 03:16:40

Usage: rrdtool [options] command command_options
 * tune -  Modify some basic properties of an RRD

        rrdtool tune filename
                [--heartbeat|-h ds-name:heartbeat]
                [--data-source-type|-d ds-name:DST]
                [--data-source-rename|-r old-name:new-name]
                [--minimum|-i ds-name:min] [--maximum|-a ds-name:max]
                [--deltapos scale-value] [--deltaneg scale-value]
                [--failure-threshold integer]
                [--window-length integer]
                [--alpha adaptation-parameter]

                [--beta adaptation-parameter]
                [--gamma adaptation-parameter]
                [--gamma-deviation adaptation-parameter]
                [--aberrant-reset ds-name]

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages
TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests