Corstian,

If you leave out the Factor in you config and put in  * 1024 at the targetline 
you should get the same numbers in the legend and Y-axis. (Note that you have 
to put white spaces around the *)
If you don't want to change the target line in your config you have to use a 
combination of kMG, Y-Legend, ShortLegend, LegendI, LegendO, Legend1, Legend2, 
Legend3 and Legend4.
(See: http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-reference.html#kmg 
and
 
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-reference.html#ylegend__shortlegend__legend_1234_)

Hth,

Jan.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corstian
Sent: Monday, April 04, 2005 8:00 AM
To: [EMAIL PROTECTED]
Subject: [mrtg] Newbie - Unit in graph doesn't match unit in legend


My last problem is a unit problem.

I configured mrtg to use a Factor of 1024, but this factor only works on the  
Legends of my graphs.

So, for example, my disk space in the legend is: 4295.3 MB, while the legend on 
de Y-axis shows 4.4MB

Can anybody tell me, how I can multiply the legend on the Y-axis as well, so 
this will show 4.4GB instead of 4.4MB ??

Below you can find an example of my disk space section in the mrtg.conf

thanks in advance!
Corstian


###
### Disk space of /dev/hda1 partition on mounted on /
###

Target[disk.hda1]:      `/home/corstian/bin/mrtg/partition_space /dev/hda1`
Options[disk.hda1]:     gauge,growright,nopercent
Title[disk.hda1]:       Disk Usage of /dev/hda1 mounted on /
MaxBytes[disk.hda1]:    10000000000
Factor[disk.hda1]:      1024
LegendO[disk.hda1]:     Total
LegendI[disk.hda1]:     Used
Legend1[disk.hda1]:     Total diskspace
Legend2[disk.hda1]:     Used diskspace
YLegend[disk.hda1]:     Bytes
ShortLegend[disk.hda1]: B
PageTop[disk.hda1]:     <H1>Disk Usage of /dev/hda1 mounted on / </H1>

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


_________________________________________________________

Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke 
aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig 
overkomen van de informatie in deze e-mail.
Aan dit bericht kunnen geen rechten worden ontleend.

Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet 
voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de 
inhoud van dit bericht te vernietigen.
_________________________________________________________

The ministry of Social Affairs and Employment is not liable for any incorrect 
or incomplete transmission of the information in this e-mail or for any delay 
in its receipt.
This message shall not constitute any obligations.

This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and 
delete its content.
_________________________________________________________

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to