Getting fractions when graphing integers?

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

Moderators: Developers, Moderators

Post Reply
nellson
Posts: 13
Joined: Thu Sep 13, 2007 1:13 pm

Getting fractions when graphing integers?

Post by nellson »

The OID I am graphing is always a positive integer from 0 - 500, as it is VPN connections to a Cisco ASA.

Yet my graphs show decimal fractions of users logged in (the Current Connections) Is there something special I need to do in teh setup of the data template to insure that it's always treated as an interger? It started as a GUAGE, but I tried ABSOLUTE and wiated a few poll intervals and saw the same behavior. .844 users logged in.

When I use getif to watch teh same OID along side Cacti, it's only an INTEGER result.

Nick
dus001
Posts: 42
Joined: Sun Aug 07, 2005 6:07 am

Post by dus001 »

You should check the rrdtool documentation: there is some interpolation done, if i remember correctly:
-> when a 2nd value is stored after 310 seconds, rrdtool estimates the value it was at 300, based on the 1rst one and the 2nd.

Anybody can confirm this ?
nellson
Posts: 13
Joined: Thu Sep 13, 2007 1:13 pm

Post by nellson »

Ahh, so this is actually being turned to a decimal by RRD Tool? I could see that for an AVERAGE value, which I disbaled. I figured on an interger only dataset like VPN Connections, having the MAX and the Current would be all the was useful. Max acting like the highwater mark, and current was the valure read during that polling instance.

So might this be a limitation of RRD then? I remember my MRTG graphs of this type of thing (not using RRD) being very crisp square wave looking output on VPN Connections. Looking back at my history now with Cacti, it does look very analog over time, which doesn't look very nice. (As in the last 12 hours I reached a high of 3.2 users, when it would be nice to see it snap right to the 4.0 line where it should have been)

Any thoughts on this? Others graphing VPN connections seeing this same thing? (or did I just set my graph up wrong?)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

dus001 wrote:You should check the rrdtool documentation: there is some interpolation done, if i remember correctly:
-> when a 2nd value is stored after 310 seconds, rrdtool estimates the value it was at 300, based on the 1rst one and the 2nd.

Anybody can confirm this ?
Confirmed
Reinhard
nellson
Posts: 13
Joined: Thu Sep 13, 2007 1:13 pm

Post by nellson »

Thanks Gandalf,

So this would be because the 5 min sweep went past 5 mins on this device (310 secs or longer). Would that be a behavior I can control (disable)?

Nick
nellson
Posts: 13
Joined: Thu Sep 13, 2007 1:13 pm

Post by nellson »

In further research, I found this:

http://osdir.com/ml/db.rrdtool.user/200 ... 00091.html

I am looking into how Cacti could apply this to my data template.

Nick
nellson
Posts: 13
Joined: Thu Sep 13, 2007 1:13 pm

Post by nellson »

I talked with Tobi on the RRD-Tool list about this. The graphs I was getting from MRTG that showed a more square wave interger only graph of VPN Users was an artifact from a mis-use of what MRTG was for.

It looks like RRDTool is doing what it was designed to do. My question is does Cacti have alternative ways of displaying graph data other than RRD-Tool, where data sets like "Users online" that need to remain integer in the output could be rendered?

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

Post by gandalf »

I followed your discussion with Tobi. Cacti as an rrdtool frontend does what rrdtool allows to do (at least most of it). Not more, sorry
Reinhard
nellson
Posts: 13
Joined: Thu Sep 13, 2007 1:13 pm

Post by nellson »

Thank you for the reply Gandalf,

At least now I know a lot more about how RRD Tool works, and where it stands with Cacti.

I have seen plug-ins for Cacti to do other things.. might there be any thoughts on giving Cacti alternate methods of displaying collected data?

Nick
Antoine Musso
Posts: 12
Joined: Mon Dec 12, 2005 10:56 am

Post by Antoine Musso »

To graph integer values, I feed the .rrd file with a custom script that makes sure the data is updated on the 300s marks.

Cacti does not do any polling, it is just used to display the graph.
nellson
Posts: 13
Joined: Thu Sep 13, 2007 1:13 pm

Post by nellson »

Hrmm, I though about perhaps building a "Rounding" script to parse through the timestamps and move them to exact 5 min marks. I use the cacti poller running 8 threads, no real control over when it hits my host though. It'll take a bit before I get the time to dig into it. If I come up with something that works, I'll repost.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Antoine Musso wrote:To graph integer values, I feed the .rrd file with a custom script that makes sure the data is updated on the 300s marks.

Cacti does not do any polling, it is just used to display the graph.
That would be the only solution that I'm aware of. Creating a tricky script that's run by the poller WILL NOT WORK.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests