I generated a number for 95th and print it. And I want to print m or k or g after number. How to detect it?
My code is:
|95:bits:0:current:2|
detect k or m or g
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 50
- Joined: Wed Jan 04, 2023 6:52 am
- Contact:
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: detect k or m or g
Well, I'm at bit at a loss. RRDtool will autoscale unless you give it one. So, if you have very little traffic, you get what you got. On the other hand the 95th percentile stuff should be migrated to VDEF's as they are wicket precise. Just not sure I can provide it on a GPRINT. I think it can though. Again, unit's are bitch.
It's open source, you can always look at lib/graph_variables.php for a few days and then take some Tylenol
It's open source, you can always look at lib/graph_variables.php for a few days and then take some Tylenol
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?
Who is online
Users browsing this forum: No registered users and 1 guest