[SOLVED] Change "base value?" for a graph

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
sergani
Posts: 24
Joined: Sun Sep 18, 2011 3:49 am
Location: Cairo, Egypt

[SOLVED] Change "base value?" for a graph

Post by sergani »

Hi all,

I have the attached graph that is monitoring a "Single OID value" from one of our VoIP switches.

Is it possible to display 1000, instead of 1K on the left? What should I do?

I'm not using any custom created templates etc...

Thanks in advance
//M
Attachments
graph_image.png
graph_image.png (18.18 KiB) Viewed 8817 times
Last edited by sergani on Fri Sep 23, 2011 2:49 pm, edited 1 time in total.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Change "base value?" for a graph

Post by Linegod »

--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
sergani
Posts: 24
Joined: Sun Sep 18, 2011 3:49 am
Location: Cairo, Egypt

Re: Change "base value?" for a graph

Post by sergani »

Thanks a lot!
sergani
Posts: 24
Joined: Sun Sep 18, 2011 3:49 am
Location: Cairo, Egypt

Re: Change "base value?" for a graph

Post by sergani »

Hmmm ... I tried that but all that changed was the legend numbers...
I can't seem to change the y-scale

I've attached a screenshot; highlighted in green is the Legend, where all is ok, but red, is where i need to have exact numbers as well.

Any thoughts?

Thanks
//M
Attachments
Screen shot 2011-09-19 at 4.45.10 PM.png
Screen shot 2011-09-19 at 4.45.10 PM.png (21.02 KiB) Viewed 8800 times
Last edited by sergani on Mon Sep 19, 2011 1:39 pm, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Change "base value?" for a graph

Post by gandalf »

[-X|--units-exponent value]

This sets the 10**exponent scaling of the y-axis values. Normally, values will be scaled to the appropriate units (k, M, etc.). However, you may wish to
display units always in k (Kilo, 10e3) even if the data is in the M (Mega, 10e6) range, for instance. Value should be an integer which is a multiple of 3
between -18 and 18 inclusively. It is the exponent on the units you wish to use. For example, use 3 to display the y-axis values in k (Kilo, 10e3,
thousands), use -6 to display the y-axis values in u (Micro, 10e-6, millionths). Use a value of 0 to prevent any scaling of the y-axis values.

This option is very effective at confusing the heck out of the default RRDtool autoscaling function and grid painter. If RRDtool detects that it is not
successful in labeling the graph under the given circumstances, it will switch to the more robust --alt-y-grid mode.
R.
sergani
Posts: 24
Joined: Sun Sep 18, 2011 3:49 am
Location: Cairo, Egypt

Re: Change "base value?" for a graph

Post by sergani »

^^ worked like a charm...
Thanks R.

//M
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests