[mrtg] Plotting multiple values in same graph

lokesh.khanna at accelonafrica.com lokesh.khanna at accelonafrica.com
Wed Dec 19 01:30:38 CET 2007

Thanks for your reply

1.	I think I didn't put my question correctly here. If MaxByte is
set to 10 MByte, then I want to see a line of 10 Mbyte in my graph. For
me this is the total bandwidth available - 10 mbps.

2.	I set below things in mrtg.cfg

And I don't see any red line in my graph for 80 % threshold. 


-----Original Message-----
From: Steve Shipway [mailto:s.shipway at auckland.ac.nz] 
Sent: Wednesday, December 19, 2007 12:47 AM
To: Lokesh Khanna; mrtg at lists.oetiker.ch
Subject: RE: [mrtg] Plotting multiple values in same graph

> 1. Bandwidth configured on Cisco interface. For example currently I
> total usage (in and out in bits / sec, I want to see a line in same
> graph how much bandwidth is available.
> 2. In same graph I want to plot a line for threshold configured. For
> example I want to threshold to 80 % of total allocated bandwidth. So I
> should see a threshold line.

Surely this is just (maxbandwidth-actualvalue) - so, if your normal
graph gives you a red 'max' line and the actual values, you're just
trying to see the same graph only upside-down?  You can achieve this by
using a calculation on the Target line -
  Target[x]: 125000 - n:community at device
  MaxBytes[x]: 125000

If you are using the routers2 frontend, you get this already.  Define a
Threshold using ThreshMaxI[x]:80% (for example) and it will appear on
the graph as a horizontal line.  There is no way to do it using native
MRTG that I know of (although I may be out of date)

Or, am I misunderstanding you, and you want to have one line for
(in+out)?  If so, this is still possible using the method above although
you'd need a more complex Target definition line.


More information about the mrtg mailing list