Data source and query_ifSpeed

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

Moderators: Developers, Moderators

Post Reply
SRY
Posts: 7
Joined: Fri Jul 29, 2005 10:46 am
Location: MIlton Keynes, UK

Data source and query_ifSpeed

Post by SRY »

While documenting some CDEFs I have come across the following and I am not sure how this is handled, I have been looking at the percent utilisation using the query_ifSpeed and the CDEF that defines "a,|query_ifSpeed|,/".

Can anybody explain how the result works as "a" should be returned in Bytes, as it is not divided by 8 and "query_ifSpeed" is retuned in bits. Therefore are we comparing apples and oranges or does Cacti do something in the background so that we are comparing apples to apples.

:-?
Steve
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

query_ifspeed is in bits

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?
SRY
Posts: 7
Joined: Fri Jul 29, 2005 10:46 am
Location: MIlton Keynes, UK

Post by SRY »

Thanks TheWitness

I have discovered the flaw in my CDEF which I am fixing now. I was using the following which got me close on the percentage used but was not correct:

a,|query_ifSpeed|,/,100,*,8,*

Should be

a,8,*,|query_ifSpeed|,/,100,*

And sorry for posting this here as I meant to put it in Help:General.

I have added a full explanation of my CDEFs to the following topic towards the end of the page.

http://forums.cacti.net/viewtopic.php?t ... c&start=15
Steve
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest