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

Peter Glanville peter_glanville at cuk.canon.co.uk
Tue Oct 31 10:01:19 MET 2006

> 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]: 
> . at
> AbsMax[disk-c]: 100000
> MaxBytes[disk-c]: 100000
> Options[disk-c]: growright, gauge, nopercent, noo, nobanner
MRTG initially plots bytes in and out for a physical interface on a router 
or switch.
You are using it to plot something else. Fine.
You have used OID1&OID1 with the Option NoO which suppresses the "Out" 
graph, just leaving the "In" graph, which is a good way to plot just one 
The Target line can read Target[filename]: OID1&OID2:community at IPaddress
Then it will plot OID1 and OID2 on the same graph. (remove the NoO option)

%disk used is a value between 1 and 100
Freespace is a number between 1 and 100,000 (according to you maxbytes 
If you plot these on the same graph, I strongly suspect that your %used 
will disapear as a smudge on the bottom line.

Another thought
Do you know the OID for %free disk? mainly I think people use OID maths to 
calculate it. Then it would be a lot harder to put both on the same graph 
(if using simple MRTG, with Routers2 & RRD it would be much easier)


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