Getting fractions when graphing integers?
Moderators: Developers, Moderators
Getting fractions when graphing integers?
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
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
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?)
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?)
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
http://osdir.com/ml/db.rrdtool.user/200 ... 00091.html
I am looking into how Cacti could apply this to my data template.
Nick
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
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
-
- Posts: 12
- Joined: Mon Dec 12, 2005 10:56 am
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.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
That would be the only solution that I'm aware of. Creating a tricky script that's run by the poller WILL NOT WORK.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.
Reinhard
Who is online
Users browsing this forum: No registered users and 1 guest