[mrtg] Adding two targets

Daniel J McDonald dan.mcdonald at austinenergy.com
Tue Feb 19 21:37:34 CET 2008


On Tue, 2008-02-19 at 18:05 -0200, Ricardo Siri wrote:
> Hello 
> I am new in MRTG and I have a question 
>  
> I tested the following target because I want to graph the summ of this
> two variables
> The problem is that MRTG is performing the graph of the two variables
> independently
> Can anyone help me understanding what is the problem?

mrtg must always have two variable, not one.  

You could do:
Target[suma]:
1.3.6.1.2.1.2.2.1.10.16777219&1.3.6.1.2.1.2.2.1.10.16777219:public at 128.251.214.93 +  1.3.6.1.2.1.2.2.1.16.16777219&:1.3.6.1.2.1.2.2.1.16.16777219public at 128.251.214.93


Note that this works reasonably well for gauge types, but poorly for
counter types.

Another option is to use a front-end like routers.cgi and create a stack
graph.  This is the preferred solution for counter-type targets, as the
problem of two roll-overs is eliminated.

> Another question?
> If I have 4 variables to monitor, sucha as <OID_A>:community@<IP>
> 
> <OID_B>:community@<IP>
> 
> <OID_C>:community@<IP>
>                                                                        <OID_D>:community@<IP>
>  
> Is it possible to obtain a graph with: - green line: <OID_A> + <OID_B>
>                                                              - blue
> line: <OID_C> + <OID_D>

Target[sumb] = OID_A&OID_C:public at foo + OID_B&OID_D:public at foo
>  
> In this case which would be the syntaxis of the traget?
>  
> -----------------------------------------------------------------------------------------------------
>  
> Title[suma]: Trafico interfaz a de la 128.251.214.93
> MaxBytes[suma]: 1000000000
> AbsMax[suma]: 1000000000
> Options[suma]: gauge, nopercent
> #Options[suma]: nopercent
> #.1.3.6.1.2.1.6.9.0&.1.3.6.1.2.1.6.9.0:public at localhost 
> #Target[suma]: 1.3.6.1.2.1.2.2.1.10.16777219:public at 128.251.214.93 +
> 1.3.6.1.2.1.2.2.1.16.16777219:public at 128.251.214.93

> 
-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com



More information about the mrtg mailing list