There are two ways to achieve this.
The more complex but flexible way is to use the Routers2 frontend and define a userdefined graph over the single Target, with the 'withtotal' and 'nogroup' options, which will result in a third 'total' line appearing. You'll also get the total traffic calculations over the time window. The simplest way, though, is to define a new Target which adds the variables, thus: Target[combined]: ifInOctets.0&ifInOctets:commun...@device + ifOutOctets.0&ifOutOctets.0:commun...@device Options[combined]: noo bits growright Legend1[combined]: Total traffic Legent3[combined]: Peak total traffic Note that, instead of using the .interfacenumber suffix in the Target definition, you can instead use #interfacename , /interfaceip or any of the other shorthand methods. This method will result in an additional few SNMP queries but this is unlikely to be significant unless you are doing this over a large number of devices. Hope this helps, Steve _____ From: [email protected] [mailto:[email protected]] On Behalf Of Vadood Etminanbakhsh This is the first time I am using this list and I do not know if I am posting my question to the right place. For the last two days I was trying to generate traffic graphs displaying sum of incoming and outgoing traffic for my network adapter. I tried to add up ifInOctets and ifOutOctets to but it had no results. All I want to do is to generate a graph with two variables being total (in+out) traffic and either in or out traffic.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
