[mrtg] Re: showing 2 lines for 2 controlls in one graph

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Tue Oct 31 10:03:22 MET 2006


Johannes,

Just a few thoughts about what you wrote:

MRTG can put 2 graphs in one picture, but it uses the same scale for both graphs. So if you combine a figure like the amount of free diskspace (probably several Gb) with the percent free space you wil get a flat line at the bottom off your graph for the last one.

It is not possible to have 2 targetlines for one graph, so you have to remove the second "Target[disk-c]" from your MRTG config file.
If you want to combine 2 oid's in 1 graph you have to put these 2 oid's in one target line in the MRTG config file and seperate them by an "&" (just like you do now with the same oid in front and after the "&")

If you want to have the percentage of free diskspace shown you can just remove the "nopercent" from the options line.
Note that MRTG uses the Maxbytes value to calculate the right percentage, so the Maxbytes value should represent the size of your disk

HTH,

Jan.


-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On Behalf Of Johannes Prost
Sent: Tuesday, October 31, 2006 3:53 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] showing 2 lines for 2 controlls in one graph


Hello All,

I just managed to get my first few graphs working on NT.
I know by reading the man pages that it is possible to show 2 graphs with mrtg, not using
RRD tool.
I got the amount of free space of my different HD showing correctly. In addition to the
free space I like to show in the same graph of each HD the free % of space of each HD in
their respective graph.

I have so far for one of my several HDs
Target[disk-c]:
.1.3.6.1.4.1.311.1.1.3.1.1.5.1.4.6.48.58.48.58.67.58&.1.3.6.1.4.1.311.1.1.3.1.1.5.1.4.6.48
.58.48.58.67.58:community at 192.168.100.20:
AbsMax[disk-c]: 100000
MaxBytes[disk-c]: 100000
Options[disk-c]: growright, gauge, nopercent, noo, nobanner

To show the % free space, would I have to add the correct OID like

Target[disk-c]:
.1.3.6.1.4.1.311.1.1.3.1.1.5.1.4.6.48.58.48.58.67.58&.1.3.6.1.4.1.311.1.1.3.1.1.5.1.4.6.48
.58.48.58.67.58:community at 192.168.100.20:/correct OID&correct
OID:community at 192.168.100.20:
AbsMax[disk-c]: 100000
MaxBytes[disk-c]: 100000
Options[disk-c]: growright, gauge, nopercent, noo, nobanner

Could someone take a look and help me with this ?

Johannes

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


_________________________________________________________

Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.
_________________________________________________________

This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The state accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
_________________________________________________________

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list