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.
Data source and query_ifSpeed
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
query_ifspeed is in bits
TheWitness
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?
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?
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
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
Who is online
Users browsing this forum: No registered users and 0 guests