[mrtg] sum two interfaces

Gaurav Ghimire gaurav at subisu.net.np
Tue Sep 18 12:50:38 CEST 2007


Dear Pezhman,

For more on the MRTG option and their detailed description please refer to

http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html

The most critical ones that you must have a  knowledge of are

Target,
MaxBytes.
AbxMax,
Legend and its peripherals,
Options

I hope the Cfg you showed before will work.

Setenv are used to pass on any data kept there of to the other scripts.

Regards,

Gaurav


> Dear Gaurav
> thanks for your help
> the following is the edited cfg file, upon your help.
> but I don't have any idea for the second
> line(SetEnv..)
> please help me, about that too.
>
> Target[total]: 1:telegomema at 192.168.1.1 +
> 1:telegomema at 192.168.1.2
> SetEnv[total]: MRTG_INT_IP="192.168.1.1"
> MRTG_INT_DESCR="FastEthernet0/0"
> MaxBytes[total]: 12500000
>
> best
> Mani
>
> --- Gaurav Ghimire <gaurav at subisu.net.np> wrote:
>
>> For this you can just use the target arithmetic.
>>
>> for e.g,
>>
>> Target[trafficsum]: 1:string at hostA: +
>> 1:string1 at hostB:
>>
>> I hope this does your job.
>>
>> Thanks.
>>
>> Gaurav
>>
>>
>>
>> > Dear
>> > we have 2 cisco routers, with a fastethernet0/0
>> for
>> > each of them.
>> > I want to have the sum of in/out of them, in the a
>> > same graph.
>> > Please Help me.
>> > Best
>> > Mani
>> >
>> >
>> >
>> >
>>
> ____________________________________________________________________________________
>> > Moody friends. Drama queens. Your life? Nope! -
>> their life, your story.
>> > Play Sims Stories at Yahoo! Games.
>> > http://sims.yahoo.com/
>> >
>> > _______________________________________________
>> > mrtg mailing list
>> > mrtg at lists.oetiker.ch
>> > https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>> >
>>
>>
>> --
>> Gaurav Ghimire
>> Support Dept.
>> Subisu Cablenet Pvt. Ltd.
>> Baluwatar, Kathmandu.
>>
>> _______________________________________________
>> mrtg mailing list
>> mrtg at lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>>
>
>
>
>       ____________________________________________________________________________________
> Check out the hottest 2008 models today at Yahoo! Autos.
> http://autos.yahoo.com/new_cars.html
>


-- 
Gaurav Ghimire
Support Dept.
Subisu Cablenet Pvt. Ltd.
Baluwatar, Kathmandu.



More information about the mrtg mailing list