[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]:
>
.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
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
line.
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)
Thought.
%disk used is a value between 1 and 100
Freespace is a number between 1 and 100,000 (according to you maxbytes
line)
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)
Regards
Peter
--
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